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

Issue with Adding new record in the Grid

3 Answers 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Samyukta
Top achievements
Rank 1
Samyukta asked on 21 Jun 2018, 02:16 PM

Hi,

I have a view with a text box , button and two grids. The intention is to populate the two grids with data, when the text box is supplied with a string value and the button is clicked. Since, kendo().TextBox() does not support Events, I have introduced the button which when clicked updates both the grids as below:

 

        $("#get").click(function () {
            var value = $("#customerInfo").data("kendoTextBox");
          
                $("#gridCurrent").data("kendoGrid").dataSource.read();
                $("#gridAll").data("kendoGrid").dataSource.read();      

        });

This works fine. However after the grids are loaded, I am unable to add a new record to the grid, the Add New Record button on the grid does not work. Any suggestions on this?

Note: I had to use a text box because, the input value is a alphanumeric (varying size) and I found no suitable component.

 

Thank you in advance.

Sam

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 22 Jun 2018, 10:54 AM
Hi Sam,

Based on the available information it would be hard to pinpoint what is causing the behavior. Nevertheless, would you open the browser console by pressing F12 and see if there are any errors listed? In case there are errors they can point us in the right direction. 

Also, it would be great if you can send us a dojo sample or runnable project with similar setup where the behavior is replicated. This will enable us to examine the behavior locally and look for its cause. 

Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Samyukta
Top achievements
Rank 1
answered on 26 Jun 2018, 09:18 PM

Hi Viktor,

Thank you for the reply. However I found out that the issue that was causing it. I had a dropdownlist as a column in the grid, which was not populating and was null. therefore the Add new record option was not working.

Thank you,

Sam

0
Viktor Tachev
Telerik team
answered on 28 Jun 2018, 09:41 AM
Hello Sam,

Thank you for getting back and sharing what was causing the issue. This can help someone facing similar behavior.


Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Samyukta
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Samyukta
Top achievements
Rank 1
Share this question
or