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

[Solved] ajax binding problem after updating to 2010.2.825

4 Answers 78 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.
Mario van de Pol
Top achievements
Rank 1
Mario van de Pol asked on 27 Sep 2010, 12:47 PM
Hi,

just updated to 2010.2.825 because I wanted to try out the DetailView with nested grids. First thing is that ajaxbinding stopped working on this grid (code example below). Also rowselection stopped working.  When switching back to older versions (2010.1.416 or 2010.1.309) it works fine, but DetailView is not supported I believe. Second thing is that adding a detailview and the necessary javascript (see code below) only adds a plus symbol to the row. Doesn't work in my case. Am I missing something here?

Thanx in advance,

Kind regards Mario.

<%= Html.Telerik().Grid<VestigingDTO>()
            .Name("Grid")
        .DataKeys(keys =>
        {
            keys.Add(item => item.extId);
        })
        .DataBinding(dataBinding =>
        {
            dataBinding.Ajax()
                .Select("_Index", "Branche");
        })
        .Columns(columns =>
        {
            columns.Bound(o => o.omschrijving).Title("naam");
            columns.Bound(o => o.Adres._voll_adres_pc_plaats).Title("adres");
            columns.Bound(o => o.ContactGegevens.email1).Title("e-mail");
            columns.Bound(o => o.ContactGegevens.tel_main).Title("telefoon");
            columns.Bound(o => o.extId).Hidden(true).Filterable(false).Sortable(false).HeaderHtmlAttributes(new { @style = "display:none;" });
        })
        .ToolBar(commands => commands
            .Custom()
                .HtmlAttributes(new { id = "insert_button" }).Text("Nieuw item")
            )
        .Selectable()
        .Pageable()
        .Sortable()
        .ClientEvents(events =>
        {
            events.OnRowSelected("RowSelect");
        })
        //detailview goes here   
%>

detailview code:
.DetailView(details => details.ClientTemplate(
            Html.Telerik().Grid<GroepDTO>()
            .Name("groupSublistView_<#= extID #>")
            .DataBinding(dataBinding => dataBinding.Ajax()
            .Select("GroupList", "Group", new { extId = "<#= extID #>" }))
            .Pageable()
            .Sortable()
            .ClientEvents(events =>
            {
            events.OnRowSelected("RowSelectGroup");
            })
            .ToHtmlString()
        ))


4 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 27 Sep 2010, 01:00 PM
Hello Mario van de Pol,

Unfortunately it is hard to determine where could be the problem depending on the given information. I will ask you to send us a simple test project which reproduces the described problem. Thus we will be able to review it locally and advice you further.

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mario van de Pol
Top achievements
Rank 1
answered on 27 Sep 2010, 01:47 PM
Found it. Include below breaks things down in the testproject(included) . Without it works. It's quite a relevant file though. This is the standard version coming with a vs mvc2 project. Known issue?

<script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>

0
Accepted
Georgi Krustev
Telerik team
answered on 27 Sep 2010, 02:05 PM
Hi Mario van de Pol,

Yes this is a known issue related with jquery.validate.js  (version 1.6) and jquery.1.4.2.js. A delegate is defined in jquery.validate.js file, which overrides the newly introduces delegate method in jquery 1.4.2 version. Grid uses jquery's delegate method, which after registering jquery.validate.js files, is overridden. Thus the grid stops to work. In the latest jquery.validate.js (version 1.7), this problem is fixed. I will suggest you to download it from here and use it.

Best wishes,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mario van de Pol
Top achievements
Rank 1
answered on 27 Sep 2010, 02:11 PM
thanks!
Tags
Grid
Asked by
Mario van de Pol
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Mario van de Pol
Top achievements
Rank 1
Share this question
or