
| public static void RegisterRoutes(RouteCollection routes) |
| { |
| routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); |
| routes.MapRoute( |
| "Default", // Route name |
| "{controller}/{action}/{id}", // URL with parameters |
| new { controller = "Default", action = "Index", id = "" } // Parameter defaults |
| ); |
| } |
| <div class="editor-label"> |
| <%= Html.LabelFor(model => model.Content) %> |
| </div> |
| <div class="editor-field"> |
| <form> |
| <% |
| RadEditor1.Content = Model.Content; |
| %> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"/> |
| <telerik:RadEditor runat="server" ID="RadEditor1" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"/> |
| <%= Html.ValidationMessageFor(model => model.Content) %> |
| </form> |
| </div> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| <Scripts> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> |
| </Scripts> |
| </telerik:RadScriptManager> |
| <script type="text/javascript"> |
| window.$ = $telerik.$; |
| </script> |
| <script type="text/javascript" src="/scripts/JQueryUI/jquery.ui.core.js"></script> |
| <script type="text/javascript" src="/scripts/JQueryUI/jquery.ui.widget.js"></script> |
| <script type="text/javascript" src="/scripts/JQueryUI/jquery.ui.tabs.js"></script> |
| Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated |
| Dim userControlName As String = e.PageView.ID & "VB.ascx" PAGE ERRORS HERE |
| Dim userControl As Control = Page.LoadControl(userControlName) |
| userControl.ID = e.PageView.ID & "_userControl" |
| e.PageView.Controls.Add(userControl) |
| End Sub |
Dear all,
i am currently using Telerik control for my financial site.
During development of this site i am facing following problem:
Thanks.
Denny.

| function RowSelected(sender, args) { |
| var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>"); |
| ajaxManager.ajaxRequest('StrgShiftCombinationPressed'); |
| } |
Hi,
I have a RADGRID with a DATABIND client-side.
The databind event is raised with a JS SETTIMEOUT function:
setTimeout('bindGrid()', 5000);
and in a bindGrid I have a regular call to my web service:
WS.GetDocumentsSelected(startIndex, pageSize, sortField, sortOrder, filtroT, filtroM, mozione, updateGrid, koMessage);
where filtroT, filtroM, mozione are a custom filter.
The return of WS is a below code
| function updateGrid(result) { |
| var tableView = $find("<%=RadGrid1.ClientID %>").get_masterTableView(); |
| tableView.set_dataSource(result); |
| tableView.dataBind(); |
| } |
It's work fine, but I have a problem with selected row:
If I selected the second row, e.g., and I execute a sort command, my row selected persist in the second row.
The same problem occours with paging-change and a filter changed.
I try to save my selected-row id in hidden-field and in data bound function set the selection manually with the follow code:
| function RadGrid1_RowDataBound(sender, args) { |
| var dkvs = document.getElementById("<%=DataKeyValueSelected.ClientID%>"); |
| if (dkvs && dkvs.value && (args.get_dataItem()["Id_doc"] == dkvs.value)) { |
| //args.get_dataItem().set_selected(true); |
| sender.get_masterTableView().get_dataItems()[parseInt(args.get_item()._itemIndexHierarchical)].set_selected(true); |
| } else { |
| //args.get_dataItem().set_selected(false); |
| sender.get_masterTableView().get_dataItems()[parseInt(args.get_item()._itemIndexHierarchical)].set_selected(false); |
| } |
| } |
after data bound the paging-change and a sort works fine, but if after row selected I remove my filter, I have all alternating item selected (after the selected row - see attached) .....