<%
@ Master Language="VB" CodeFile="TemplateDialog.Master.vb" Inherits="Master_TemplateDialog" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>ISMP - CRM System </title>
<script type="text/javascript" src="../Scripts/Calendar.js"></script>
<script type="text/javascript" src="../Scripts/CalendarSetup.js"></script>
<script type="text/javascript" src="../Scripts/CalendarEnglish.js"></script>
<script type="text/javascript" src="../Scripts/Functions.js"></script>
<script type="text/javascript" src="../Scripts/QueryString.js"></script>
</head>
<body style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
<form id="form1" runat="server">
<telerik:RadScriptManager ID="ScriptManager" runat="server"></telerik:RadScriptManager>
<uc5:HelpControl ID="HlpControl" runat="server" />
<asp:contentplaceholder id="PageContent" runat="server">
</asp:contentplaceholder>
<telerik:RadProgressManager id="RadProgressManager1" runat="server" />
<telerik:RadWindowManager id="MasterWindowMgr" runat="server" Behavior="Close,Move" VisibleStatusbar="false" ReloadOnShow="True">
<Windows>
<telerik:RadWindow ID="DialogWindow" runat="server" Left="" NavigateUrl="" Skin="Windows7" Title="" Top=""></telerik:RadWindow>
<telerik:RadWindow OnClientClose="OnRadModalClose" ID="DialogWindowModal" runat="server" Modal="true" Left="" NavigateUrl="" Skin="Windows7" Title="" Top=""></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" />
</form>
</body>
</html>
Here is the web.config file.
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="MilesLibrary.TemplateNamespace" value="Template"/>
<add key="MilesLibrary.EventSource" value="Template"/>
<add key="MilesLibrary.AutoLog" value="true"/>
<add key="MilesLibrary.CustomerDocumentFolder" value="xxxxxx" />
<add key="UploadNewsletterfolder" value="xxxx"/>
<add key="UploadNewsletteraddress" value="xxxxx"/>
<add key="MilesLibrary.CustomerDocumentWebFolder" value="xxxxx"/>
<add key="EmailAttachments" value="xxxx"/>
<add key="CustomerEmailAttachments" value="xxxx"/>
<add key="ReportFolder" value="xxx"/>
<add key="PaymentStatusNA" value="2"/>
<add key="StandardLogoID" value="3"/>
<add key="ReportFolderLink" value="xxxx"/>
<add key="ReportingService.reportservice" value="xxxx"/>
<add key="UploadLogofolder" value="xxxx"/>
<add key="UploadLogoaddress" value="xxxx"/>
</appSettings>
<connectionStrings>
<add name="MilesLibrary.ConnectionString" connectionString="server=xxxxxxxx;uid=xxxxx;pwd=xxxxxx;database=xxx;Max Pool Size=20;Min Pool Size=1;Connection Timeout=300;"/>
</connectionStrings>
<system.web>
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Data"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="cc1" assembly="ISMPControls" namespace="ISMPControls"/>
<add tagPrefix="radG" assembly="RadGrid.Net2" namespace="Telerik.WebControls"/>
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
<add tagPrefix="uc1" tagName="Phone" src="~/UserControls/Phone.ascx"/>
<add tagPrefix="uc2" tagName="StatesDropDown" src="~/UserControls/StatesDropDown.ascx"/>
<add tagPrefix="uc3" tagName="Tab" src="~/UserControls/Tab.ascx"/>
<add tagPrefix="uc4" tagName="DateTimeControl" src="~/UserControls/DateTimeControl.ascx"/>
<add tagPrefix="uc5" tagName="HelpControl" src="~/UserControls/HelpControl.ascx"/>
<add tagPrefix="uclb" tagName="ListBoxControl" src="~/UserControls/ListBoxControl.ascx"/>
</controls>
</pages>
<authentication mode="Forms">
<forms name=".Template" loginUrl="~/security/login.aspx" protection="None" timeout="1800" path="/"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<!--<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="1800"/> -->
<customErrors mode="Off"/>
<httpRuntime maxRequestLength="2097151"/>
<httpHandlers>
<add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
<add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
<add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
<add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<remove verb="*" path="*.asmx"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
<location path="Images">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Telerik.Web.UI.WebResource.axd">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Using CSS and html need the below format like category and sub-categories (Definetly it should be like expanding and collapsing functionality). Could anyone please give me some ideas on aspx side as well as code-behind. That would be great.

I'm getting this error after upgrading my app to the latest version. What am I missing?
"Unable to get property '_events' of undefined or null reference"
"Uncaught TypeError: Cannot read properties of undefined (reading '_events')"
Telerik.Web.UI.WebResource.axd
Hi sir
I use radcomobox in master page after i need get the selected value in child page with button click.
for now i get only first value even i select middle value.
Hi,
I used this follow function to export my grid to Excel format, while my data source(a store procedure) has hyperlink inside.
How can I just export the grid without hyperlink by setting some configurations?
aspx file
<asp:GridView ID="ExcelGridView" runat="server" BorderStyle="None" GridLines="Both" Visible="False" HeaderStyle-Font-Bold="true" HeaderStyle-BackColor="LightGray" OnRowDataBound="ExcelGridView_RowDataBound"></asp:GridView>
cs file
System.Data.DataTable data_table = ADOHelper.GetDataTable(ConfigurationManager.ConnectionStrings["Ligx_4_DB"].ConnectionString, query, null);ExcelGridView.DataSource = data_table;ExcelGridView.DataBind();ExcelGridView.Visible = true;Response.ClearContent();string attachment = "attachment; filename=ExcelDownload.xls";Response.AddHeader("Content-disposition", attachment);Response.ContentType = "xls";

The RadNumericTextBox is rounding incorrectly after a postback.
I am currently using 5 decimal places with the value of
0.00481487920209807When the page loads it displays correctly
After I click the Postback button the display value changes
<div class="form-row">
<asp:Button ID="btnCausePostback" Text="Postback" runat="server" OnClick="btnCausePostback_Click" />
<telerik:RadNumericTextBox runat="server" ID="txtUnitCost" NumberFormat-DecimalDigits="5" Value="0.00481487920209807" />
</div>protected void btnCausePostback_Click(object sender, EventArgs e)
{
}
I am not sure what the round function is doing in this scenario?
I do have a work around which is setting
NumberFormat-AllowRounding="false"

Hello,
I'm using a RadScheduler and I have set it to display the AdvanceEditForm on click on an appointment.
I also have a RadToolTipManager to have a custom tooltip when the mouse pass over an appointment.
The problem I have is that :
- if I click on the appointment before the RadToolTipManager begin to show the tooltip
or
- if I move on another appointment after clicking on one and before the AdvanceEditForm appears
the clientappointmentclick event is cancelled by the tooltip ...
https://www.screencast.com/t/8LlJ3UTqLR
How can I do to avoid this problem ?
Best regards,
Remy Dubois.
hello
I am using a radgrid with a master table view and details table, I can update my master table view with a stored procedure however I cannot update detail table with another stored procedure. The two updates must be done simultaneously with the save button of radgrid in edit mode.
Here is what I did for my master table view, it works and i would like to do the same button on my detail table, Can you help me pls
protected void RadGrid1_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
GridEditableItem editedItem = e.Item as GridEditableItem;
string pID_OF = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["ID_OF"].ToString();
string pNO_WO = (editedItem["NO_OF"].Controls[0] as TextBox).Text;
string pRef = (editedItem["CodeArticle"].Controls[0] as TextBox).Text;
string pQte = (editedItem["QteLancee"].Controls[0] as TextBox).Text;
string pStatut_WO = (editedItem["StatutOF"].Controls[0] as TextBox).Text;
string pDate_WO = (editedItem["DateLancement"].Controls[0] as TextBox).Text;
string pID_Affectation = (editedItem["ID_Affectation"].FindControl("RadCombobox1") as RadComboBox).SelectedValue;
try
{
SqlDSListeOF.UpdateParameters["pID_OF"].DefaultValue = pID_OF;
SqlDSListeOF.UpdateParameters["pNO_WO"].DefaultValue = pNO_WO;
SqlDSListeOF.UpdateParameters["pRef"].DefaultValue = pRef;
SqlDSListeOF.UpdateParameters["pQte"].DefaultValue = pQte;
SqlDSListeOF.UpdateParameters["pStatut_WO"].DefaultValue = pStatut_WO;
SqlDSListeOF.UpdateParameters["pDate_WO"].DefaultValue = pDate_WO;
SqlDSListeOF.UpdateParameters["pID_Affectation"].DefaultValue = pID_Affectation;
SqlDSListeOF.Update();
}
catch (Exception ex)
{
e.Canceled = true;
ErrorAffectation.Text = "Impossible de mettre à jour . " + ex.Message;
}
}
Can you please tell me why RadFilter can not load field names from this RadGrid2 if I chang the FilterContainerID to another Radgrid in the page it work fine
<div style="float:right ; display: flex">
<telerik:RadFilter RenderMode="Lightweight" runat="server" ID="RadFilter1" FilterContainerID="RadGrid2" ShowApplyButton="false" ShowAddGroupExpressionButton="False" UseBetweenValidation="False"></telerik:RadFilter>
</div>
<div class="Demo">
<telerik:RadGrid ID="RadGrid2"
GridLines="None"
runat ="server"
AllowAutomaticDeletes="false"
AllowAutomaticInserts="True"
AllowPaging="True"
AutoGenerateColumns="false"
PageSize="4"
CellSpacing="0"
OnPreRender ="RadGrid2_PreRender"
OnItemCommand ="RadGrid2_ItemCommand"
AllowAutomaticUpdates="True"
AllowMultiRowEdit="true"
AllowMultiRowSelection ="true"
DataSourceID ="SqlDataSource3">
<MasterTableView DataKeyNames="Inv_Id,Id"
CommandItemDisplay="Top"
AutoGenerateColumns="False"
EditMode="InPlace"
HorizontalAlign="NotSet"
IsFilterItemExpanded="false"
RetainExpandStateOnRebind="true"
DataSourceID ="SqlDataSource3"
>
<CommandItemSettings ShowAddNewRecordButton="false" RefreshText="أعادة تنشيط" RefreshImageUrl="../Images/Green%20Icons/RefreshGreen.png" />
<CommandItemTemplate>
<telerik:RadToolBar RenderMode="Lightweight" runat="server" ID="RadToolBar1" AutoPostBack="true">
<Items>
<telerik:RadToolBarButton Text="أعادة تنشيط" CommandName="Rebind" ImageUrl="../Images/Green%20Icons/RefreshGreen.png" ImagePosition="Right"></telerik:RadToolBarButton>
<telerik:RadToolBarButton Text=" تطبيق التصفية" CommandName="FilterRadGrid" ImageUrl="../Images/Filter-List-icon.png" ImagePosition="Right"></telerik:RadToolBarButton>
<telerik:RadToolBarButton Text="حفظ واختيار الجميع" CommandName="UpdateEdited" ImageUrl="../Images/appicons/update.png" ImagePosition="left" OnClick="btnUpdateAll_Click"></telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
</CommandItemTemplate>
<Columns>
<telerik:GridTemplateColumn UniqueName="TemplateCheckboxColumn">
<HeaderTemplate>
<telerik:RadCheckBox ID="CheckAllCheckBox" runat="server" AutoPostBack="false" OnClientCheckedChanged="checkAllChanged"></telerik:RadCheckBox>
</HeaderTemplate>
<EditItemTemplate>
<telerik:RadCheckBox ID="RowCheckBox" runat="server" AutoPostBack="false" Checked='<%# Bind("AnimalStat") %>' ></telerik:RadCheckBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn SortExpression="inv_Id" HeaderText="التسلسل" HeaderButtonType="TextButton"
DataField="inv_Id" UniqueName="inv_Id" display="false" AllowFiltering ="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Id" HeaderText="التسلسل" HeaderButtonType="TextButton"
DataField="Id" UniqueName="Id" display="false" AllowFiltering ="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="AnimalId" HeaderText="رقم الكمبيوتر" HeaderButtonType="TextButton"
DataField="AnimalId" UniqueName="AnimalId" ReadOnly="true" HeaderStyle-Width="150px" AllowFiltering ="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="AnimalNo" HeaderText="رقم الحيوان" HeaderButtonType="TextButton"
DataField="AnimalNo" UniqueName="AnimalNo" ReadOnly="true" HeaderStyle-Width="150px" AllowFiltering ="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="curr_wight" HeaderStyle-Width="150px" HeaderText=" الوزن الحالي"
UniqueName="curr_wight" ReadOnly="true" AllowFiltering ="true">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowKeyboardNavigation="true" >
<Selecting AllowRowSelect="true"></Selecting>
</ClientSettings>
</telerik:RadGrid>