<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="WebForm2.aspx.vb" Inherits="_3POC.WebForm2" %> <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <!-- content start --> <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"> </asp:ScriptManagerProxy> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista" ></telerik:RadAjaxLoadingPanel> <telerik:RadCodeBlock runat="server" ID="radCodeBlock"> <script type="text/javascript"> function showFilterItem() { $find('<%=RadGrid1.ClientID %>').get_masterTableView().showFilterItem(); } function hideFilterItem() { $find('<%=RadGrid1.ClientID %>').get_masterTableView().hideFilterItem(); } </script> </telerik:RadCodeBlock> <div> Show filtering item <input id="Radio1" type="radio" runat="server" name="showHideGroup" checked="true" onclick="showFilterItem()" /><label for="Radio1">Yes</label> <input id="Radio2" type="radio" runat="server" name="showHideGroup" onclick="hideFilterItem()"/><label for="Radio2" >No</label> </div> <br/> <telerik:RadGrid AutoGenerateColumns="false" ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource" Width="760px" AllowFilteringByColumn="True" AllowSorting="True" PageSize="15" ShowFooter="True" AllowPaging="True" runat="server" GridLines="None" EnableLinqExpressions="false" > <PagerStyle Mode="NextPrevAndNumeric" /> <GroupingSettings CaseSensitive="false" /> <MasterTableView AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True" TableLayout="Auto"> <Columns> <telerik:GridBoundColumn ItemStyle-Width="100%" DataField="FieldName" ShowFilterIcon="false" AllowFiltering="true" CurrentFilterFunction="StartsWith" UniqueName="column" AutoPostBackOnFilter="true" FilterDelay="2000"> </telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings> <Scrolling AllowScroll="false" /> </ClientSettings> </telerik:RadGrid> <br /> <asp:Button Text="PostBack" runat="server" ID="Button1" CssClass="button" style="margin:0 20px 0;" /> Click "PostBack" to see the state of the grid is preserved. </asp:Content>
<GroupByExpressions>
<tk:GridGroupByExpression>
<SelectFields>
<tk:GridGroupByField FieldAlias="Sent" FieldName="DateSent" FormatString="{0:D}" HeaderValueSeparator=" on: "></tk:GridGroupByField>
</SelectFields>
<GroupByFields>
<tk:GridGroupByField FieldName="DateSent" FormatString="{0:D}" SortOrder="Descending" ></tk:GridGroupByField>
</GroupByFields>
</tk:GridGroupByExpression>
</GroupByExpressions>
The following is the anonymous type object declaration from the code behind:
oList.Add(New With {Key .SysID = message.SysID, .From = sender, .Subject = message.EmailSmsLog.Subject, _
.MailIcon = emailIcon, .DateSent = dateSent, .TimeSent = timeSent, _
.IsRead = message.IsRead})
I then assign the datasource of the radgrid as oList
The exception I get is:
Telerik.Web.UI.ParseException: No property or field 'DateSent' exists in type
'Object'
When I take the group by expressions out of the radgrid, everything works fine.
This code worked in previous versions of the control.
Can anyone confirm that this is a problem in Q3.
Thanks
Mike
Hi,
I am using master page and content pages, master page, we have one user control with telerik:RadTabStrip and telerik:RadTab
Each content pages we using above user control to loads the tabs
Problem :- upon clicking on one tab I have to redirect to "http://199.63.yyy.yyy/standard/default.php" url, when I am trying to give url in NavigationUrl of RadTab ( Please check below) , it's redirecting to all new page, I want it to load in the Right side Content page,
Please help me how can I do that ??
<telerik:RadTab Text="<%$ Resources:Master, TabSettings %>" Value="GraphicSettings" NavigateUrl="http://199.63.yyy.yyy/standard/default.php" Visible="<%# Model.TabGraphicSettingsVisible && ProfileHelper.SettingsVisiblity%>" /> Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim viewPaths As String() = New String() {"C:\PhysicalSource\ROOT", "\\Telerik.com\Path\SharedDir\ROOT\Folder_1\"}
Dim uploadPaths As String() = New String() {"C:\PhysicalSource\ROOT\CanUpload", "\\Telerik.com\Path\SharedDir\ROOT\Folder_1\"}
Dim deletePaths As String() = New String() {"C:\PhysicalSource\ROOT\Folder_1\CanDelete", "\\Telerik.com\Path\SharedDir\ROOT\Folder_1\"}
End Sub
In asp
<telerik:RadEditor ID="RadEditor1" runat="server">
</telerik:RadEditor>
rgdTable.DataSource = myDataSet.Tables("myTable") rgdTable.DataBind()DisplayInfo.InnerHtml = "<p>Master Table Column Count: " & rgdTable.MasterTableView.Columns.Count & "</p>"DisplayInfo.InnerHtml = "<p>RadGrid Column Count: " & rgdTable.Columns.Count & "</p>"