This is a migrated thread and some comments may be shown as answers.

disappear editor form when add new record in filter mode

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 18 Jan 2013, 09:42 PM
Hi,

The editor form shows when press add new record button.
but when filter grid and press add new record button
can not see the editor form popup.

And then clear filter , grid has a new blank record.

The relate code as below,please help to solve this problem.

Thanks,
Mark
 

add new record button
$("#grid").kendoGrid({
      toolbar: [{name:"create",text:"新增"}],
editable: {
        mode: "popup"
        }
})

filter grid
$("#item").kendoComboBox({
          change: function() {
             var value = this.value();
              if (value) {
                  grid.data("kendoGrid").dataSource.filter({ field: "id", operator: "eq", value: parseInt(value) });
              } else {
                  grid.data("kendoGrid").dataSource.filter({});
              }
            }
      });

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 21 Jan 2013, 05:18 PM
Hello Mark,

The behaviour that you described is expected and is caused by the fact that newly create record does meet the filterable criteria which is why it is not displayed.
In this forum thread you can find possible workarounds that you may use.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or