jQWidgets Forums
Forum Replies Created
-
Author
-
Hi Peter,
Thanks for correcting me, but the given approach is still not working. The page renders only those columns which are by default bounded to the grid.
This piece of code does not change the columns info dynamically.
// change columns collection.
$(“#jqxGrid”).jqxGrid({ columns: gridColumns });Please help us.
Thanks,
Shiva.Hey Peter,
We tried it out with v 2.1 (commercial – evaluation version – jQWidgets v2.1.0 (2012-May-04)) as well but still no help. It is still not working. We are getting errors like “gridColumns is not defined” and “viewModel is undefined “.
Below is the code snippet:
var gridColumns= [
{ text: 'Fund', dataField: 'Fund', cellsalign:'left', width: 120 },
{ text: 'USD', dataField: 'USD', cellsalign:'right', width: 130 },
{ text: 'EUR', dataField: 'EUR', cellsalign:'right', width: 130 },
{ text: 'GBP', dataField: 'GBP', cellsalign:'right', width: 130 },
{ text: 'CAD', dataField: 'CAD', cellsalign:'right', width: 130 },
{ text: 'MYR', dataField: 'MYR', cellsalign:'right', width: 130 },
{ text: 'ISK', dataField: 'ISK', cellsalign:'right', width: 130 }
];
$("#jqxGrid").jqxGrid(
{
source: source,
autoheight: true,
pageable: true,
editable: false,
columnsresize: true,
theme: 'classic',
width: 900,
columns: [
{ text: 'Fund', dataField: 'Fund', cellsalign:'left', width: 120 }
]
});
});
// change columns collection.
$("#jqxGrid").jqxGrid({ columns: gridColumns });
Please help.
Regards,
ShivaOhhhh okkk.
We are using v1.8.0
We will get the latest one and try it out.
I’ll keep you posted with the progress on this. Thanks for your prompt reply.
Regards,
ShivaHey Peter,
I tries your solution but it doesn’t work in our case. 🙁
When we call the web service to get the data, nothing happens. The page just freezed.
Cheers,
ShivaMay 8, 2012 at 7:34 am in reply to: URGENT: Showing Aggregates in grid footer URGENT: Showing Aggregates in grid footer #3964I’ll try that way out.
Is there any possibility that we can create a grid without specifying its columns? I mean, in case of a dynamic grid where number of columns isnt known at the beginning. How to achieve that?
-
AuthorPosts