Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
204 views
Is it possible to use ScriptManager and RadAjaxManager into a MasterPage ?

<asp:ScriptManager ID="smScriptManager" runat="server"></asp:ScriptManager>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" />

I have an error : App Error : Exception of type 'System.Web.HttpUnhandledException' was thrown.

It is because, I use the Ajax.Net for some pages and RadAjax for others recently pages which use telerik components.

Thank you in advance.

Sebastian
Telerik team
 answered on 06 Oct 2008
2 answers
182 views
I have the following scenario.  I have a master page with the scriptmanager and radajaxmanager on it.  On the master page I have two contentareas.  On the derived page I have a radajaxmanager proxy in the first of the two content areas.

On content area one is a treeview.  On content area two us an asp:panel[1] with a button and a second asp:panel[2].  We dyanimcally add usercontrols to the inner panel based upon the page mode.  Everything up to this point works fine.  When the page posts back, we recreate the user controls and everything works fine, in a general sense.

We have dynamically added the ajaxmanager action from the code which states, in short, that the button will update the treeview and asp:panel[2].  We have also added one (same exact criteria as the button) for the user control.  This works fine for the button.  I can click on this and changes are reflected in the treeview and asp:panel[2] just as expected. 

Now when the user control in asp:panel[2] does a postback using it's internally managed button (that is a button on the user control) the page posts back but only asp:panel[1] is updated.  The treeview is never updated to relfect the change.

I originally had these guys wrapped on radajaxpanel's but I read that this could be a problem.

So, the short question, seeing that I have ajaxmanager on the master page, and the ajaxmanagerproxy on the base page, how do I handle events within the user control that need to affect items at the base page?

I've tried adding another ajaxmanager to the user control but I simply don't have the reference to the base page treeview and panel data to create the callback.  I have tried manually putting the control names into the user control ajaxmanagerproxy but that did nothing (other than throw some javascript error (which I didn't log)).

Is there a simple way to acheive this?

Maria Ilieva
Telerik team
 answered on 06 Oct 2008
1 answer
134 views
Export rad grid to excel sheet using C#
Shinu
Top achievements
Rank 2
 answered on 06 Oct 2008
1 answer
119 views
Hi,

I am looking for some sample code but cannot find any.

I have a grid with clients.  On the left of each record I have a checkbox.  When a checkbox is checked, then if any other checkboxes are selected then it deselects them.  So when I a checkbox is checked then the section beneath that client expends and then there is another grid.  A grid with all that clients account numbers.

If any one can be of assistence please let me know.

Thanks
Brendan
Yavor
Telerik team
 answered on 06 Oct 2008
3 answers
175 views
Hi,

I'm tracking down some bottlenecks in our product using JetBrains dotTrace product and have found that the RadEditor is taking about 5 seconds to render on the server.

We're using RadEditor.NET2.dll version 7.2.1.0.

Below is some profiling data that I collected.  The format is:

<percentage of time> <method name> - <total time> - <total calls> <fully qualified method name>

Every time a method calls another method, that method is shown below the caller and indented by two spaces.  The result is a tree of method calls.

33.56 % RegisterScriptDescriptors - 19548 ms - 4 calls - Telerik.Web.UI.RadEditor.RegisterScriptDescriptors()
  33.56 % RegisterScriptDescriptors - 19548 ms - 4 calls - System.Web.UI.ScriptManager.RegisterScriptDescriptors(IScriptControl)
    33.56 % RegisterScriptDescriptors - 19548 ms - 4 calls - System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl)
      33.54 % GetScriptDescriptors - 19538 ms - 4 calls - Telerik.Web.UI.RadWebControl.GetScriptDescriptors()   (from System.Web.UI.IScriptControl)
        33.54 % GetScriptDescriptors - 19538 ms - 4 calls - Telerik.Web.UI.RadEditor.GetScriptDescriptors()
          33.54 % GetScriptDescriptors - 19538 ms - 4 calls - Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(WebControl)
            31.94 % DescribeComponent - 18607 ms - 4 calls - Telerik.Web.UI.RadWebControl.DescribeComponent(ScriptComponentDescriptor)   (from Telerik.Web.IControl)
              31.94 % DescribeComponent - 18607 ms - 4 calls - Telerik.Web.UI.RadEditor.DescribeComponent(ScriptComponentDescriptor)
                25.27 % Serialize - 14721 ms - 16 calls - System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object)
                  25.27 % SerializeValue - 14721 ms - 16 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object, StringBuilder, Int32, Hashtable, SerializationFormat)
                    25.25 % SerializeValueInternal - 14711 ms - 16 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object, StringBuilder, Int32, Hashtable, SerializationFormat)
                      24.98 % SerializeEnumerable - 14551 ms - 12 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable(IEnumerable, StringBuilder, Int32, Hashtable, SerializationFormat)
                        24.96 % SerializeValue - 14541 ms - 32 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object, StringBuilder, Int32, Hashtable, SerializationFormat)
                          24.50 % Serialize - 14271 ms - 32 calls - System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object, StringBuilder, SerializationFormat)
                            24.50 % SerializeValue - 14271 ms - 32 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object, StringBuilder, Int32, Hashtable, SerializationFormat)
                              24.50 % SerializeValueInternal - 14271 ms - 32 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object, StringBuilder, Int32, Hashtable, SerializationFormat)
                                24.50 % SerializeDictionary - 14271 ms - 32 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeDictionary(IDictionary, StringBuilder, Int32, Hashtable, SerializationFormat)
                                  24.48 % SerializeValue - 14261 ms - 68 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object, StringBuilder, Int32, Hashtable, SerializationFormat)
                                    24.46 % SerializeValueInternal - 14250 ms - 68 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object, StringBuilder, Int32, Hashtable, SerializationFormat)
                                      24.43 % SerializeEnumerable - 14230 ms - 32 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable(IEnumerable, StringBuilder, Int32, Hashtable, SerializationFormat)
                                        24.41 % SerializeValue - 14220 ms - 264 calls - System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object, StringBuilder, Int32, Hashtable, SerializationFormat)
                                          19.96 % Serialize - 11627 ms - 264 calls - Telerik.Web.UI.EditorConverterBase.Serialize(Object, JavaScriptSerializer)
                                            11.41 % ShouldSkipProperty - 6650 ms - 3680 calls - Telerik.Web.UI.EditorToolConverter.ShouldSkipProperty(PropertyInfo, Object, Object)
                                              5.71 % ShouldSkipProperty - 3325 ms - 3576 calls - Telerik.Web.UI.EditorConverterBase.ShouldSkipProperty(PropertyInfo, Object, Object)
                                                3.04 % IsDefaultValue - 1773 ms - 1868 calls - Telerik.Web.UI.EditorConverterBase.IsDefaultValue(PropertyInfo, Object)
                                                  2.99 % GetCustomAttributes - 1743 ms - 1868 calls - System.Reflection.RuntimePropertyInfo.GetCustomAttributes(Type, Boolean)
                                                    2.97 % GetCustomAttributes - 1732 ms - 1868 calls - System.Reflection.CustomAttribute.GetCustomAttributes(RuntimePropertyInfo, RuntimeType)
                                                      2.96 % GetCustomAttributes - 1722 ms - 1868 calls - System.Reflection.CustomAttribute.GetCustomAttributes(Module, Int32, Int32, RuntimeType, Boolean, IList)
                                                        1.58 % FilterCustomAttributeRecord - 921 ms - 4716 calls - System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord, MetadataImport, Assembly &, Module, MetadataToken, RuntimeType, Boolean, Object [], IList, RuntimeType &, RuntimeMethodHandle &, Boolean &, Boolean &)
                                                          0.52 % ResolveType - 300 ms - 4716 calls - System.Reflection.Module.ResolveType(Int32, Type [], Type [])
                                                            0.19 % get_MetadataImport - 110 ms - 4716 calls - System.Reflection.Module.get_MetadataImport()
                                                              0.09 % GetMetadataImport - 50 ms - 4716 calls - System.ModuleHandle.GetMetadataImport()
                                                                0.00 % op_Explicit - 0 ms - 4716 calls - System.IntPtr.op_Explicit(Void *)
                                                              0.05 % get_ModuleHandle - 30 ms - 4716 calls - System.Reflection.Module.get_ModuleHandle()
                                                                0.02 % op_Explicit - 10 ms - 4716 calls - System.IntPtr.op_Explicit(IntPtr)
                                                            0.07 % GetModuleHandle - 40 ms - 4716 calls - System.Reflection.Module.GetModuleHandle()
                                                              0.02 % get_InternalModule - 10 ms - 4716 calls - System.Reflection.Module.get_InternalModule()
                                                              0.02 % ModuleHandle..ctor - 10 ms - 4716 calls - System.ModuleHandle..ctor(Void *)
                                                              0.02 % op_Explicit - 10 ms - 4716 calls - System.IntPtr.op_Explicit(IntPtr)
                                                            0.05 % ResolveTypeHandle - 30 ms - 4716 calls - System.ModuleHandle.ResolveTypeHandle(Int32, RuntimeTypeHandle [], RuntimeTypeHandle [])
                                                              0.05 % GetMetadataImport - 30 ms - 4716 calls - System.ModuleHandle.GetMetadataImport()
                                                                0.02 % op_Explicit - 10 ms - 4716 calls - System.IntPtr.op_Explicit(Void *)
                                                            0.03 % ConvertToTypeHandleArray - 20 ms - 9432 calls - System.Reflection.Module.ConvertToTypeHandleArray(Type [])
                                                            0.03 % GetRuntimeType - 20 ms - 4716 calls - System.RuntimeTypeHandle.GetRuntimeType()
                                                            0.02 % op_Implicit - 10 ms - 4716 calls - System.Reflection.MetadataToken.op_Implicit(MetadataToken)
                                                          0.24 % IsAssignableFrom - 140 ms - 4716 calls - System.Type.IsAssignableFrom(Type)
                                                            0.12 % CanCastTo - 70 ms - 4716 calls - System.RuntimeType.CanCastTo(RuntimeType, RuntimeType)
                                                              0.03 % CanCastTo - 20 ms - 4716 calls - System.RuntimeTypeHandle.CanCastTo(RuntimeTypeHandle)
                                                              0.02 % GetTypeHandleInternal - 10 ms - 9432 calls - System.RuntimeType.GetTypeHandleInternal()
                                                            0.07 % get_UnderlyingSystemType - 40 ms - 9432 calls - System.RuntimeType.get_UnderlyingSystemType()
                                                          0.21 % AptcaCheck - 120 ms - 1828 calls - System.Reflection.Assembly.AptcaCheck(Assembly)
                                                            0.14 % get_AssemblyHandle - 80 ms - 3656 calls - System.Reflection.Assembly.get_AssemblyHandle()
                                                              0.02 % get_InternalAssembly - 10 ms - 3656 calls - System.Reflection.Assembly.get_InternalAssembly()
                                                              0.02 % AssemblyHandle..ctor - 10 ms - 3656 calls - System.AssemblyHandle..ctor(Void *)
                                                            0.03 % AptcaCheck - 20 ms - 1828 calls - System.AssemblyHandle.AptcaCheck(AssemblyHandle)
                                                              0.00 % op_Explicit - 0 ms - 1828 calls - System.IntPtr.op_Explicit(Void *)
                                                          0.09 % get_Assembly - 50 ms - 3656 calls - System.RuntimeType.get_Assembly()
                                                            0.03 % GetAssemblyHandle - 20 ms - 3656 calls - System.RuntimeTypeHandle.GetAssemblyHandle()
                                                              0.02 % AssemblyHandle..ctor - 10 ms - 3656 calls - System.AssemblyHandle..ctor(Void *)
                                                            0.02 % GetTypeHandleInternal - 10 ms - 3656 calls - System.RuntimeType.GetTypeHandleInternal()


Is there anything I can do to improve performance?

I tried to log this under IE 7 but got a JavaScript error:
   Line: 4459
   Error: '_f.get_contentArea()' is null or not an object.
Rumen
Telerik team
 answered on 06 Oct 2008
0 answers
232 views

export radgrid to excel sheet i used coding like this but excel sheet is not loading properly

 ManagerRadGrid.ExportSettings.ExportOnlyData = true;
 ManagerRadGrid.ExportSettings.IgnorePaging = true;
 ManagerRadGrid.ExportSettings.OpenInNewWindow = true;
 ManagerRadGrid.MasterTableView.ExportToExcel();

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Manager.aspx.cs"  MasterPageFile="~/Web_Master_Pages/Main_Page.master" Inherits="Web_Pages_Dev_xml_Manager" %>

 <%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
 <%@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="radTS" %>
 <%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>
<%@ Register Assembly="RadSplitter.Net2" Namespace="Telerik.WebControls" TagPrefix="radspl" %>
<%@ Register Assembly="RadTreeView.Net2" Namespace="Telerik.WebControls" TagPrefix="radT" %>
<%@ Register Assembly="RadEditor.Net2" Namespace="Telerik.WebControls" TagPrefix="radE" %>
<%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %>

 <asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
 
   <script language="javascript" type="text/javascript" src="../../Web_Javascript/Manager.js"></script>
     <script type="text/javascript" originalAttribute="src" originalPath="../../Web_Javascript/Manager.js"></script>
     <script type="text/javascript" language="javascript">
function refreshGrid(arg)
{

if(!arg)

{
 window["<%=ManagerRadGrid.ClientID %>"].AjaxRequest('<%= ManagerRadGrid.UniqueID %>', 'Rebind');
}

else

{

window["<%=ManagerRadGrid.ClientID %>"].AjaxRequest('<%= ManagerRadGrid.UniqueID %>', 'RebindAndNavigate');

}

}

 function conditionalPostback(sender,args)
           {
            //on upload button click temporarily disables ajax to perform upload actions
           if(args.EventTarget == '<%=btnExport.UniqueID %>')
            {
           args.EnableAjax =false;
            }
           
            }
    

</script>
 <radA:RadAjaxManager ID="RadAjaxManager1" ClientEvents-OnRequestStart="conditionalPostback"  runat="server" >        
     <AjaxSettings>    
          <radA:AjaxSetting AjaxControlID="ManagerPanel">
              <UpdatedControls >                         
                <radA:AjaxUpdatedControl ControlID="ManagerPanel" />
                 <radA:AjaxUpdatedControl ControlID="SaveMessagelbl"  />
             <radA:AjaxUpdatedControl ControlID="LodingImage" LoadingPanelID="FooterAjaxLoadingPanel" />    
              
             </UpdatedControls >        
         </radA:AjaxSetting>                            
            </AjaxSettings>
     </radA:RadAjaxManager>
    
  
           
     <asp:Panel ID="ManagerPanel" runat="server" >
     <radspl:RadSplitter ID="RadSplitter1" Skin="WebBlue" runat="server" >
    <radspl:RadPane ID="RadPane1" runat="server" Width="9%" >
        <radT:RadTreeView ID="ManagerTreeView" runat="server" AutoPostBack="True" Skin="Inox" OnNodeClick="ManagerTreeView_NodeClick" OnPreRender="ManagerTreeView_PreRender">
            </radT:RadTreeView>
       
        </radspl:RadPane>
       
        <radspl:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" />
      
        <radspl:RadPane ID="RadPane2" runat="server" style="border:3px;"  >
   <div style="text-align: left">
  
  
   <table width="100%">
<tr>
<td>
                    
                                                   <table cellpadding="0" cellspacing="0" width="100%">
                                                   <tr>
                                                   <td style="width:40%">
                                                  
                                                    <radG:RadGrid ID="SalaryAmountDetailsGrid" runat="server"  AutoGenerateColumns="False" GridLines="None" Skin="WebGray20" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center" HeaderStyle-Height="15px" TabIndex="0"  CellPadding="0" CellSpacing="0" Visible="true" OnItemDataBound="SalaryAmountDetailsGrid_ItemDataBound" OnNeedDataSource="SalaryAmountDetailsGrid_NeedDataSource">
                                          <MasterTableView  Caption="Budget for Manager Below"  Font-Bold="True" Font-Size="12px" >
                                              <Columns>
                                             
                                                    
                                                  <radG:GridTemplateColumn DataField="AllowedIncrease" DataType="System.Decimal" HeaderText="Budget"
                                                      SortExpression="AllowedIncrease" UniqueName="AllowedIncrease">
                                                       <HeaderTemplate>
                                                       <asp:Label ID="HeaderDepartmentDescrLabel" runat="server" Text="Budget" style="text-align:left;float:left;"></asp:Label>
                                                      </HeaderTemplate>
                                                     
                                                      <ItemTemplate>
                                                          <asp:Label ID="lblbudget" runat="server" Text='<%# Eval("budget") %>' style="text-align:left;float:left;"></asp:Label>
                                                      </ItemTemplate>
                                                     
                                                      <HeaderStyle   HorizontalAlign="left" />
                                                      <ItemStyle HorizontalAlign ="Left" />
                                                  </radG:GridTemplateColumn>
                                                  <radG:GridTemplateColumn DataField="AllocatedIncrease" DataType="System.Decimal"
                                                      HeaderText="Spent" SortExpression="AllocatedIncrease" UniqueName="AllocatedIncrease">
                                                       <HeaderTemplate>
                                                       <asp:Label ID="HeaderDepartmentDescrLabel" runat="server" Text="Spent" style="text-align:left;float:left;"></asp:Label>
                                                      </HeaderTemplate>
                                                      <ItemTemplate>
                                                         <%-- <asp:Label ID="lblspent" runat="server" Text='<%# Eval("spent") %>' style="text-align:left;float:left;"></asp:Label>
                                                         --%>
                                                        
                                                        <%-- <asp:TextBox ID="lblspent" runat="server" Text='<%# Eval("spent") %>' style="text-align:left;float:left;"></asp:TextBox>
                                                        --%>
                                                          <asp:Textbox ID="lblspent" AutoPostBack="false" BorderStyle="none" BackColor="transparent" runat="server" Height="13px" Font-Size="11px" Font-Names="Ariel" Visible="true" Text='<%# Eval("spent") %>' Font-Bold="true" Width="80px" ForeColor="black" Enabled="true" style="text-align:center;"></asp:Textbox> 
                                           
                                                        
                                                      </ItemTemplate>
                                                     
                                                      <HeaderStyle   HorizontalAlign="left" />
                                                      <ItemStyle HorizontalAlign ="Left" />
                                                  </radG:GridTemplateColumn>
                                                  <radG:GridTemplateColumn DataField="AvailabelAmount" DataType="System.Decimal" HeaderText="Available"
                                                      SortExpression="AvailabelAmount" UniqueName="AvailabelAmount">
                                                       <HeaderTemplate>
                                                       <asp:Label ID="HeaderDepartmentDescrLabel" runat="server" Text="Balance" style="text-align:left;float:left;"></asp:Label>
                                                      </HeaderTemplate>
                                                      <ItemTemplate>
                                                          <asp:Label ID="lblbalance" runat="server" Text='<%# Eval("balance") %>' style="text-align:left;float:left;"></asp:Label>
                                                      </ItemTemplate>
                                                    
                                                      <HeaderStyle   HorizontalAlign="left"  />
                                                      <ItemStyle HorizontalAlign ="Left" />
                                                    
                                                  </radG:GridTemplateColumn>
                                                
                                                
                                              </Columns>
                                              <ExpandCollapseColumn Visible="False">
                                                  <HeaderStyle Width="19px" BackColor="#E8E8E8" />
                                              </ExpandCollapseColumn>
                                              <RowIndicatorColumn Visible="False">
                                                  <HeaderStyle Width="20px" />
                                              </RowIndicatorColumn>
                                          </MasterTableView>
                                          <ItemStyle HorizontalAlign ="Left" />
                                          <HeaderStyle Height="15px" HorizontalAlign ="Left" />
                           
                        </radG:RadGrid>
                                                  
                                                  
                                              
                                                   </td> 
                                                   <td style="width:5%;">
                                                  
                                                   </td>
                                                   <td style="width:50%">
                                                     <radG:RadGrid ID="OrgnGrid" runat="server"  AutoGenerateColumns="False" GridLines="None" Skin="WebGray20" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center" HeaderStyle-Height="15px" TabIndex="0"  CellPadding="0" CellSpacing="0" Visible="true" OnItemDataBound="OrgnGrid_ItemDataBound" OnNeedDataSource="OrgnGrid_NeedDataSource">
                                          <MasterTableView  Caption="My Budget"  Font-Bold="True" Font-Size="12px" >
                                              <Columns>
                                             
                                                    
                                                  <radG:GridTemplateColumn DataField="AllowedIncrease" DataType="System.Decimal" HeaderText="Budget"
                                                      SortExpression="AllowedIncrease" UniqueName="AllowedIncrease">
                                                       <HeaderTemplate>
                                                       <asp:Label ID="HeaderDepartmentDescrLabel" runat="server" Text="Budget" style="text-align:left;float:left;"></asp:Label>
                                                      </HeaderTemplate>
                                                     
                                                      <ItemTemplate>
                                                          <asp:Label ID="lblbudget" runat="server" Text='<%# Eval("budget") %>' style="text-align:left;float:left;"></asp:Label>
                                                      </ItemTemplate>
                                                     
                                                      <HeaderStyle   HorizontalAlign="left" />
                                                      <ItemStyle HorizontalAlign ="Left" />
                                                  </radG:GridTemplateColumn>
                                                  <radG:GridTemplateColumn DataField="AllocatedIncrease" DataType="System.Decimal"
                                                      HeaderText="Spent" SortExpression="AllocatedIncrease" UniqueName="AllocatedIncrease">
                                                       <HeaderTemplate>
                                                       <asp:Label ID="HeaderDepartmentDescrLabel" runat="server" Text="Spent" style="text-align:left;float:left;"></asp:Label>
                                                      </HeaderTemplate>
                                                      <ItemTemplate>
                                                          <asp:Label ID="lblspent" runat="server" Text='<%# Eval("spent") %>' style="text-align:left;float:left;"></asp:Label>
                                                      </ItemTemplate>
                                                     
                                                      <HeaderStyle   HorizontalAlign="left" />
                                                      <ItemStyle HorizontalAlign ="Left" />
                                                  </radG:GridTemplateColumn>
                                                  <radG:GridTemplateColumn DataField="AvailabelAmount" DataType="System.Decimal" HeaderText="Available"
                                                      SortExpression="AvailabelAmount" UniqueName="AvailabelAmount">
                                                       <HeaderTemplate>
                                                       <asp:Label ID="HeaderDepartmentDescrLabel" runat="server" Text="Balance" style="text-align:left;float:left;"></asp:Label>
                                                      </HeaderTemplate>
                                                      <ItemTemplate>
                                                          <asp:Label ID="lblbalance" runat="server" Text='<%# Eval("balance") %>' style="text-align:left;float:left;"></asp:Label>
                                                      </ItemTemplate>
                                                    
                                                      <HeaderStyle   HorizontalAlign="left"  />
                                                      <ItemStyle HorizontalAlign ="Left" />
                                                    
                                                  </radG:GridTemplateColumn>
                                                
                                                
                                              </Columns>
                                              <ExpandCollapseColumn Visible="False">
                                                  <HeaderStyle Width="19px" BackColor="#E8E8E8" />
                                              </ExpandCollapseColumn>
                                              <RowIndicatorColumn Visible="False">
                                                  <HeaderStyle Width="20px" />
                                              </RowIndicatorColumn>
                                          </MasterTableView>
                                          <ItemStyle HorizontalAlign ="Left" />
                                          <HeaderStyle Height="15px" HorizontalAlign ="Left" />
                           
                        </radG:RadGrid>
                        </td>
                                                   </tr>
                                                   </table>
                                                    
                                                          
                                                     
                                                     
</td>
</tr>
<tr>
<td>
                                                   

</td>
</tr>
</table>
  
  
    <table width="100%">
      <tr style="width:100%">
                <td valign="middle" style="background-color:#E8E8E8; ">
                <table cellpadding="0" cellspacing="0">
                <tr valign="middle">
              
                  <td id="Td1" align="left" runat="server" style="width:38%; padding-left:10px; height: 28px;">
                                 <asp:Label ID="Label1" runat="server" SkinID="BlueviewSkinLabel">Manager Direct Reports  </asp:Label>
                                    &nbsp;
                                    <asp:DropDownList ID="drpManager" runat="server"  Visible="false" SkinID="DropDownSkin" OnSelectedIndexChanged="drpManager_SelectedIndexChanged" AutoPostBack="true">
        </asp:DropDownList>
                                    <asp:Label ID="UI_ManagerNameLabel" runat="server" Font-Italic="true" ForeColor="red" Font-Bold="true" ></asp:Label>&nbsp;
                                   
                                </td>
                     <td id="Td2" align="left" runat="server" style="height: 28px; width:200px; text-align: center;" >
                                     <asp:RadioButton ID="USDRadioButton" runat="server" SkinID="RadioButtonSkin" GroupName="CurrencyGroup" AutoPostBack="true" Checked="True" Text="USD" OnCheckedChanged="USDRadioButton_CheckedChanged"  />
                                    <asp:RadioButton ID="LocalRadioButton" runat="server" Text="Local" SkinID="RadioButtonSkin" GroupName="CurrencyGroup" AutoPostBack="true" OnCheckedChanged="LocalRadioButton_CheckedChanged"  />
                                </td>
                                <td style="height: 28px">
                                 <img src="../../App_Images/images/alert.gif" originalAttribute="src" originalPath="../../App_Images/images/alert.gif" runat="server" alt="Alerts" id="Budget_AlertsImgButton" style="border-width:0px;" visible="false" />
                                </td>
                    <td align="right" style="height: 28px; text-align: right;" >
         <asp:Button ID="btnSaveManager"  runat="server" Text="Save & Update Budget"  OnClick="btnSaveManager_Click" />
                      
                                         <%-- <asp:Button ID="H" runat="server" Text="Compute Budget" ValidationGroup="Sp_Mgr_Amt_Save" TabIndex="4" />
                                <a href="javascript:fBudgetApprovals_Open()">
                              
                             
                                </a>--%>
                        <asp:Button ID="btnExport" originalAttribute="href" originalPath="javascript:fBudgetApprovals_Open()">
                              
                             
                                </a>--%>
                        <asp:Button ID="btnExport" runat="server" Text="Export to Excel"  OnClick="Button1_Click" />
                        &nbsp;
                    </td>
                   
                    </tr>
                </table>
                </td>
                </tr>
    </table>
    <table >
    
    <tr>
    <td>
         <table>
                             <tr>
                                                <td>
                                               
                                                  <radG:RadGrid ID="ManagerRadGrid" runat="server" AllowPaging="true" PageSize="50" GridLines="None" Width="900px" AutoGenerateColumns="False" MasterTableView-EditMode="EditForms"   Skin="WebGrid20" AllowCustomPaging="false" EnableViewState="true" HeaderStyle-Wrap="true" OnNeedDataSource="ManagerRadGrid_NeedDataSource" OnItemDataBound="ManagerRadGrid_ItemDataBound" OnPreRender="ManagerRadGrid_PreRender" OnItemCreated="ManagerRadGrid_ItemCreated" OnUpdateCommand="ManagerRadGrid_UpdateCommand" OnPageIndexChanged="ManagerRadGrid_PageIndexChanged" >
                                <MasterTableView DataSourcePersistenceMode="ViewState" ShowFooter="True"  DataKeyNames="KeyNum" >
                                <Columns>
                                  <radG:GridTemplateColumn HeaderText="xmlnum" Visible="False" UniqueName="TemplateColumn1">
                                                                        <ItemTemplate>
                                                                            <asp:Textbox ID="lblpxmlnum" runat="server" Text='<%# Eval("KeyNum")%>'></asp:Textbox>
                                                                        </ItemTemplate>
                                                                    </radG:GridTemplateColumn>
                                    <radG:GridTemplateColumn  UniqueName="TemplateColumn" ItemStyle-Wrap="true">
                                    <HeaderTemplate>
                                   <table id="Table1"  cellpadding="0" cellspacing="0" >
                                    <tr>
                                    <td align="center">
                                    <asp:Label ID="lblName" runat="server" Text="Name" Width="120px" SkinId="ModelGridHeadLabel" ></asp:Label>
                                    </td>
                                    <td align="center">
                                    <asp:Label ID="lblhiredate" runat="server" Text="Hire Date" Width="50px" SkinId="ModelGridHeadLabel" ></asp:Label>
                                    </td>
                                     <td align="center">
                                    <asp:Label ID="Label2" runat="server" Text="Location" Width="70px" SkinId="ModelGridHeadLabel" ></asp:Label>
                                    </td>
                                    <td align="center">
                                    <asp:Label ID="lbljob" runat="server" Text="Job Title" Width="140px" SkinId="ModelGridHeadLabel" ></asp:Label>
                                    </td>
                                    </tr>
                                    </table>
                                   
                                    </HeaderTemplate>
                                   
                                    <ItemTemplate>
                                  
                                     <table id="Table2" runat="server" cellpadding="0" cellspacing="0" >
                                  
                                    <tr>
                                   
                                    <td align="center" style="border-width:0px;" runat="server" id="ss">
                                    <asp:Label ID="txtname" runat="server" Width="120px" Text='<%# Eval("EmployeeName") %>'  style="text-align:center;"  Visible="true"></asp:Label>
                                    </td>
                                        <td align="center" style="border-width:0px;" runat="server" id="Td1">
                                    <asp:Label ID="txthiredate" runat="server" Width="60px" Text='<%# Eval("HireDate") %>'  style="text-align:center;"  Visible="true"></asp:Label>
                                    </td>
                                     <td align="center" style="border-width:0px;" runat="server" id="Td6">
                                    <asp:Label ID="txtlocation" runat="server" Width="50px" Text='<%# Eval("Location") %>'  style="text-align:center;"  Visible="true"></asp:Label>
                                    </td>
                                    <td align="center" style="border-width:0px;" runat="server" id="Td2">
                                    <asp:Label ID="txtjob" runat="server"  Width="140px" Text='<%# Eval("Position") %>'  style="text-align:center;"  Visible="true"></asp:Label>
                                    </td>    
                                    </tr>
                                    </table>
                                   
                                    </ItemTemplate>
                                    <FooterTemplate>
                                     <table id="Table3" cellpadding="0" cellspacing="0">
                                    <tr>
                                    <td align="left" style="border-width:0px; font-weight:bold;" >Total / Avg</td>
                                    </tr>
                                   
                                           
                                    </table>
                                    </FooterTemplate>
                                     <HeaderStyle  Width="0px" BackColor="#999999" />
                                     <FooterStyle BackColor="#E8E8E8"/>
                                    
                                   
                                    </radG:GridTemplateColumn>
                                    <radG:GridTemplateColumn DataType="System.Decimal"  UniqueName="SP_MostRecentTemplateColumn">
                                   
                                        <HeaderTemplate>
                                        <table  cellpadding="0" cellspacing="0" id="Table4">
                                           
                                             <tr>
                                            
                                             <td align="center" style=" background-color:#92B4E1; color :White; ">
                                             <asp:Label ID="lblperfrating" runat="server"  Text="Perf Rtg" Width="30px" SkinId="ModelGridHeadLabel" ></asp:Label>
                                            
                                             </td>
                                              <td align="Center" style="background-color:#92B4E1; color :White ;">
                                                  <asp:Label ID="lblannualsalary" runat="server" Text="Annual Salary" Width="70px" SkinId="ModelGridHeadLabel"></asp:Label></td>
                                            
                                              <td id="Td3" align="Center" style="background-color:#92B4E1; color :White ;" runat="server" visible="True" >
                                                  <asp:Label ID="lblguideline" runat="server" Text="Salary Guideline" Width="50px" SkinId="ModelGridHeadLabel"></asp:Label></td>
                                            
                                             </tr>
                                             <tr>
                                             <td  align="center" style=" font-family:Arial;color:White; background-color:#92B4E1; width:100%"></td>                                                                                          
                                             <td  align="center" style=" font-family:Arial;color:White; background-color:#92B4E1; width:100%"><asp:Label runat="server" ID="lblUSD" Text="USD"></asp:Label></td>                                                                                          
                                              <td  align="center" style=" font-family:Arial;color:White; background-color:#92B4E1; width:100%">%</td>                                                                                          
                                           
                                             </tr>
                                            </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>                                                                        
                                        <table id="Table5" cellpadding="0" cellspacing="0" >                                                                                                                                                               
                                             <tr>                                            
                                             <td align="center" style="Width:30px;border-width:0px;">
                                            <asp:Textbox ID="txtrating" runat="server"   Width="30px" Text='<%# Eval("PerformanceRating")%>'  Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Visible="True"  Font-Bold="true"  TabIndex="1" style="border-style:groove;"></asp:Textbox>
                                                                    
                                             </td>
                                             <td align="center" style="Width:70px;border-width:0px;">
                                             <asp:Label ID="txtannualsalary" runat="server"  Width="70px" Text='<%# Eval("Current_Annual_Salary_USD")%>'></asp:Label>
                                           
                                              </td>
                                              <td align="center" style="Width:50px;border-width:0px;">
                                              <asp:Label ID="txtguideline" runat="server"   Text='<%# Eval("MeritGuideline") %>' Width="50px"></asp:Label>
                                               
                                             </tr>
                                             </table>                                                                    
                                        </ItemTemplate>                                      
                                      
                                        <FooterTemplate>
                                        <table id="Table6" cellpadding="0" cellspacing="0" >
                                        <tr>
                                        <td align="center" style="Width:30px;border-width:0px;" ></td>
                                         <td align="center" style="Width:60px;border-width:0px;" >
                                            <asp:Label ID="fooannualsalary" runat="server" Text="0" Width="70px" style="text-align:center;"></asp:Label></td>
                                        <td align="center" style="Width:0px;border-width:0px;" >
                                        <asp:Label ID="fooguideline" runat="server" Text="0" Width="50px"></asp:Label></td>
                                       
                                       
                                        </tr>
                                        </table>
                                        </FooterTemplate>
                                                                               
                                        <HeaderStyle BackColor="#92B4E1"  HorizontalAlign ="Center" ForeColor ="White" />
                                        <FooterStyle BackColor="#E8E8E8"/>
                                                                         
                                       
                                        
                                    </radG:GridTemplateColumn>
                                   
                                  
                                     <radG:GridTemplateColumn DataType="System.Decimal"  UniqueName="RecommendationTemplateColumn">
                                        <HeaderTemplate>
                                        <table id="Table7" cellpadding="0" cellspacing="0">
                                            
                                             <tr>
                                             <td colspan="2" align="left" >
                                                  <asp:Label ID="lblpctincrease" runat="server" Text="Manager Discretion"   SkinId="ModelGridHeadLabel"></asp:Label></td>
                                            <%-- <td align="center" style="Width:50px;">
                                                  <asp:Label ID="lblincrease" runat="server" Text="Discretion" Width="50px"  SkinId="ModelGridHeadLabel"></asp:Label></td>
                                              --%> 
                                              
                                               </tr>
                                               <tr>
                                            
                                              <td id="Td7" align="center" style="Width:40px;" runat="server" visible="True"><font color="white"> <b>%</b></font></td>
                                               <td id="Td4" align="center" style="Width:60px;" runat="server" visible="True"><asp:Label runat="server" ID="lblUSD2" Text="$" ForeColor="white"></asp:Label></td>
                                             
                                             </tr>
                                            </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                           <table id="Table8"  cellpadding="0" cellspacing="0">
                                             <tr>
                                           
                                               <td align="center" style="Width:40px;border-width:0px;">
                                               <asp:TextBox AutoPostBack="false"  ID="txtpctincrease" runat="server"  Text='<%# Eval("Incr_PCT") %>' Width="40px" Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Visible="True"  Font-Bold="true"  TabIndex="1" style="border-style:groove;"></asp:TextBox>
                                           
                                                </td>
                                                <td align="center" style="Width:60px;border-width:0px;">
                                                <asp:TextBox AutoPostBack="false" ID="txtincrease" runat="server" Text='<%# Eval("Incr_Amt_USD") %>' Width="60px" Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Visible="True"  Font-Bold="true" TabIndex="2" style="border-style:groove;"></asp:TextBox>
                                               
                                                </td>
                                              
                                              
                                              
                                             </tr>
                                             </table>
                                        </ItemTemplate>
                                       
                                        <FooterTemplate>
                                       <table id="Table9" cellpadding="0" cellspacing="0">
                                        <tr>
                                        <td align="center" style="Width:40px;border-width:0px;"  >
                                        <asp:Label runat="server" ID="foopctincrease"  Text="0"  style="text-align:center;"></asp:Label>
                                        </td>
                                        <td align="center" style="Width:50px;border-width:0px;" >
                                        <asp:Label runat="server" ID="fooincrease"  Text="0" style="text-align:center;" ></asp:Label>
                                        </td>
                                      
                                        </tr>
                                        </table>
                                       
                                        </FooterTemplate>
                                        <HeaderStyle BackColor="#829FC9" />
                                        <FooterStyle BackColor="#E8E8E8"/>
                                    </radG:GridTemplateColumn>
                             
                           <radG:GridTemplateColumn DataType="System.Decimal"  UniqueName="RecommendationTemplateColumn">
                                        <HeaderTemplate>
                                        <table id="Table7" cellpadding="0" cellspacing="0">
                                            
                                             <tr>
                                      <td align="center" style="Width:80px;">
                                      <asp:Label ID="lblnewannual" runat="server" Text="New Annual Salary" Width="80px" SkinId="ModelGridHeadLabel"></asp:Label></td>
                                       <td align="center">
                                      <asp:Label ID="lblheadxchange" runat="server" Text=""  SkinId="ModelGridHeadLabel" Visible="false"></asp:Label></td>
                                       <td align="center">
                                      <asp:Label ID="lblheadcurrencycode" runat="server" Text=""  SkinId="ModelGridHeadLabel" Visible="false"></asp:Label></td>
                                     
                                              </tr>
                                              <tr>
                                             <td id="Td5" align="center" style="Width:80px;" runat="server"  visible="True"><asp:Label runat="server" ID="lblUSD1" Text="USD" ForeColor="white"></asp:Label></td>
                                             
                                              </tr>
                                              </table>
                                              </HeaderTemplate>
                                              <ItemTemplate>
                                              <table id="Table8"  cellpadding="0" cellspacing="0">
                                             <tr>
                                            <td align="center" style="Width:80px;border-width:0px;">
                                            <%--<asp:Label ID="txtnewannual" runat="server" Visible="false"  Text='<%# Eval("New_Annual_Salary_USD") %>' Width="80px" style="text-align:center;"></asp:Label>  --%>
                                             <asp:Textbox ID="txtnewannual" AutoPostBack="false" BorderStyle="none" BackColor="transparent" runat="server" Height="13px" Font-Size="11px" Font-Names="Ariel" Visible="true" Text='<%# Eval("New_Annual_Salary_USD") %>' Font-Bold="true" Width="80px" ForeColor="black" Enabled="true" style="text-align:center;"></asp:Textbox> 
                                           
                                             </td>
                                            
                                             <td align="center">
                                            <asp:Label ID="lblxchange" runat="server" Visible="false"  Text='<%# Eval("averagerate") %>' style="text-align:center;"></asp:Label>
                                             <%--<asp:Label ID="lblxchange" runat="server" Visible="false"  style="text-align:center;"></asp:Label>  --%>
                                          
                                             </td>
                                            
                                             <td align="center">
                                            <asp:Label ID="lblcurrencycode" runat="server" Visible="false"  Text='<%# Eval("PayCurrency") %>' style="text-align:center;"></asp:Label> 
                                           
                                             <asp:Label ID="lblcountry" runat="server" Visible="false"  Text='<%# Eval("Location") %>' style="text-align:center;"></asp:Label> 
                                      
                                             </td>
                                            
                                              <td align="center">
                                            <asp:Label ID="lblemployeeid" runat="server" Visible="false"  Text='<%# Eval("EmployeeID") %>' style="text-align:center;"></asp:Label> 
                                            </td>
                                             </tr>
                                             </table>
                                                                                          
                                              </ItemTemplate>
                                              <FooterTemplate>
                                              <table id="Table10" >
                                              <tr>
                                               <td align="right" style="Width:80px;border-width:0px;" >
                                        <asp:Label ID="foonewannual" runat="server"  Text="" style="text-align:left;"></asp:Label>
                                        </td>
                                              </tr>
                                              </table>
                                              </FooterTemplate>
                                        <HeaderStyle BackColor="#829FC9" />
                                        <FooterStyle BackColor="#E8E8E8"/>
                                    </radG:GridTemplateColumn>
                                <radG:GridTemplateColumn  UniqueName="MemoTemplateColumn" Groupable="False">
                       <HeaderTemplate>
                         <asp:Label ID="lblcomment" Text="Comments" runat="server"></asp:Label>
                         </HeaderTemplate>
                                  <ItemTemplate>
                                   <asp:Label ID="NoteLabel" Visible="false" runat="server" Text='<%# Eval("comment") %>' style="border-width:0px; border:0px;"></asp:Label>                                  
                                 
                                   <img id="NoteImage" width="25" height="25"  runat="server" src="../../App_Images/images/Readme.gif" originalAttribute="src" originalPath="../../App_Images/images/Readme.gif" alt="Note" style="border-width:0px; border:0px;" />                                                                       
                                   <asp:Label ID="label1" runat="server" Text="" Visible="true" style="border:0px;"></asp:Label>
                                <asp:HyperLink ID="NoteLink" Height="22"  runat="server" Text="Note"></asp:HyperLink>
                                     </ItemTemplate>
                                       <EditItemTemplate>
                                  <%--<asp:Label ID="SP_Notes_Emp_numLabel" runat="server" Text='<%# Eval("Emp_num") %>' Visible="false"></asp:Label>--%>
                                 <%--  <asp:Label ID="SP_Notes_CompNumLabel" Visible="false" runat="server" Text='<%# Eval("Keynum") %>' style="border-width:0px; border:0px;"></asp:Label>
                                  <asp:Label ID="Falselabel" runat="server" Text="23" Visible="true" style="border:0px; color:Background;" ></asp:Label>
                                 --%>
                                 <radE:RadEditor ID="REditornotes" toolsfile="~/RadControls/Editor/AjaxSpell.xml" ShowSubmitCancelButtons="False" runat="server" Height="100px"  Html='<%# Eval("locationcode") %>' TabIndex="0"  >
                                   </radE:RadEditor>
                           </EditItemTemplate>   
                                      <HeaderStyle BackColor="#829FC9" />
                                     
                                        <FooterStyle BackColor="#E8E8E8"/>
                                        <ItemStyle  BorderWidth="0px"/>
                      
                          </radG:GridTemplateColumn>
                         
                                          
                                   
                                   
                                </Columns>
                                <ExpandCollapseColumn Visible="False">
                                    <HeaderStyle Width="19px" />
                                </ExpandCollapseColumn>
                                <RowIndicatorColumn Visible="False">
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                                <PagerStyle Mode="NextPrev" />
                                <EditFormSettings>
                                    <EditColumn UniqueName="EditCommandColumn1">
                                    </EditColumn>
                                </EditFormSettings>
                                                              
                              
                            </MasterTableView>
                            <PagerStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign ="Left" Wrap="True" AlwaysVisible="true"   />
                                    <ClientSettings>
                                     <Scrolling AllowScroll="true" ScrollHeight="300px" UseStaticHeaders="true" />
                                   
                                    </ClientSettings>
                                    
                             </radG:RadGrid>
                                                </td>
                                                </tr>
                                            </table>
        <asp:HiddenField ID="HFChangePage" runat="server" />
        <asp:HiddenField ID="sFooPctIncreaseClientID" runat="server" />
        <asp:HiddenField ID="sFooIncreaseClientID" runat="server" />
        <asp:HiddenField ID="slblmgrbalanceClientID" runat="server" />
        <asp:HiddenField ID="sFooNewAnnualClientID" runat="server" />
        <asp:HiddenField ID="sFooGuideLineClientID" runat="server" />
        <asp:HiddenField ID="sFooAnnualSalaryClientID" runat="server" />
        <asp:HiddenField ID="slblmgrbudgetClientID" runat="server" />
        <asp:HiddenField ID="slblmgrspentClientID" runat="server" />
        <asp:HiddenField ID="CurrencyCodeHiddenField" runat="server" />
        <asp:HiddenField ID="countryclientID" runat="server" />
        <asp:HiddenField ID="txtnewannualClientID" runat="server" />
       
                                              
    </td>
      
    </tr>
   
    </table>
   

                                       
                         
    </div>
    </radspl:RadPane>
    </radspl:RadSplitter>
   
                 </asp:Panel>
</asp:Content>

 

Devi
Top achievements
Rank 1
 asked on 06 Oct 2008
3 answers
81 views
I have a rotator I wish to use in ButtonsOver mode, but this mode seems to set a border around the control. Is there a way to set this border to none? I've tried setting the control border to none, but the border created in ButtonsOver seems to be coming from another part of the control, its dimensions are different than the rotator borders.
Georgi Tunev
Telerik team
 answered on 06 Oct 2008
2 answers
176 views
 Export radgrid to excel sheet i used coding like this but data is not exporting properly in excel sheet ,  

 ManagerRadGrid.ExportSettings.ExportOnlyData = true;
 ManagerRadGrid.ExportSettings.IgnorePaging = true;
 ManagerRadGrid.ExportSettings.OpenInNewWindow = true;
 ManagerRadGrid.MasterTableView.ExportToExcel();
Devi
Top achievements
Rank 1
 answered on 06 Oct 2008
3 answers
165 views
hi
i am having some problem in showing radwindow. i am using VS 2008 asp.net 2.0 radcontrols Prometheus 2008 q2 clr2.0.

 i hav linkbutton i want to show radwindow on linkbutton click. but when i am clicking on linkbutton nothing happens i hav set OpenerElementID of radwindow to link button id but nothing happen.but if i choose VisibleOnPageLoad="true" then radwindow is displayed on page load but not on linkbutton click.

i am giving my code for review plz help.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ViewCatagory.ascx.cs"

Inherits="Admin_Controls_View_Catagory" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register Src="ViewNews.ascx" originalAttribute="Src" originalPath="ViewNews.ascx" originalAttribute="Src" originalPath="ViewNews.ascx" TagName="ViewNews" TagPrefix="uc1" %>

<%@ Register Src="AddCatagories.ascx" originalAttribute="Src" originalPath="AddCatagories.ascx" originalAttribute="Src" originalPath="AddCatagories.ascx" TagName="AddCatagories" TagPrefix="uc2" %>

 

 

<table style="width: 1052px">

<tr>

<td style="width: 240px">

<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ASPNETDBConnectionString1 %>"

SelectCommand="SELECT [Id], [ParentId], [Name], [ItemCount] FROM [Catagory]">

</asp:SqlDataSource>

<telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="Id" DataFieldParentID="ParentId"

DataSourceID="SqlDataSource3" DataTextField="Name" DataValueField="Id" Skin="Vista"

BorderStyle="None" Style="margin-right: 0px; margin-top: 0px;

" Width="204px" OnNodeClick="RadTreeView1_NodeClick"

AllowNodeEditing="True">

<CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>

<ExpandAnimation Duration="100"></ExpandAnimation>

</telerik:RadTreeView>

</td>

<td>

<uc1:ViewNews ID="ViewNews1" runat="server" />

</td>

</tr>

</table>

<br />

 

 

 

<asp:LinkButton ID="LinkButtonAddCatagory" runat="server">Add Catagory</asp:LinkButton>

 

<telerik:RadWindow ID="RadWindow1" runat="server" OpenerElementID="LinkButtonAddCatagory" VisibleOnPageLoad="false">

</telerik:RadWindow>

 

 

 

<script type ="text/javascript">

function UpdateTreeView() {

var objAjaxManager = $find("ctl00_ContentPlaceHolder1_ViewCatagory1_RadAjaxManager1");

objAjaxManager.ajaxRequest();

alert("x");

}

</script>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"

DefaultLoadingPanelID="RadAjaxLoadingPanel1">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>



plz help as i am cracking my head with a hammer

Georgi Tunev
Telerik team
 answered on 06 Oct 2008
5 answers
477 views
I've been trying to add a custom validation control to a GridBoundColumn following the directions on page 439 Section 20.14.1 of the documentation.

It works fine for required validation controls, and for regularexpression controls, but I have not succeeded in getting it to work for custom validation controls.

What is the correct event handling wire up that should be used? In other words, what is the programmatic equivalent of the declarative "OnServerValidate"?

I also tried to add a custom validation control in the declarative markup on the aspx page but I couldn't get that to work either.

Is the only way to do it declaratively with a TemplateColumn instead of a GridBoundColumn? Or if it can be done programmatically in the codebehind file, then what is the correct way to add the server validate event handler?

Thanks much for your help.
Sebastian
Telerik team
 answered on 06 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?