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

[Solved] Grid in tab incorrect link data paging

1 Answer 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.
Michael
Top achievements
Rank 1
Michael asked on 07 Apr 2011, 01:43 PM
I have 2 grids in a tabstrip

the second tab of which has incorrect browsing data eg

/HCMember?_=1302179640802&Members-page=2

I've tried registering the javascript (although none of this is/was required for the first grid) to no avail

@{ Html.Telerik().ScriptRegistrar().DefaultGroup(group =>
     {
         group.Add("telerik.common.js");         // That file is always required
         group.Add("telerik.grid.js");
         group.Add("telerik.grid.filtering.js"); // Include only if filtering is enabled
         group.Add("telerik.grid.grouping.js");  // Include only if grouping is enabled
         group.Add("telerik.grid.editing.js");   // Include only if editing is enabled
     });
}
the actual grid code is:

@model IEnumerable<WAC_MVC.Models.Member>
            
@(Html.Telerik().Grid(Model)
        .Name("Members")
        .DataKeys(key => key.Add(m => m.mMemberID))
        .HtmlAttributes(new { style = "border: 0;" })
        .Columns(col =>
            {
                col.Bound(m => m.mFName).Width(60);
                col.Bound(m => m.mSName).Width(60);
                col.Bound(m => m.GroupID).Width(60);
                col.Bound(m => m.mMale).Width(80);
            })
        .Pageable(paging => paging.PageSize(20))
        .Scrollable(scrolling => scrolling.Height(580))
        .Sortable()
        .Filterable()
         
)
 and the tab strip

@{Html.Telerik().TabStrip()
          .Name("Handicapper")
          .Effects(fx => fx.Expand()
              .Opacity()
              .OpenDuration(200)
              .CloseDuration(300))         
        .Items(parent=> {
            parent.Add()
                .Text("Results Entry")
                .Content(@<text>
                    @Html.Partial("_ResultGridEditable")
                    </text>)
                .Selected(true);
            parent.Add()
                .Text("Edit Members")
                .LoadContentFrom("Index", "HCMember");
                })
        .Render();
}


appreciate any guidance

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 08 Apr 2011, 10:07 AM
Hi Michael,

Unfortunately, I'm not sure what is your exact scenario, however the Url you have pasted is generated due to the use of LoadContentFrom method and it is expected. In order to better illustrate your scenario please consider providing a small runnable application and step by step instruction on how to recreate the issue you are facing.

Best wishes,
Rosen
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
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or