jQWidgets Forums
Forum Replies Created
-
Author
-
May 30, 2012 at 10:03 am in reply to: Column names dynamically json Column names dynamically json #4479
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.
May 30, 2012 at 9:22 am in reply to: Column names dynamically json Column names dynamically json #4478Good stuff Peter,
Exactly the answer i was looking for.
May 29, 2012 at 7:43 pm in reply to: find tab position based on ID find tab position based on ID #4467it´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");
}
});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.
May 29, 2012 at 10:02 am in reply to: find tab position based on ID find tab position based on ID #4446Thanks 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.
Cheers Peter,
you have just solved all my problems!
-
AuthorPosts