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

[Solved] Ajax hierarchical grid with in-cell editing - issue with insert

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Donna Stewart
Top achievements
Rank 1
Donna Stewart asked on 29 Sep 2011, 10:51 PM
I am having a strange issue when I try to insert a new record into my grid.  The grid is an ajax hierarchical grid and I am using in cell editing.  When I select the New Record button, it opens a row, but the first field is where the expand/collapse icon is, not under the correct column heading.  I have attached a screen shot.

Here is the code for the grid:
<%= Html.Telerik().Grid(Of GMC_Hub_and_Spoke.WebQueryInputModel).Name("InputPropertiesGrid").HtmlAttributes(New With {.style = "width:95%;"}) _
    .DataKeys(Function(key) key.Add(Function(k) k.WQI_Key)) _
    .ToolBar(Function(commands) commands.SubmitChanges()) _
    .ToolBar(Function(commands) commands.Insert()) _
    .ClientEvents(Function(events) events.OnError("onGridError")) _
    .DataBinding(Function(dataBinding) dataBinding.Ajax().Select("GetWQInputs", "WebQuery", New With {.id = Model.selectedWebQuery.QueryKey}).Update("SaveInputProperties", "WebQuery")) _
    .Editable(Function(editing) editing.Mode(GridEditMode.InCell)) _
    .Columns(Function(cols) cols.Bound(Function(c) c.ParameterName)) _
    .Columns(Function(cols) cols.Bound(Function(c) c.DisplayOrder)) _
    .Columns(Function(cols) cols.Bound(Function(c) c.QueryKey).Hidden(True)) _
    .Columns(Function(cols) cols.Bound(Function(c) c.WQI_Key).Hidden(True)) _
    .DetailView(Function(detailView) detailView.ClientTemplate( _
        Html.Telerik().Grid(Of GMC_Hub_and_Spoke.WQInputPropertyModel).Name("Properties_<#= WQI_Key #>") _
            .DataKeys(Function(key) key.Add(Function(kk) kk.WQIP_Key)) _
            .ToolBar(Function(commands) commands.Insert()) _
            .DataBinding(Function(dataBinding) dataBinding.Ajax().Select("GetInputProperties", "WebQuery", New With {.wqid = Model.selectedWebQuery.QueryKey, .wqipid = "<#= WQI_Key #>"}) _
                             .Update("SaveInputProperties", "WebQuery")) _
            .Editable(Function(editing) editing.Mode(GridEditMode.InCell)) _
            .ClientEvents(Function(events) events.OnEdit("onWQIPGridEdit")) _
            .ClientEvents(Function(events) events.OnRowDataBound("onWQIPRowDataBound")) _
            .Columns(Function(col) col.Bound(Function(cc) cc.PropertyName)) _
            .Columns(Function(col) col.Bound(Function(cc) cc.PropertyValue)) _
            .Columns(Function(col) col.Bound(Function(cc) cc.NoEdit).Hidden(True)) _
            .Columns(Function(col) col.Bound(Function(cc) cc.WQI_Key).Hidden(True)) _
            .Columns(Function(col) col.Bound(Function(cc) cc.WQIP_Key).Hidden(True)) _
            .ToHtmlString()))
%>

Any help is appreciated!
Donna

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 30 Sep 2011, 12:25 PM
Hello Donna Stewart,

There was similar issue with previous version of the component. Therefore, could you please download the latest Q2 SP1 2011 release of the components and see if there is a change in the observed behavior.

Regards,
Rosen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Donna Stewart
Top achievements
Rank 1
answered on 30 Sep 2011, 03:44 PM
I downloaded the latest version and it works now.  Thank you!
0
Pavan
Top achievements
Rank 1
answered on 05 Jan 2013, 05:29 AM
Hello Donna
 i need to do the same on telerik ajax hierarchical grid insert record in my nested second grid when i click on insert button records are inserted properly but grid is not rebind after insertion of records inform mode it stuck their how do i solve the problem i am not getting it.
Tags
Grid
Asked by
Donna Stewart
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Donna Stewart
Top achievements
Rank 1
Pavan
Top achievements
Rank 1
Share this question
or