jQuery UI Widgets Forums Grid CheckBox at editor

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 9 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • CheckBox at editor #70878

    Chaitanya
    Participant

    Hi,,
    I have column which having value ‘Active’ and ‘Inactive’.
    When row goes to editor mode, i have to show check box.
    if Active then checkbox true.
    if InActive then checkbox false.

    I want checkbox at editor and text in rendering.

    CheckBox at editor #70893

    Dimitar
    Participant

    Hi Chaitanya,

    This is demonstrated in the online example Custom Row Editor. Please check it out.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    CheckBox at editor #71021

    Chaitanya
    Participant

    hi Dimitar,

    Sorry yaar. i tried lot but not getting output. I dont know anything about jquery and javascript.
    I am just doing copy and paste from examples.

    { text: 'Status', datafield: 'status', filtertype: 'checkedlist', width: "20%",
                    	  cellsrenderer: function (row, column, value) {
                    		  if(value==true){
                    			  return "Active";
                    		  }
                    		  else{
                    			  return "Inactive";
                    		  }
                    	  },
                    	  createeditor: function (row, cellvalue, editor, cellText, width, height) {
                    		  
                              element.jqxCheckBox({checked: cellvalue});
                          },
                          initeditor: function (row, cellvalue, editor, celltext) {
                        	  element.jqxCheckBox({ checked: cellvalue});
                          },
                          geteditorvalue: function (row, cellvalue, editor) {
                        	  return editor.val();
                          }
                      },
    CheckBox at editor #71037

    Dimitar
    Participant

    Hi Chaitanya,

    Please take a look at the source code of the demo I posted. There you can see how to initialize a custom jqxCheckBox cell editor. I also suggest you to read the relevant entries in the jqxGrid API Documentation carefully.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.