Hi
We are currently using EntityDataSource to bind data to grid. Currently sorting on single column works fine.
When I enable multi column sorting on grid it gives me the below error. But Multi column sorting works fine with Object Datasource.
Below are the error details.
'QueueId' could not be resolved in the current scope or context. Make sure that all referenced variables are in scope, that required schemas are loaded, and that namespaces are referenced correctly., near simple identifier, line 18, column 1.
Regards
Vikram
None of these work. The tooltip is inside a panel bar. The 2008 version worked perfect.
Please help.
Joshua
| <Columns> |
| <telerik:GridTemplateColumn UniqueName="Delete" AllowFiltering='false'> |
| <HeaderStyle Width="45px" /> |
| <ItemStyle CssClass="c" /> |
| <ItemTemplate> |
| <asp:HyperLink ID="DeleteLink" runat="server" Text="Delete" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| Dim type As String = "Delete" |
| Dim column As New GridTemplateColumn |
| column.AllowFiltering = False |
| column.HeaderStyle.Width = 45 |
| column.ItemStyle.CssClass = "c" |
| column.ItemTemplate = New HyperlinkTemplate(type) |
| column.UniqueName = type |
| RadGrid1.MasterTableView.Columns.Add(column) |
| Public Class HyperlinkTemplate |
| Implements ITemplate |
| Private _type As Object |
| Public Sub New(ByVal type As String) |
| MyBase.New() |
| _type = type |
| End Sub |
| Public Sub InstantiateIn(ByVal container As Control) Implements ITemplate.InstantiateIn |
| Dim hl As New HyperLink |
| hl.EnableViewState = False |
| hl.ID = _type & "Link" |
| hl.Text = _type |
| hl.Attributes("href") = "#" |
| container.Controls.Add(hl) |
| End Sub |
| End Class |
| Dim deleteLink As HyperLink = DirectCast(e.Item.FindControl("DeleteLink"), HyperLink) |
| deleteLink.Attributes("onclick") = [String].Format("return Delete('{0}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)(IDcolumnIsHere)) |
| deleteLink.ID &= e.Item.ItemIndex |
| function Delete(id) { $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Grid,Delete," + customValue + "," + id); } |
I’m having a problem with the selection of rows in a Master/Detail Grid.
Scenario: I have a page with two grids that are connected via a Master/Detail relationship. It is similar to http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx, except I have two grids instead of three and my page’s pre-render event codebehind looks like:
| Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender |
| If RadGrid1.SelectedIndexes.Count = 0 Then |
| RadGrid1.SelectedIndexes.Add(0) |
| End If |
| End Sub |
When the page loads for the first time, the first row in the Master grid is selected, but not the first row in the Detail grid.
I wanted to know how to select the first row in the Detail Grid of a Master/Detail Grid on the first load of the page if the Detail grid has any rows related to that particular Master grid item at Index(0).
| <telerik:RadPanelBar ID="RadPanelBar1" runat="server" ItemCreated="RadPanelBar1_ItemCreated"> |
| <ItemTemplate> |
| <asp:TextBox ID="txtResponse" TextMode="MultiLine" runat="server" /><br /> |
| <asp:Button ID="btnSubmit" runat="server" Text="Submit" Visible="true" /> |
| <asp:LinkButton ID="lbAsk" runat="server" Visible="true" /> |
| <asp:LinkButton ID="lbNewEvisit" runat="server" Visible="true" /> |
| </ItemTemplate> |
| </telerik:RadPanelBar> |
| protected void RadPanelBar1_ItemCreated(object sender, RadPanelBarEventArgs e) |
| { |
| if (e.Item.Owner is RadPanelBar) |
| { |
| RadPanelItem i = new RadPanelItem(); |
| e.Item.Items.Add(i); |
| } |
| } |
| /* Page Load Event and other stuff */ |
| RadPanelBar1.DataSource = ds.Tables[0]; |
| RadPanelBar1.DataTextField = "dtEvisitStart"; |
| RadPanelBar1.DataBind(); |