473,394 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

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
2 4847
acoder
16,027 Expert Mod 8TB
What code do you have so far?
Feb 27 '12 #2
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

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

Similar topics

2
by: Josema | last post by:
Hi, I have to show a pdf when a page is load... I have a byte variable with the pdf... I try to make a Response.BinaryWrite(variable) but i cant open the pdf... How could i make it? --...
2
by: darrel | last post by:
I really like using Panels in ASP.net to show hide parts of a page. The only catch is that, by default, panels are rendered as DIVs. There are times when I'd like the panels rendered as Spans...so...
0
by: Tsair | last post by:
I create a custom DataGridViewColumn from a usercontrol with Textbox and a button. After input the usercontrol textbox value and press Tab to next column, the value of the textbox does not show in...
2
by: ZEHAVISHUL | last post by:
I create table with default value, How can I show the default value. desc'TABLE' doesn't show the defualt value. thank zehava
2
by: ahmurad | last post by:
Dear all, I am fresh php programmer. I've spent much time to solve a checkbox related null value submission problem in php platform. I want to submit 4 checkbox value. if I checked all the...
6
by: James Yang | last post by:
"bad page", especially in table, is a risk for database maintenance. The particular access attempt for corrupt blocks may not occur often, and corrupt DB2 blocks are not recognized during a...
12
by: foolsmart2005 | last post by:
There are 10 webpages on the host, e.g. 001.html, 002.html, 003,html, 004.html, ......010.html I want to check whether the page is the last page. How can I do. In the index.html -Go to last...
8
by: Alan | last post by:
Hello, I need to write a systemtray program to check every minute if a certain intranet page exists. Would "webBrowser.Navigate" and catching exceptions to it be a good choice in terms of load...
1
by: Huiyubird | last post by:
I have a page which will be loaded by some normal windows and some modeless windows(which is opened by code "window.showModalDialog()"), and I want to show different message in this page to these two...
3
by: Tricia Kinney | last post by:
How do I move data on form with checked check box to text boxes on continuous main form? Each record on the continuous form could possible have 25 questions and answers to be moved. The form with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.