Hi,
I am using RadEditor control in my website but not able to load the editor when I run the site.
Previously I was using .Net 2.0 and telerik version 2011.1.413.40 but as I mentioned in the this link
http://www.telerik.com/community/forums/aspnet-ajax/vs-extensions/314574.aspx I followed the instruction
and now I am facing the problem as "ASP.NET Ajax client-side framework failed to load." --Syntax error
for ScriptResource.axd and Telerik.Web.UI.WebResource.axd
The TargetFramework setting of my project is: .Net Framework 4;
The version of the Telerik.Web.UI assembly is: Product Version: 2011.1.413.40
Please help me in solving this issue.
Thanks
|
<
telerik:RadGrid ID="RadGridCustomers" runat="server" Width="100%" AllowSorting="true" SkinID="ExpandCollapse"
AllowPaging="true" OnItemDataBound="RadGridCustomers_ItemDataBound" PageSize="20"
OnItemCommand="RadGridCustomers_ItemCommand" OnNeedDataSource="RadGridCustomers_NeedDataSource">
<ExportSettings FileName="RelationshipList" />
<ClientSettings>
<Resizing AllowColumnResize="true" />
</ClientSettings>
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView DataKeyNames="CcnNumber" Name="CcnList">
<NestedViewTemplate>
<tcb:ViewCustomers ID="ViewCustomersByCcn" runat="server" Visible="false" />
</NestedViewTemplate>
<Columns>
<telerik:GridTemplateColumn HeaderText="Relationship Name" DataField="CcnName"
SortExpression="CcnName" HeaderStyle-Width="140px">
<ItemTemplate>
<asp:HyperLink ID="HyperLinkCcnAccountList" runat="server" Target="_blank"
NavigateUrl="#" ToolTip="View Accounts" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</MasterTableView>
</telerik:RadGrid>
When I programmatically add a grid in the Page Init event, I understand how I can create the paging and it works.
However if the grid is not created in the Page Init, but in the Ribbon Buttonclicked event the paging command on the grid is not working. How should I enable this.
Private
Sub
ribbon_ButtonClick(sender
As
Object
, e
As
Telerik.Web.UI.RibbonBarButtonClickEventArgs)
Handles
ribbon.ButtonClick
Dim
radGrid =
New
RadGrid()
With
{
.AllowCustomPaging =
True
,
.AllowFilteringByColumn =
True
,
.AllowPaging =
True
,
.AllowSorting =
True
,
.AutoGenerateColumns =
True
,
.ID =
"myGrid"
,
.PageSize = 4,
.ShowGroupPanel =
True
,
.ShowStatusBar =
True
,
.VirtualItemCount = 20,
.Width = Unit.Percentage(95)
}
AddHandler
radGrid.NeedDataSource,
Sub
(_sender
As
Object
, _e
As
GridNeedDataSourceEventArgs) RefreshData(
CType
(_sender, RadGrid))
AddHandler
radGrid.PageIndexChanged,
Sub
(_sender
As
Object
, _e
As
GridPageChangedEventArgs) RefreshData(
CType
(_sender, RadGrid))
AddHandler
radGrid.PageSizeChanged,
Sub
(_sender
As
Object
, _e
As
GridPageSizeChangedEventArgs) RefreshData(
CType
(_sender, RadGrid))
phGrid.Controls.Add(radGrid)
RadAjaxManager.AjaxSettings.AddAjaxSetting(radGrid, radGrid)
End
Sub
Private
Sub
RefreshData(grid
As
RadGrid)
grid.DataSource =
New
List(Of
String
)({grid.CurrentPageIndex, grid.PageSize})
End
Sub
<
FieldEditors
>
<
custom:CustomDropdown
DisplayName
=
"Priority"
FieldName
=
"post_priority"
DataTextField
=
"Display"
DataValueField
=
"Value"
/>
<
custom:CustomDate
DisplayName
=
"Date"
FieldName
=
"post_time"
DataType
=
"System.DateTime"
/>
<
telerik:RadFilterDateFieldEditor
DisplayName
=
"Post Date"
FieldName
=
"post_time"
DataType
=
"System.DateTime"
/>
</
FieldEditors
>