By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,693 Members | 1,646 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,693 IT Pros & Developers. It's quick & easy.

How to show checked check box value after reloading the page in dhtmlxgrid?

P: 1
1). How to show checked check box value after reloading the page in dhtml?

2). How to save checked check box value into sql server database using dhtml and jsf?
Feb 27 '12 #1
Share this Question
Share on Google+
2 Replies


acoder
Expert Mod 15k+
P: 16,027
What code do you have so far?
Feb 27 '12 #2

P: 1
Hi,
The below code for dhtmlxgrid. I am getting reserve codes from the sqlserver database. But how to show checked check box value after reloading the page in dhtml?(i.e.first time if checked appropriate check box, then if I see next time it should be checked by default and checked check box value should be saved into sql server database. This is my exact requirement)

Technologies are : JSF and DHTML.

Can you pls help me. This is very urgent pls....
Expand|Select|Wrap|Line Numbers
  1. <script>
  2. mygrid2 = new dhtmlXGridObject('gridbox3');
  3. mygrid2.setImagePath("../images/gridImg/");
  4. mygrid2.setHeader("Assigned,Reserve Code,Reserve Description");
  5. mygrid2.enableAutoWidth(true);
  6. mygrid2.enableAutoHeight(true);
  7. mygrid.setInitWidths("10,50,50");
  8. mygrid2.setColAlign("center,left,left");
  9. mygrid2.setColSorting("na,str,str");
  10. mygrid2.setColTypes("ch,ed,ed");
  11. mygrid2.enableColumnAutoSize(false);
  12. mygrid2.enableMultiselect(true);
  13. mygrid2.enableRowsHover(true,'grid_hover');
  14. mygrid2.getCheckedRows('contentPad2');
  15. //mygrid2.setCheckedRows(0,1);
  16. mygrid2.setSkin("gray");
  17. mygrid2.enablePaging(true, 6, 4, "recinfoArea3");
  18. mygrid2.setPagingSkin("toolbar", "dhx_skyblue");
  19. mygrid2.attachEvent("onRowSelect", doOnRowSelected);
  20. mygrid2.attachEvent("onRowSelect1",doOnRowSelected 1);
  21. mygrid2.checkAll(true);
  22.  
  23. //mygrid2.cellById(rowId,cellIndex).setDisabled(true );
  24. mygrid2.init();
  25.  
  26. var colArr3 = [<%= gridData3 %> ];
  27. var myDataGridHC=[['' ,'EXP' , 'Expense' ],[ '','LEGL' , 'Legal' ],[ 'ULAE' , 'UnallocatedLossAdjustmentExpense' ],[ 'BI' , 'BodilyInjury' ],[ 'PD' , 'PropertyDamage' ],[ 'MED' , 'Medical' ]]
  28. mygrid2.parse(colArr3,"jsarray");
  29.  
  30. </script>
Feb 28 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.