The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Sorting a datagrid that is dynamically created
Posted: 06 Feb 08 3:14 PM
|
I have a datagrid on a custom tab that is dynamically created. The tab is used in both the Sales and Support Client. The grid.sortable property is = true so it sorts fine in the Sales Client. I am not able to get the grid to sort in the Support Client. The grid is read only in both clients. I tried sorting the grid with read only = false and I was not able to get it to sort. I tried coding it to sort on the OnColumnSorting event also and still no luck. I also tried setting the SQL property of the grid to "select accountid from account where account id = 'bogus' so I could check the soratble property on the grid but the grid has decided it is not going to cooperate in the Support Client. Is there any way to get a read only grid to sort by column in the Support Client if the grid is created dynamically? |
|
|
| |
| |
| |
|
Re: Sorting a datagrid that is dynamically created
Posted: 07 Feb 08 1:38 PM
|
No, the Sortable property can't be checked since the columns are all created dynamically. I did try to trick the system by adding one field in the SQL property and doing a 'Select AccountId from Account Where AccountId is 'bogus'. This would allow me to check the Sortable property of the grid but when I tested it in the Support Client it would not sort. |
|
|
|
Re: Sorting a datagrid that is dynamically created
Posted: 07 Feb 08 3:10 PM
|
I mean the sortable property for the entire datagrid, following the population step where you have columns now set the sortable property of the Data grid to True then try and set the column.. eventhough they are dynamic you should be able to grab these properties no..? |
|
|
| |
|