jQWidgets Forums
Forum Replies Created
-
Author
-
June 11, 2014 at 7:38 pm in reply to: How to parse a datafield from JSON into two separate columns in the grid? How to parse a datafield from JSON into two separate columns in the grid? #55747
Thanks Peter, that worked! Now I want to format the values in the grid so that 39.404066147905 appears as 39.40. I tried
{ text: 'Latitude', datafield: 'latitude', cellsformat: 'f2' },
but the grid still shows 39.404066147905. I don’t get it.
March 6, 2014 at 6:55 am in reply to: Autorowheight:true causes cell editing to scroll the grid viewport up Autorowheight:true causes cell editing to scroll the grid viewport up #50564Oh no. My link disappeared. There really needs to be a preview button. Here is the JSFiddle link again.
February 19, 2014 at 9:39 pm in reply to: making some columns editable on cell edit but not others making some columns editable on cell edit but not others #49789Okay, I think I figured it out.
var cellEdit = function (row) { var rows = $('#jqxgrid').jqxGrid('getboundrows'); if ( (rows[row]['rule'] == 'Custom') || (rows[row]['rule'] == 'custom') ) { return true; } else { return false; } }; $("#jqxgrid").jqxGrid( { width: '100%', editable : true, columns: [ { text: 'Rule', datafield: 'rule', editable : true, width: 100, columntype: 'textbox'}, { text: 'A', datafield: 'a', width: 100, columntype: 'numberinput', cellbeginedit: cellEdit }, { text: 'B', datafield: 'b', width: 100, columntype: 'numberinput', cellbeginedit: cellEdit }, { text: 'C', datafield: 'c', width: 100, columntype: 'numberinput', cellbeginedit: cellEdit }, { text: 'D', datafield: 'd', width: 100, columntype: 'numberinput', cellbeginedit: cellEdit } ] });
February 19, 2014 at 8:21 pm in reply to: making some columns editable on cell edit but not others making some columns editable on cell edit but not others #49785I found this, http://www.jqwidgets.com/disable-editing-of-a-grid-row-or-cell/ but I need to enable/disable editing based on the value in another cell.
February 19, 2014 at 6:24 pm in reply to: making some columns editable on cell edit but not others making some columns editable on cell edit but not others #49780Thanks Peter. The “cellvaluechanged” event works a lot better for me. But is there a way to set the editable property for a specific cell? I just realized that my code is enabling editable for the entire column and that is not what I intended.
January 22, 2014 at 10:45 pm in reply to: Nested JSON display in JQGrid available in newer version Nested JSON display in JQGrid available in newer version #48238If an employee belongs to multiple departments, how would you display that in the grid without hard-coding the mapping (i.e. department>0>id)?
January 18, 2014 at 12:39 am in reply to: jqxGrid: Making a column non editable or editable on click of radio button jqxGrid: Making a column non editable or editable on click of radio button #48034I used this example http://jsfiddle.net/jqwidgets/XSKXc/ to try to make a column editable on button click but it doesn’t work. Here is the code I tried. What am I missing?
$('#jqxbutton').click(function () { $('#jqxgrid').jqxGrid('setcolumnproperty', 'firstname', 'width', 200); $('#jqxgrid').jqxGrid('setcolumnproperty', 'firstname', 'editable', true); });
-
AuthorPosts