or
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadScheduler1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="calendarPopup" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnOk"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnCancel"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager><telerik:RadWindow ID="calendarPopup" runat="server" Skin="Windows7" AutoSize="True" Animation="Fade" EnableShadow="True" Modal="True" Opacity="100"> <Localization Maximize="<%$ Resources:RadWindow, Maximize %>" Minimize="<%$ Resources:RadWindow, Minimize %>" Close="<%$ Resources:RadWindow, Close %>" PinOff="<%$ Resources:RadWindow, PinOff %>" PinOn="<%$ Resources:RadWindow, PinOn %>" Reload="<%$ Resources:RadWindow,Reload %>" Restore="<%$ Resources:RadWindow, Restore%>" Cancel="<%$ Resources:RadWindow, Cancel %>" /> <ContentTemplate> <table width="100%"> <tr> <td> <asp:Literal ID="lblAppointmentName" runat="server" Text="Nome del Calendario"></asp:Literal> </td> </tr> <tr> <td> <asp:TextBox ID="txtAppointmentName" runat="server" Width="250px"></asp:TextBox> </td> </tr> <tr> <td> <asp:Literal ID="lblAppointmentDescription" runat="server" Text="Descrizione Evento"></asp:Literal> </td> </tr> <tr> <td> <asp:TextBox ID="txtAppointmentDescription" runat="server" Width="250px" TextMode="MultiLine" Height="200"></asp:TextBox> </td> </tr> <tr> <td style="float: right;"> <br /> <telerik:RadButton ID="btnOk" runat="server" Text="Salva" OnClick="btnOk_Click" Skin="Windows7"> <Icon PrimaryIconCssClass="rbOk" PrimaryIconLeft="4" PrimaryIconTop="4" /> </telerik:RadButton> <telerik:RadButton ID="btnCancel" runat="server" Text="Annulla" OnClick="btnCancel_Click" Skin="Windows7"> <Icon PrimaryIconCssClass="rbCancel" PrimaryIconLeft="4" PrimaryIconTop="4" /> </telerik:RadButton> </td> </tr> </table> </ContentTemplate> </telerik:RadWindow>protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e) { e.Cancel = true; switch (e.Mode) { case SchedulerFormMode.AdvancedEdit: case SchedulerFormMode.Edit: { calendarPopup.Title = "Edit Appointment"; // Edit inizializing code here } break; case SchedulerFormMode.AdvancedInsert: case SchedulerFormMode.Insert: { calendarPopup.Title = "Create Appointment"; txtAppointmentName.Text = String.Empty; txtAppointmentDescription.Text = String.Empty; } break; } //This will open the popup! string script = "function f(){$find(\"" + calendarPopup.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true); }protected void btnCancel_Click(object sender, EventArgs e) { //This will close the popup! string script = "function f(){$find(\"" + calendarPopup.ClientID + "\").hide(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true); } protected void btnOk_Click(object sender, EventArgs e) { //This will close the popup! string script = "function f(){$find(\"" + calendarPopup.ClientID + "\").hide(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true); //Creating or Saving appointment here }

<telerik:RadDropDownTree ID="rddtrForeas" runat="server" EnableFiltering="True"
DefaultMessage="Select sth"
DataTextField="Title"
DataFieldID="SomeId"
CheckBoxes="SingleCheck"
ExpandNodeOnSingleClick="true"
DataValueField="SomeId"
DefaultValue="-1"
DataFieldParentID="ParentId">
<ButtonSettings ShowCheckAll="False" ShowClear="true"></ButtonSettings>
<DropDownSettings Height="400" AutoWidth="Enabled" CssClass="mis-rddtree" OpenDropDownOnLoad="False" ></DropDownSettings><br>
<FilterSettings Filter="Contains" FilterTemplate="ByText" Highlight="Matches" EmptyMessage="Write here for filtering" ></FilterSettings>
</telerik:RadDropDownTree>
| <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> |
| <Windows> |
| <telerik:RadWindow ID="NewSamplePopup" |
| Behaviors="Move,Pin" |
| ReloadOnShow="true" |
| Modal="true" |
| runat="server" |
| Height="520" |
| Width="600" |
| NavigateUrl="./NewSamplePopup.aspx" |
| VisibleStatusbar="false" |
| Title="Getting Available Sample Types...Please Wait" |
| ShowContentDuringLoad="false"> |
| </telerik:RadWindow> |
| </telerik:RadWindowManager> |
| <body> |
| <telerik:RadCodeBlock runat="server"> |
| <script type="text/javascript"> |
| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) |
| oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog |
| else if (window.frameElement.radWindow) |
| oWindow = window.frameElement.radWindow; //IE (and Moz as well) |
| return oWindow; |
| } |
| function RadWindowClose() { |
| GetRadWindow().Close(); |
| } |
| function CloseAndRebind(args) { |
| GetRadWindow().Close(); |
| GetRadWindow().BrowserWindow.refreshGrid(args); |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| protected void btnGetTests_Click(object sender, EventArgs e) |
| { |
| // code that throws an error... |
| } |
| protected void btnCancel_Click(object sender, EventArgs e) |
| { |
| // close the form - this works!!! |
| ScriptManager.RegisterStartupScript(this, this.GetType(), "close", "RadWindowClose();", true); |
| } |
| protected override void OnError(EventArgs e) |
| { |
| // At this point we have information about the error |
| HttpContext ctx = HttpContext.Current; |
| Exception exception = ctx.Server.GetLastError(); |
| ///////// |
| // Logic to handle error here |
| ///////// |
| ctx.Server.ClearError(); |
| // Gets called but doesn't work! |
| ScriptManager.RegisterStartupScript(this, this.GetType(), "close", "RadWindowClose();", true); |
| } |
Hi,
I am not able to bind the data with custom data attribute.
Is it possible to bind the data in telerik grid control?
I am trying like this..
<Columns>
<telerik:GridTemplateColumn Display="false"></telerik:GridTemplateColumn>
</Columns>
<Columns>
<telerik:GridTemplateColumn Display="false"><ItemTemplate>
<asp:Label runat="server" ID="lblRowStyle"</telerik:GridTemplateColumn>
</Columns>
Kindly do the needful...
for (var i = 0; i < masterView.get_dataItems().length; i++) {
var aCell= masterView.getCellByColumnUniqueName(masterView.get_dataItems()[i], "aCell")
if (aCell!= null) {
var cellValue = aCell.innerHTML;
if (Exists(filterListbox.get_checkedItems(), cellValue) == false) {
masterView.hideItem(i);
continue;
}
}
//now re-set paging so it still displays x items instead of x-(hidden item count)
}

