jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • in reply to: Column names dynamically json Column names dynamically json #4479

    ScottNL
    Member

    1 more question Peter.

    Where do i find these settings

    cellsalign: ‘right’, cellsformat: ‘c2’

    found in { text: ‘Total’, datafield: ‘total’, width: 100, cellsalign: ‘right’, cellsformat: ‘c2’ }

    I looked at the documentation and api reference but could not find them.


    ScottNL
    Member

    Good stuff Peter,

    Exactly the answer i was looking for.


    ScottNL
    Member

    it´s not clean but the only way i got it to work

    $("#menu").bind('itemclick', function (event) {
    var tabid = 'tab_' + event.args.id;
    var i = 0;

    if($('#workspace').find("#" + tabid).length){

    $('div[id^="tab_"],li[id^="tab_"]').each( function(){
    if(this.id == tabid){
    index = i;
    return false;
    }
    i++;
    });

    $('#workspace').jqxTabs('select', i);

    }else{
    $('#workspace').jqxTabs('addLast', '

    ' + $(event.args).text() + '

    ', "

    data

    ");
    }
    });

    in reply to: Test Topic Test Topic #4447

    ScottNL
    Member

    PS. how do i get the code tags to work?

    I add “<code>”  my code “</code>” without quotes but it’d not working for me.

    in reply to: find tab position based on ID find tab position based on ID #4446

    ScottNL
    Member

    Thanks for the effort Minko,

    I couldn’t get this to work though.

    What i am also failing to understand is why i cannot access the dynamically created tabs by id with jquery basic functions

    i tryed this


    $("#unorderedList li").each(function() {
    alert(this.id );
    });

    the ones that are loaded in the DOM are shown. The dynamically created ones are blank but this returns true

    var tabid = ‘tab_’ + event.args.id;

    $(‘#workspace’).find(“#” + tabid).length

    How do i access these with a each function or any other?

    I am looking at using this library as a platform for a program i am righting and need this kind of functionality.

    I thank you in advance for your suggestions.

    in reply to: json via php request json via php request #4438

    ScottNL
    Member

    Cheers Peter,

    you have just solved all my problems!

Viewing 6 posts - 16 through 21 (of 21 total)