jQWidgets Forums

jQuery UI Widgets Forums Grid Mixing with asp.net

This topic contains 4 replies, has 2 voices, and was last updated by  jose Ivan 12 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Mixing with asp.net #3374

    jose Ivan
    Member

    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 ……

    Mixing with asp.net #3389

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Mixing with asp.net #3390

    jose Ivan
    Member

    interesting !! thanks my bad… but what about examples of insert ,update and remove items….

    Mixing with asp.net #3391

    Peter Stoev
    Keymaster

    Hi jose Ivan,

    There are already several examples about insert, update and remove:

    1. CRUD
    2. CRUD with ASP .NET
    3. CRUD with PHP

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Mixing with asp.net #3436

    jose Ivan
    Member

    Thanks again for reply.. well i work with aspx form so i can’t find any example….

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

You must be logged in to reply to this topic.