jQWidgets Forums
jQuery UI Widgets › Forums › Grid › error: jqxGrid: The data is still loading & other questions › Reply To: error: jqxGrid: The data is still loading & other questions
Dimitar,
Thank you, that fixed my issue with the loading!
As far as the row css formatting has it ever been thought of to offer both entire row and cell by cell formatting? Going cell by cell when somebody really wants to format and entire row just based off one cells value is pretty inefficient and makes the grid loading slow.
We are moving from the componentart grid to the jqwidgets and while the componentart grid was terrible at pretty much everything they did have a good custom formatting for both rows and cells. Like if I wanted to set a row css based on conditions I could just do this….
<ConditionalFormats>
<ComponentArt:GridConditionalFormat ClientFilter="DataItem.GetMember('Minutes').Value <= 120" RowCssClass="NormalRow" SelectedRowCssClass="SelectedRow" />
<ComponentArt:GridConditionalFormat ClientFilter="DataItem.GetMember('Minutes').Value > 120 && DataItem.GetMember('Minutes').Value <= (60 * 24)" RowCssClass="NoHeartbeatRow" SelectedRowCssClass="SelectedRow" />
<ComponentArt:GridConditionalFormat ClientFilter="DataItem.GetMember('Minutes').Value > (60 * 24)" RowCssClass="GrayedRow" SelectedRowCssClass="SelectedRow" />
<ComponentArt:GridConditionalFormat ClientFilter="DataItem.GetMember('Enabled').Value == false" RowCssClass="DeletedRow" SelectedRowCssClass="SelectedRow" />
</ConditionalFormats>
I could then set all 2800 rows in my grid to a specific CSS based on those conditions and it was super fast. Like I said, with the jqwidgets grid having to go cell by cell on 2800 rows w/15 columns is pretty slow & inefficient.
Is there a way to format the cells only as they become visible? I tried using deferred scrolling but it still seems to run the cell format function for the entire grid on load.