My grid has a mastertable and 1 detail table.
The master table has heirachyLoadMode="ServerBind"
The detailtable columns has ItemTemplates containing a RadNumericTextBox controls (1 per column).
The master table values are essentially an aggregation of the detail rows. I have RadNumericTextBox ClientEvents-OnValueChanged javascript that aggregates the detail values and updates the the value in the master row.
That all works. My problem is when a new row is expanded, a postback occurs and I loose the grid values I calculated and set via javascript. How do I persist those values? The values in the RadNumericTextBox controls are persisted so EnableViewState can be eliminated.
This is how I update the master rows:
masterView.getCellByColumnUniqueName(masterView.get_dataItems()[masterRowIndex], "MyColName").innerHTML = parseInt(detailTotal / detailRowCount);
How do I persist that change during postback? Am I not setting the value correctly? Do I have add postback code to copy HTML values to a saved datasource then rebind?
I cannot use heirachyLoadMode="Client" because loading takes way too long.
I am using ItemTemplates instead of EditTemplates because I don't want the user to have to click edit on each detail row they want to edit; that would slow them down a lot.
The master table has heirachyLoadMode="ServerBind"
The detailtable columns has ItemTemplates containing a RadNumericTextBox controls (1 per column).
The master table values are essentially an aggregation of the detail rows. I have RadNumericTextBox ClientEvents-OnValueChanged javascript that aggregates the detail values and updates the the value in the master row.
That all works. My problem is when a new row is expanded, a postback occurs and I loose the grid values I calculated and set via javascript. How do I persist those values? The values in the RadNumericTextBox controls are persisted so EnableViewState can be eliminated.
This is how I update the master rows:
masterView.getCellByColumnUniqueName(masterView.get_dataItems()[masterRowIndex], "MyColName").innerHTML = parseInt(detailTotal / detailRowCount);
How do I persist that change during postback? Am I not setting the value correctly? Do I have add postback code to copy HTML values to a saved datasource then rebind?
I cannot use heirachyLoadMode="Client" because loading takes way too long.
I am using ItemTemplates instead of EditTemplates because I don't want the user to have to click edit on each detail row they want to edit; that would slow them down a lot.
