jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Mixing with asp.net
Tagged: asp .net grid, grid, grid asp .net, grid selection
This topic contains 4 replies, has 2 voices, and was last updated by jose Ivan 12 years, 11 months ago.
-
AuthorMixing with asp.net Posts
-
Hi well recently i found the project jqwidgets… they are awesome !!! congratulations !!
I ‘ve been testing some fuctions and watching the funcionality so I want to do the following
when the final user is in the last column and keydown press add a new row and set the first column like editable .
i would like to see more examples insert ,update and delete ’cause i want to do this but in aspx.net
I got the following :
$("#jqxgrid").bind('cellselect', function (event) { var al = event; cell = $('#jqxgrid').jqxGrid('getselectedcell'); var column = $("#jqxgrid").jqxGrid('getcolumn', event.args.datafield); if (column != null) { if (column.text == $("#jqxgrid").jqxGrid('columns').records[$("#jqxgrid").jqxGrid('columns').length() - 1].text && event.args.rowindex == lasrow) { flag = true; } else flag = false; }
this is the function on keydown of jquery so this add a new row and set the first column�
like editable the problem is in celledit function don’t find the column and that’s if(column!=null)$("#jqxgrid").keydown(function (event) { if (flag) { var something = addrowempty(); var value = $('#jqxgrid').jqxGrid('addrow', something.id, something); var col = $("#jqxgrid").jqxGrid('columns').records[1].text; $('#jqxgrid').jqxGrid('selectcell', lasrow + 1, col); } });function addrowempty() { var row = {}; row["id"] = 9; row["available"] = 0; row["Account"] = ""; row["Description"] = ""; row["Debe"] = ""; row["Haber"] = ""; row["nota"] = ""; return row;}
i can’ t find the error ……
Hi jose Ivan,
To select a cell in a column, you need to use the column’s ‘datafield’ property instead of its ‘text’ property.
Best Wishes,
Peter StoevjQWidgets Team
http://www.jqwidgets.cominteresting !! thanks my bad… but what about examples of insert ,update and remove items….
Hi jose Ivan,
There are already several examples about insert, update and remove:
1. CRUD
2. CRUD with ASP .NET
3. CRUD with PHPBest Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks again for reply.. well i work with aspx form so i can’t find any example….
-
AuthorPosts
You must be logged in to reply to this topic.