Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
372 views

Hi,

 

I am using RadScheduler in my website to display user events. When user opens the date picker using down arrow on Scheduler header and clicks on double arrow on date picker, he navigates to 3 months behind or ahead. When user navigates using the arrows in the calendar popup and close it then reopen, it is still on the month user ended.

As per my requirement, unless user selects any date, the date picker date should always be defaulted to todays date.

How can I do this in scheduler? Please help me..

Thanking you..

Peter
Telerik team
 answered on 19 Feb 2010
2 answers
228 views
hello all i am stuck in this issue....
1-i have a radgrid..once a row is clicked..2 other invisible grids are supposed to show up contianing the details not shown on the first and it was working just fine.
2-in this radgrid i have a column with a button comand once clicked a rad window should apear and it was working just fine


cases one and two were working just fine untill i used the radgrid grows with the rad splitter you have on youre website...thin when
i click a row..the server side event handler will be fired..the commands will be executed but the result will not be shown..i had this issue before since i had the radgrid in ajax's update panel but one i removed the updatepanel probel 1 and 2 were solved,,,suddenly when i added the locking the radgrid with the spliter it apeared again..i dont know what the issue is ..i tried adding radajax panels but it is not wokring here is my page code please please please help me ASAP


<%@ Page Language="vb"  AutoEventWireup="false" MasterPageFile="~/Master_Page.Master" CodeBehind="View(GM)-mod.aspx.vb" Inherits="project_xy.View_GM__mod" 
    title="Untitled Page" ValidateRequest="false" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css"> 
    .MasterTable_Default2006 td 
    { 
      overflow: hidden; 
    } 
    .GridHeader_Default2006 
    { 
      overflow: hidden; 
    } 
        .style4
        {
            width: 123px;
            height: 35px;
        }
        .style5
        {
            width: 12%;
            height: 35px;
        }
        .style7
        {
            width: 152px;
            height: 35px;
        }
        .style9
        {
            width: 180px;
            height: 35px;
        }
        .style10
        {
            width: 159px;
            height: 35px;
        }
    </style>
   <script type="text/javascript">
 function ClientResized(sender, eventArgs)
 {
    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest('ChangePageSize');
 }
</script>
    
    </asp:Content>


<asp:Content ID="Content4" ContentPlaceHolderID="main1" runat="server">


 
    
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    
    </telerik:RadScriptManager>
    <script type="text/javascript"> 
                function ClientResized(sender, eventArgs)
                { 
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest('ChangePageSize'); 
                }
        </script>
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><Triggers><asp:PostBackTrigger ControlID="Node_submit" /><asp:PostBackTrigger ControlID="zone_combo" /><asp:PostBackTrigger ControlID="Supoort_combo" /><asp:PostBackTrigger ControlID="district_combo" /><asp:PostBackTrigger ControlID="Tech_combo" /><asp:PostBackTrigger ControlID="status_combo" /></Triggers><ContentTemplate>
    
    <table style="width:716px;">
    <tr style="width:90px;"><td class="style7"><asp:RadioButton ID="Region" runat="server" Text="Region Filter" 
                    AutoPostBack="True" /></td><td class="style4"><asp:RadioButton ID="Node" runat="server" Text="Node filter" 
                    AutoPostBack="True" /></td><td class="style7"><asp:RadioButton ID="Status" runat="server" Text="Status Filter" 
                    AutoPostBack="True" /></td>
        <td class="style9">
            <asp:RadioButton ID="Tech" runat="server" Text="Technology Filter" 
                    AutoPostBack="True" /></td>
        <td class="style10">
            <asp:Label ID="district_label" runat="server" ForeColor="#FF7900" 
                Text="District:" Visible="false"></asp:Label>
            <asp:Label ID="tech_label" runat="server" ForeColor="#FF7900" 
                Text="Technology:" Visible="false"></asp:Label>
            <asp:Label ID="Status_label" runat="server" ForeColor="#FF7900" Text="Status:" 
                Visible="false"></asp:Label>
            <asp:Label ID="Node_label" runat="server" ForeColor="#FF7900" Text="Node:" 
                Visible="false"></asp:Label>
            &nbsp;&nbsp;<br />
            <telerik:RadComboBox ID="District_combo" Runat="server" AutoPostBack="True" 
                DataSourceID="district_source" DataTextField="region" DataValueField="region" 
                EnableViewState="true" Height="18px" Visible="False" Width="80px">
                <CollapseAnimation Duration="200" Type="OutQuint" />
                <ExpandAnimation Type="InElastic" />
            </telerik:RadComboBox>
            <telerik:RadComboBox ID="Status_combo" Runat="server" AutoPostBack="True" 
                DataSourceID="status_source" DataTextField="status" DataValueField="status" 
                Height="18px" Visible="False" Width="80px">
                <CollapseAnimation Duration="200" Type="OutQuint" />
                <ExpandAnimation Type="InElastic" />
            </telerik:RadComboBox>
            <telerik:RadComboBox ID="Tech_combo" Runat="server" AutoPostBack="True" 
                DataSourceID="teck_filter" DataTextField="teck_Name" DataValueField="teck_Name" 
                Height="15px" Visible="False" Width="80px">
                <CollapseAnimation Duration="200" Type="OutQuint" />
                <ExpandAnimation Type="InElastic" />
            </telerik:RadComboBox>
            <asp:TextBox ID="node_text" runat="server" Height="18px" Visible="false" 
                Width="80px"></asp:TextBox>
        </td>
        <td class="style5">
            <asp:Label ID="Support_label" runat="server" ForeColor="#FF7900" 
                Text="Support zone:" Visible="false"></asp:Label><br />
            <asp:Button ID="Node_submit" runat="server" Height="20px" Text="Find Node" 
                Visible="false" Width="80px" />
            <telerik:RadComboBox ID="Supoort_combo" Runat="server" AutoPostBack="True" 
                DataSourceID="support_source" DataTextField="support_zone" 
                DataValueField="support_zone" Height="22px" Visible="False" Width="90px">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </telerik:RadComboBox>
        </td>
        <td class="style5">
            <asp:Label ID="zone_label" runat="server" ForeColor="#FF7900" Text="Zone:" 
                Visible="false"></asp:Label>
            <telerik:RadComboBox ID="zone_combo" Runat="server" AutoPostBack="True" 
                DataSourceID="zone_source" DataTextField="Zone" DataValueField="Zone" 
                Height="23px" Visible="False" Width="80px">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </telerik:RadComboBox>
        </td>
        </tr></table>
        </ContentTemplate>
        </asp:UpdatePanel>
    
    <telerik:RadAjaxManager ID="RadAjaxManager1"  runat="server"   OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    <AjaxSettings><telerik:AjaxSetting><UpdatedControls><telerik:AjaxUpdatedControl ControlID="radgrid2" LoadingPanelID="loadingpanel3" /></UpdatedControls></telerik:AjaxSetting></AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadSplitter  ID="RadSplitter1" runat="server" Width="1000" 
        Orientation="Horizontal" Font-Size="8" Height="400" style="margin-top: 0px">
        
    <telerik:RadPane ID="gridpane" Runat="server" Height="310" Scrolling="None" OnClientResized="ClientResized" BackColor="Gray">
    
        
        
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%">
        
        
    <telerik:RadGrid Height="100%" ItemStyle-BorderColor="gray" 
            ItemStyle-BorderStyle="notset" ClientSettings-Resizing-EnableRealTimeResize="false"   
            EditItemStyle-BackColor="white" ItemStyle-VerticalAlign="Top" 
            ActiveItemStyle-BorderStyle="notset" ActiveItemStyle-BorderColor="gray" BorderStyle="NotSet" BorderWidth="1px"  
            ClientSettings-AllowDragToGroup="true"   OnGroupsChanging="RadGrid2_GroupsChanging"
                 EnableLinqExpressions="False" 
            CellPadding="0" HeaderStyle-Width="20px" HeaderStyle-BorderStyle="NotSet" HeaderStyle-BorderWidth="1px" HeaderStyle-Height="30px"   
            ID="RadGrid2" ActiveItemStyle-Height="10px" 
            ActiveItemStyle-VerticalAlign="Top" runat="server" ItemStyle-Wrap="false"   
            Width="103%" HeaderStyle-Font-Size="Smaller" 
              AllowAutomaticUpdates="True"    
        AllowPaging="True" AllowSorting="True" GridLines="None"   Font-Size="Smaller" DataSourceID="SqlDataSource2"    
            EnableAJAXLoadingTemplate="true" LoadingTemplateTransparency="25"
        style="margin-left: 0px; margin-top: 0px;" ShowGroupPanel="True" 
            Skin="Default2006" ><ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  VerticalAlign="Top" Width="80" Height="10"  /><HeaderStyle 
            Height="10px" VerticalAlign="Top" Width="20px" BorderColor="Gray" BorderStyle="NotSet" BorderWidth="1px" /><headercontextmenu BorderStyle="NotSet" BorderWidth="1px" 
            height="10px" width="100%"><collapseanimation duration="200" 
            type="OutQuint" /></headercontextmenu><mastertableview BorderStyle="NotSet" borderwidth="1px" BorderColor="gray" 
            autogeneratecolumns="false" cellpadding="0" cellspacing="0" 
            datakeynames="node_code1" datasourceid="SqlDataSource2" editmode="InPlace" 
            rowindicatorcolumn-headerstyle-height="10px" 
            rowindicatorcolumn-itemstyle-height="10px" 
            rowindicatorcolumn-itemstyle-width="80px"><norecordstemplate><asp:Label 
            ID="Label2" runat="server" Font-Size="Small" Text="No Items Were Found!!!"></asp:Label></norecordstemplate><rowindicatorcolumn><HeaderStyle 
            Height="10px" Width="100px" /><ItemStyle  BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Wrap="false" Height="10px" VerticalAlign="Top" 
            Width="10px" /></rowindicatorcolumn><Columns><telerik:GridEditCommandColumn 
                HeaderStyle-Height="10px" HeaderStyle-Width="82px"><HeaderStyle BorderStyle="NotSet" BorderWidth="1px" 
                Height="10px" Width="82px" /><ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Width="82px" Height="10px" VerticalAlign="Top" 
                Wrap="false" /></telerik:GridEditCommandColumn><telerik:GridButtonColumn 
                ButtonType="ImageButton" CommandName="assign" ImageUrl="preview.gif" 
                Text="Assign team members" UniqueName="Assign"> <HeaderStyle BorderStyle="NotSet" BorderWidth="1px" Width="82px" /><ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Height="10px" Wrap="false" 
                VerticalAlign="Top" /></telerik:GridButtonColumn><telerik:GridTemplateColumn 
                 DataField="Client_Name" HeaderText="Client_Name"  SortExpression="Client_Name" 
                UniqueName="Client_Name"><HeaderStyle BorderStyle="NotSet" BorderWidth="1px" Height="10px" Width="82px" /><EditItemTemplate><asp:Label 
                    ID="Client_NameLabel" runat="server" Text='<%# Eval("Client_Name","<nobr>{0}</nobr>") %>' ></asp:Label>
            </EditItemTemplate>
            <HeaderStyle BorderStyle="NotSet" BorderWidth="1px" Height="10px" Width="82px" Wrap="false" />
            <ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Height="10px" VerticalAlign="Top" Wrap="false"/>
            <ItemTemplate>
                
                <asp:Label ID="Client_NameLabel" runat="server"  
                    Text='<%# Eval("Client_Name","<nobr>{0}</nobr>") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle BorderStyle="NotSet" BorderWidth="1px" Height="10px" Width="82px" />
            </telerik:GridTemplateColumn><telerik:GridTemplateColumn DataField="Node_Code1" 
                GroupByExpression="Node_Code1" HeaderText="Node_Code" 
                SortExpression="Node_Code1" UniqueName="Node_Code1"><HeaderStyle BorderStyle="NotSet" BorderWidth="1px" 
                Height="10px" Width="82px" /><EditItemTemplate><asp:Label ID="Node_CodeLabel" 
                    runat="server" Text='<%# Eval("Node_Code1", "<nobr>{0}</nobr>") %>'></asp:Label>
            </EditItemTemplate>
            <ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Height="10px" Width="82px" Wrap="false" VerticalAlign="Top" />
            <ItemTemplate>
                <asp:Label ID="Node_CodeLabel" runat="server" Text='<%# Eval("Node_Code1","<nobr>{0}</nobr>") %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn><telerik:GridTemplateColumn DataField="Zone" 
                HeaderText="Zone" SortExpression="Zone" UniqueName="Zone"><HeaderStyle BorderStyle="NotSet" BorderWidth="1px" 
                Height="10px" Width="82px" /><EditItemTemplate><asp:Label ID="ZoneLabel" 
                    runat="server" Text='<%# Eval("Zone","<nobr>{0}</nobr>") %>'></asp:Label>
            </EditItemTemplate>
            <ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Height="10px" VerticalAlign="Top" />
            <ItemTemplate>
                <asp:Label ID="ZoneLabel" runat="server" Text='<%# Eval("Zone","<nobr>{0}</nobr>") %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn><telerik:GridTemplateColumn 
                DataField="Contact_Person" HeaderText="Contact Person" 
                SortExpression="Contact_Person" UniqueName="Contact_Person"><HeaderStyle BorderStyle="NotSet" BorderWidth="1px" 
                Height="10px" Width="82px" /><EditItemTemplate><asp:Label 
                    ID="Contact_PersonLabel" runat="server" Text='<%# Eval("Contact_Person","<nobr>{0}</nobr>") %>'></asp:Label>
            </EditItemTemplate>
            <ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Height="10px" VerticalAlign="Top" Wrap="false" Width="82px" />
            <ItemTemplate>
                <asp:Label ID="Contact_PersonLabel" runat="server" 
                    Text='<%# Eval("Contact_Person","<nobr>{0}</nobr>") %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn><telerik:GridTemplateColumn 
                DataField="Contact_Number" HeaderText="Contact Number" 
                SortExpression="Contact_Number" UniqueName="Contact_Number"><HeaderStyle BorderStyle="NotSet" BorderWidth="1px" 
                Height="10px" Width="82px" /><EditItemTemplate><asp:Label 
                    ID="Contact_NumberLabel" runat="server" Text='<%# Eval("Contact_Number","<nobr>{0}</nobr>") %>'></asp:Label>
            </EditItemTemplate>
            <ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Height="10px" VerticalAlign="Top" />
            <ItemTemplate>
                <asp:Label ID="Contact_NumberLabel" runat="server" 
                    Text='<%# Eval("Contact_Number","<nobr>{0}</nobr>") %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn><telerik:GridTemplateColumn 
                DataField="Original Status" HeaderText="Original Status" 
                SortExpression="Original Status" UniqueName="Original Status"><HeaderStyle BorderStyle="NotSet" BorderWidth="1px" 
                Height="10px" Width="82px" /><EditItemTemplate><asp:Label 
                    ID="Original_statusLabel1" runat="server" Text='<%# Eval("Original Status","<nobr>{0}</nobr>") %>'></asp:Label>
            </EditItemTemplate>
            <ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Height="10px" VerticalAlign="Top" />
            <ItemTemplate>
                <asp:Label ID="Original_statusLabel1" runat="server" 
                    Text='<%# Eval("Original Status","<nobr>{0}</nobr>") %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn><telerik:GridTemplateColumn 
                DataField="updated_status" HeaderText="updated_status" 
                SortExpression="updated_status" UniqueName="updated_status"><HeaderStyle BorderStyle="NotSet" BorderWidth="1px" 
                Height="10px" Width="82px" /><EditItemTemplate><telerik:RadComboBox 
                    ID="RadComboBox1" Runat="server" DataSourceID="SqlDataSource6" 
                    DataTextField="Status_name" DataValueField="Status_name" 
                    SelectedValue='<%# Bind("[updated_status]") %>' Width="101px"><collapseanimation 
                    duration="200" type="OutQuint" /></telerik:RadComboBox>
            </EditItemTemplate>
            <ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Height="10px" VerticalAlign="Top" />
            <ItemTemplate>
                <asp:Label ID="Updated_statusLabel1" runat="server" 
                    Text='<%# Eval("updated_status","<nobr>{0}</nobr>") %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn><telerik:GridTemplateColumn 
                DataField="Required_Date" DataType="System.DateTime" HeaderText="Required Date" 
                SortExpression="Required_Date" UniqueName="Required_Date"><ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  
                 Height="10px" VerticalAlign="Top" Width="82px" Wrap="false" /><HeaderStyle BorderStyle="NotSet" BorderWidth="1px" 
                Height="10px" Width="82px" /><ItemTemplate><asp:Label ID="RequireddateLabel1" 
                    runat="server" Text='<%# Eval("Required_Date", "{0:yyyy-mm-dd}") %>'></asp:Label>
            </ItemTemplate>
            <EditItemTemplate>
                <asp:Label ID="RequireddateLabel12" runat="server" 
                    Text='<%# Eval("Required_Date" , "{0:yyyy-mm-dd}") %>'></asp:Label>
            </EditItemTemplate>
            </telerik:GridTemplateColumn><telerik:GridTemplateColumn DataField="notes" 
                HeaderText="notes" SortExpression="notes" UniqueName="notes"><ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  
                Height="10px" VerticalAlign="Top" /><HeaderStyle Height="10px" BorderStyle="NotSet" BorderWidth="1px" 
                Width="82px" /><ItemTemplate><asp:Label ID="notesLabel1" runat="server" 
                    Text='<%# Eval("notes","<nobr>{0}</nobr>") %>'></asp:Label>
            </ItemTemplate>
            <EditItemTemplate>
                <asp:TextBox ID="notesTextBox" runat="server" Text='<%# Bind("notes") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemStyle BorderStyle="NotSet" borderwidth="1px" BorderColor="gray"  Height="10px" VerticalAlign="Top" />
            <HeaderStyle Height="10px" Width="82px" BorderStyle="NotSet" BorderWidth="1px" />
            <ItemTemplate>
                <asp:Label ID="notesLabel" runat="server" Text='<%# Eval("notes","<nobr>{0}</nobr>") %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
        <editformsettings>
        <editcolumn uniquename="EditCommandColumn1">
        <HeaderStyle Height="10px" Width="30px" BorderStyle="NotSet" BorderWidth="1px" />
        </editcolumn>
        </editformsettings>
        <groupheaderitemstyle height="10"  />
        <HeaderStyle BorderStyle="NotSet" BorderWidth="1px" Font-Size="X-Small" ForeColor="black" Height="10px" Width="20px" />
        </mastertableview>
        <FooterStyle VerticalAlign="Top" Wrap="false" Width="98%" />
        <HeaderStyle Width="100px" />
        <groupingsettings casesensitive="False" />
        <clientsettings allowdragtogroup="True" enablepostbackonrowclick="true">
        <resizing allowcolumnresize="true" enablerealtimeresize="true" 
            resizegridoncolumnresize="false" />
        <selecting allowrowselect="True" />
        <scrolling allowscroll="true" frozencolumnscount="2" savescrollposition="true" 
            usestaticheaders="True" />
        </clientsettings>
        <filtermenu>
        <collapseanimation duration="200" type="OutQuint" />
        </filtermenu>
        <EditItemStyle BackColor="White" />
        <ActiveItemStyle Height="15px" /></telerik:RadGrid></telerik:RadAjaxPanel>
     
     </telerik:RadPane>
        <telerik:RadSplitBar ID="RadSplitBar1"  EnableResize="true" runat="server" CollapseMode="Backward" />
    <telerik:RadPane  ID="details_pane" Scrolling="Both" runat="server">
    <table style="width: 416px"><tr><td></td><td ><asp:SqlDataSource 
                ID="status_source" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
                            
            
                SelectCommand="select distinct status from openquery(ERP2,'EXEC SKYBAND.dbo._SKB_Sites_LstVw')"></asp:SqlDataSource><asp:SqlDataSource 
                ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
        
        
            
            
                
            
            SelectCommand="SELECT f1.[Client Name] AS Client_Name, updates_table.[Node Code] AS Node_Code1, Zone,f1.Support_Zone,District, f1.[Technology], f1.[Contact Person] AS Contact_Person, f1.[Contact Number] AS Contact_Number, f1.[Status] AS [Original Status], updates_table.status as [updated_status], f1.[Required Date] as Required_Date,updates_table.notes  from dbo.remote_list_view() f1 join updates_table on f1.[node code]=updates_table.[node code]  collate SQL_Latin1_General_CP1256_CI_AS order by f1.GLAllocationID DESC" 
            
            
            
                UpdateCommand="update updates_table set updates_table.Status=@updated_status ,updates_table=@Notes  where updates_table.[Node Code]=@Node_Code1"><UpdateParameters><asp:Parameter Name="@Notes" Type="String" /><asp:Parameter 
                        Name="@Node_Code1" Type="String" /></UpdateParameters></asp:SqlDataSource><asp:SqlDataSource 
                ID="SqlDataSource3" runat="server" 
        ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
        
        
            
            
            
                
                
            SelectCommand="SELECT top 1 f1.[node code] , f1.[Sales Order #] AS sales_order,f1. [Client Code] AS Client_Code, f1.[Site Code] AS Site_Code, f1.[Address],f1.[site name] as site_name,f1.technology as technology,f1.city as city,f1.address as adress, f1.[Postal Code] AS Postal_Code,f1.district as district,f1.[support_zone] as [support_zone], f1.[Order Date] AS Order_Date,f1. [Required Date] AS Required_Date,f1. [InstallationDate], f1.[Suffix], f1.[CommDate], f1.[Dismantling Date] AS Dismantling_Date, f1.[IC], f1.[Prefix],f1.[Site Type] AS Site_Type,f1.[Deactivation Request Date] AS Deactivation_Request_Date, f1.[Activation Request Date] AS Activation_Request_Date, f1.[Dismantling Request Date] AS Dismantling_Request_Date, f1.[Relocation Node] AS Relocation_Node from dbo.remote_list_view() f1 join updates_table on f1.[node code]=updates_table.[node code]  collate SQL_Latin1_General_CP1256_CI_AS"></asp:SqlDataSource></td><td><asp:SqlDataSource ID="zone_source" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
                   SelectCommand="SELECT [Zone] FROM [Support_Zone_Zone]"></asp:SqlDataSource><asp:SqlDataSource ID="support_source" runat="server" 
                ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
                SelectCommand="select distinct support_zone from Support_zone_zone"></asp:SqlDataSource><asp:SqlDataSource ID="teck_filter" runat="server" 
                ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
                SelectCommand="SELECT [teck_Name] FROM [teck]"></asp:SqlDataSource></td><td><asp:SqlDataSource 
                    ID="teck_source" runat="server" 
                ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
                SelectCommand="SELECT [teck_Name] FROM [teck]"></asp:SqlDataSource><asp:SqlDataSource 
                    ID="district_source" runat="server" 
                ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
                SelectCommand="select distinct region from support_zone_zone"></asp:SqlDataSource><asp:SqlDataSource 
                    ID="SqlDataSource6" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
                    SelectCommand="SELECT * FROM [Status_names]"></asp:SqlDataSource></td></tr></table>
        <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" Height="200px" Width="300px">
        
                    <telerik:RadGrid 
            ID="RadGrid3" Font-Size="7px" runat="server" DataSourceID="SqlDataSource3" 
            GridLines="None" Skin="Default2006"><HeaderContextMenu><CollapseAnimation Duration="200" Type="OutQuint" /></HeaderContextMenu><MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource3"><RowIndicatorColumn Resizable="true"><HeaderStyle Width="20px" Height="20px" /></RowIndicatorColumn><ExpandCollapseColumn><HeaderStyle Width="20px" Height="10px" Font-Size="Small" /></ExpandCollapseColumn>
            
            <Columns>
                <telerik:GridBoundColumn DataField="node code" HeaderText="node code" 
                    SortExpression="node code" UniqueName="node code">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="sales_order" HeaderText="sales_order" 
                    SortExpression="sales_order" UniqueName="sales_order">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Client_Code" HeaderText="Client_Code" 
                    SortExpression="Client_Code" UniqueName="Client_Code">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Site_Code" HeaderText="Site_Code" 
                    SortExpression="Site_Code" UniqueName="Site_Code">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Address" HeaderText="Address" 
                    SortExpression="Address" UniqueName="Address">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="site_name" HeaderText="site_name" 
                    SortExpression="site_name" UniqueName="site_name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="technology" HeaderText="technology" 
                    SortExpression="technology" UniqueName="technology">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="city" HeaderText="city" 
                    SortExpression="city" UniqueName="city">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="adress" HeaderText="adress" 
                    SortExpression="adress" UniqueName="adress">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Postal_Code" HeaderText="Postal_Code" 
                    SortExpression="Postal_Code" UniqueName="Postal_Code">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="district" HeaderText="district" 
                    SortExpression="district" UniqueName="district">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="support_zone" HeaderText="support_zone" 
                    SortExpression="support_zone" UniqueName="support_zone">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Order_Date" DataType="System.DateTime" 
                    HeaderText="Order_Date" SortExpression="Order_Date" UniqueName="Order_Date">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Required_Date" DataType="System.DateTime" 
                    HeaderText="Required_Date" SortExpression="Required_Date" 
                    UniqueName="Required_Date">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="InstallationDate" 
                    DataType="System.DateTime" HeaderText="InstallationDate" 
                    SortExpression="InstallationDate" UniqueName="InstallationDate">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Suffix" DataType="System.Int32" 
                    HeaderText="Suffix" SortExpression="Suffix" UniqueName="Suffix">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CommDate" DataType="System.DateTime" 
                    HeaderText="CommDate" SortExpression="CommDate" UniqueName="CommDate">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Dismantling_Date" 
                    DataType="System.DateTime" HeaderText="Dismantling_Date" 
                    SortExpression="Dismantling_Date" UniqueName="Dismantling_Date">
                </telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn DataField="IC" DataType="System.Boolean" 
                    HeaderText="IC" SortExpression="IC" UniqueName="IC">
                </telerik:GridCheckBoxColumn>
                <telerik:GridBoundColumn DataField="Prefix" HeaderText="Prefix" 
                    SortExpression="Prefix" UniqueName="Prefix">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Site_Type" HeaderText="Site_Type" 
                    SortExpression="Site_Type" UniqueName="Site_Type">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Deactivation_Request_Date" 
                    DataType="System.DateTime" HeaderText="Deactivation_Request_Date" 
                    SortExpression="Deactivation_Request_Date" 
                    UniqueName="Deactivation_Request_Date">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Activation_Request_Date" 
                    DataType="System.DateTime" HeaderText="Activation_Request_Date" 
                    SortExpression="Activation_Request_Date" UniqueName="Activation_Request_Date">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Dismantling_Request_Date" 
                    DataType="System.DateTime" HeaderText="Dismantling_Request_Date" 
                    SortExpression="Dismantling_Request_Date" UniqueName="Dismantling_Request_Date">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Relocation_Node" 
                    HeaderText="Relocation_Node" SortExpression="Relocation_Node" 
                    UniqueName="Relocation_Node">
                </telerik:GridBoundColumn>
            </Columns>
            </MasterTableView><FilterMenu><CollapseAnimation Duration="200" Type="OutQuint" /></FilterMenu></telerik:RadGrid></telerik:RadAjaxPanel>
            
    </telerik:RadPane>
            
    </telerik:RadSplitter>


</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="main2" runat="server">
    <telerik:RadWindowManager id="windowmanager" Height="300px" Width="400px" 
        runat="server" Behavior="Default" InitialBehavior="None" Left="" 
        style="display: none;" Top="">
<Windows>
<telerik:RadWindow  ID="window" Width="400" Height="300" NavigateUrl="Assign Team.aspx" runat="server" OpenerElementID="radgrid2.rowcommand"></telerik:RadWindow></Windows>
</telerik:RadWindowManager>
    
     <asp:SqlDataSource ID="team_source" runat="server" 
            ConnectionString="<%$ ConnectionStrings:C:\DOCUMENTS AND SETTINGS\I.SHOUJAA\MY DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECT XY\PROJECT XY\APP_DATA\ASPNETDB.MDFConnectionString %>" 
            SelectCommand="select top 20 *   FROM [Team_Members]"></asp:SqlDataSource>
    <telerik:RadGrid ID="team_grid" runat="server" DataSourceID="team_source" 
        GridLines="None" Visible="False">
<HeaderContextMenu>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</HeaderContextMenu>

<MasterTableView AutoGenerateColumns="False" Height="10px" DataKeyNames="surrogate_key" 
            DataSourceID="team_source">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <norecordstemplate>
        No team members found</norecordstemplate>
    <Columns>
        <telerik:GridBoundColumn DataField="surrogate_key" DataType="System.Int32" 
            HeaderText="surrogate_key" ReadOnly="True" SortExpression="surrogate_key" 
            UniqueName="surrogate_key">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Team_Identifier" DataType="System.Int32" 
            HeaderText="Team_Identifier" SortExpression="Team_Identifier" 
            UniqueName="Team_Identifier">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Team_Member_ID" DataType="System.Int32" 
            HeaderText="Team_Member_ID" SortExpression="Team_Member_ID" 
            UniqueName="Team_Member_ID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Team_Member_Name" 
            HeaderText="Team_Member_Name" SortExpression="Team_Member_Name" 
            UniqueName="Team_Member_Name">
        </telerik:GridBoundColumn>
    </Columns>
</MasterTableView>

<FilterMenu>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>
</telerik:RadGrid>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="main3" runat="server">
</asp:Content>

 
Amitkumar
Top achievements
Rank 1
 answered on 19 Feb 2010
3 answers
82 views
Hi,

I'm using a tabstrib inside a usercontrol, which is loaded dynamically by code into the page.
In the tab I have a RadGrid and when I click on "Add New" a postback occurs and the Tabs are flipped from horizontal to vertical.
All is AJAXified and inside an updatepanel.
Do you have an idea what I can do about it?

Thanks
Thomas
Yana
Telerik team
 answered on 19 Feb 2010
4 answers
258 views

I have a radgrid with a gridButtonColumn that is using the radconfirm.  How can I change the radconfirm image from the questionmark to the caution symbol used in the radalert?

<

 

telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="DeleteImageButton" CommandName="Delete" ConfirmDialogType="RadWindow"

 

 

ConfirmText="Delete this action item?" ConfirmTitle="Delete Confirmation" Text="Delete">

 

 

</telerik:GridButtonColumn>

 

Radoslav
Telerik team
 answered on 19 Feb 2010
3 answers
165 views
Hi,

I have a multilevel self referencing grid. I am trying to set the row color of the child grids and I observe that the child row expands throughout the grid even though the first field is indented. Is there a way to just color the child rows starting from the first field and not the entire row ?

Thanks,
Pavan.

Dimo
Telerik team
 answered on 19 Feb 2010
1 answer
173 views
I load Usercontrols dynamically in RadDocks.
I wish to Edit, update, cancel edition, see details of an Employee etc. 

How can I do this ? I'm always getting the mistake : "Several controls with same ID have been found".
Also, please tell me if I can do better. Thanks

This is my user control :
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCEmployee.ascx.cs" Inherits="UCEmployee" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>  
 
<table border="0" width="100%"
    <tr>  
        <td align="left" colspan="2">LastName : </td> 
        <td align="left" colspan="2"<asp:TextBox runat="server" ID="TxtNom"></asp:TextBox> </td> 
    </tr> 
    <tr>  
        <td align="left" colspan="2">FirstName :</td> 
        <td align="left" colspan="2"<asp:TextBox runat="server" ID="TxtPrenom"></asp:TextBox> </td> 
  
    </tr>     
    <tr>         
        <td colspan="4">&nbsp;</td> 
    </tr>     
     
    <tr>       
     
        <td colspan="4">  
            <nobr> 
            <asp:Button runat="server" ID="BtnUpdate" Text="Update" OnClick="BtnUpdate_Click"/> &nbsp; 
            <asp:Button runat="server" ID="BtnCancel" Text="Cancel"  OnClick="BtnCancel_Click"/> &nbsp; 
            <asp:Button runat="server" ID="BtnDetails" Text="Details"  OnClick="BtnDetails_Click"/> &nbsp; 
            </nobr> 
         </td> 
    </tr>   
</table> 
 
--------------------------------------- 
 
 
using System;   
using System.Data;   
using System.Configuration;   
using System.Collections;   
using System.Web;   
using System.Web.Security;   
using System.Web.UI;   
using System.Web.UI.WebControls;   
using System.Web.UI.WebControls.WebParts;   
using System.Web.UI.HtmlControls;   
using Telerik.Web.UI; 
using System.Data; 
using System.Data.SqlClient; 
  
public partial class UCEmployee : System.Web.UI.UserControl   
    int currentIndex = 0
    protected void Page_Load(object sender, EventArgs e) 
    { 
        if (currentIndex > 0) 
        { 
            DataTable dt = getEmployeeById(currentIndex); 
 
            if (dt != null && dt.Rows.Count > 0) 
            { 
                TxtNom.Text = dt.Rows[0]["FirstName"].ToString(); 
                TxtPrenom.Text = dt.Rows[0]["LastName"].ToString(); 
            } 
        } 
 
    } 
    public UCEmployee() 
    { 
    } 
    public UCEmployee(int passedIndex) 
    { 
        currentIndex = passedIndex
    } 
 
    private DataTable getEmployeeById(int EmployeeID) 
    { 
        DataSet ds = new DataSet(); 
 
        using (SqlConnection conn = new SqlConnection()) 
        { 
            conn.ConnectionString = GetConnectionString(); 
            SqlCommand cmd = new SqlCommand("SELECT [EmployeeID], [LastName], [FirstName], [Title], [ReportsTo], [Photo], [Notes] FROM [Employees] where EmployeeID = " + EmployeeID, conn); 
            conn.Open(); 
 
            SqlDataAdapter sqlAdapter = new SqlDataAdapter(cmd); 
 
            sqlAdapter.Fill(ds); 
        } 
 
        DataTable dt = ds.Tables[0]; 
        return dt; 
    } 
 
    static private string GetConnectionString() 
    { 
        return "server=STATION00374;database=Northwind;Integrated Security=SSPI;"; 
    } 
 
 
    protected void BtnUpdate_Click(object sender, EventArgs e) 
    {  
         
    } 
 
    protected void BtnCancel_Click(object sender, EventArgs e) 
    { 
 
    } 
 
    protected void BtnDetails_Click(object sender, EventArgs e) 
    { 
 
    } 


And this is my Page where I load all employees :

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestUcEmployee.aspx.cs" Inherits="TestUcEmployee" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>  
<!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>Untitled Page</title>  
</head>  
<body>  
    <form id="form1" runat="server">   
    <div>  
    <asp:ScriptManager ID="ScriptManager1" runat = "server"></asp:ScriptManager>  
     
    <br /> 
    <br /> 
     
    <table> 
        <tr> 
     
          <td style="width:100px"</td> 
          <td align="right" id="tdDocks" runat="server" style="width:1000px">              
          </td> 
          
         </tr> 
     </table>  
    </div>  
    </form>  
</body>  
</html>  
 
 
------------------------------------ 
 
using System;   
using System.Data;   
using System.Configuration;   
using System.Collections;   
using System.Web;   
using System.Web.Security;   
using System.Web.UI;   
using System.Web.UI.WebControls;   
using System.Web.UI.WebControls.WebParts;   
using System.Web.UI.HtmlControls;   
using Telerik.Web.UI;   
using System.Reflection;   
  
using System.Configuration;   
using System.Collections.Generic;   
  
public partial class TestUcEmployee : System.Web.UI.Page   
 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
        RadDockLayout layout1 = new RadDockLayout(); 
        RadDockZone zone1 = new RadDockZone(); 
        for (int i = 1; i < 12; i++) 
        { 
 
 
 
            zone1.Width = Unit.Pixel(900); 
            zone1.Orientation = Orientation.Horizontal; 
            if (i % 2 == 0) 
            { 
                zone1.BackColor = System.Drawing.Color.PeachPuff; 
            } 
            else 
            { 
                zone1.BackColor = System.Drawing.Color.AliceBlue; 
            } 
 
 
            RadBinaryImage image = new RadBinaryImage(); 
            image.ResizeMode = BinaryImageResizeMode.Fit; 
            image.Height = Unit.Pixel(100); 
            image.Width = Unit.Pixel(70); 
 
            LiteralControl liSpace = new LiteralControl("&nbsp;"); 
            LiteralControl liTitle = new LiteralControl("Title"); 
 
 
            Table table = new Table(); 
            table.BorderWidth = Unit.Pixel(0); 
            table.Width = Unit.Percentage(85); 
            TableRow tr1 = new TableRow(); 
            TableRow tr2 = new TableRow(); 
 
            tr1.HorizontalAlign = HorizontalAlign.Center; 
            tr2.HorizontalAlign = HorizontalAlign.Center; 
 
            TableCell tc1 = new TableCell(); 
            tc1.Controls.Add(liSpace); 
            TableCell tc2 = new TableCell(); 
            /* 
            if (!dt.Rows[i]["Photo"].Equals(System.DBNull.Value)) 
            { 
                image.DataValue = (byte[])dt.Rows[i]["Photo"]; 
            } 
            tc2.Controls.Add(image); 
            */ 
            Control widget = LoadControl("UCEmployee.ascx", i); 
            tc2.Controls.Add(widget); 
 
            TableCell tc3 = new TableCell(); 
            tc3.Controls.Add(liSpace); 
 
            tr1.Cells.Add(tc1); 
            tr1.Cells.Add(tc2); 
            tr1.Cells.Add(tc3); 
 
            TableCell tc4 = new TableCell(); 
            tc4.Controls.Add(liSpace); 
            TableCell tc5 = new TableCell(); 
            tc5.Controls.Add(liSpace); 
            TableCell tc6 = new TableCell(); 
            tc6.Controls.Add(liSpace); 
 
            tr2.Cells.Add(tc4); 
            tr2.Cells.Add(tc5); 
            tr2.Cells.Add(tc6); 
 
            table.Controls.Add(tr1); 
            table.Controls.Add(tr2); 
 
 
 
            RadDock dock = new RadDock(); 
            dock.UniqueName = Guid.NewGuid().ToString(); 
            dock.ID = string.Format("RadDock{0}", dock.UniqueName); 
            dock.Title = "Title";//dt.Rows[i]["FirstName"].ToString() + " " + dt.Rows[i]["LastName"].ToString(); 
            dock.TitlebarContainer.HorizontalAlign = HorizontalAlign.Center; 
 
            dock.ContentContainer.Controls.Add(table); 
 
 
            RadDock dockSpace = new RadDock(); 
            dockSpace.UniqueName = Guid.NewGuid().ToString(); 
            dockSpace.ID = string.Format("RadDock{0}", dock.UniqueName); 
            dockSpace.Style["Width"] = "900px"; 
 
            if (i % 3 == 0) 
            { 
                dock.Style["Width"] = "300px"; 
 
                zone1.Controls.Add(dock); 
 
                dockSpace.ContentContainer.Controls.Add(new LiteralControl("<table width='100%' height='10px' border='0'><tr><td>&nbsp;</td> <td>&nbsp;</td>&nbsp;<td></td></tr></table>")); 
                zone1.Controls.Add(dockSpace); 
            } 
            else 
            { 
                dock.Style["Width"] = "300px"; 
 
                zone1.Controls.Add(dock); 
            } 
 
        } 
        layout1.Controls.Add(zone1); 
        tdDocks.Controls.Add(layout1); 
    } 
 
 
    private UserControl LoadControl(string UserControlPath, params object[] constructorParameters) 
    { 
        List<Type> constParamTypes = new List<Type>(); 
        foreach (object constParam in constructorParameters) 
        { 
            constParamTypes.Add(constParam.GetType()); 
        } 
 
        UserControl ctl = Page.LoadControl(UserControlPath) as UserControl; 
 
        // Find the relevant constructor   
        ConstructorInfo constructor = ctl.GetType().BaseType.GetConstructor(constParamTypes.ToArray()); 
 
        //And then call the relevant constructor   
        if (constructor == null) 
        { 
            throw new MemberAccessException("The requested constructor was not found on : " + ctl.GetType().BaseType.ToString()); 
        } 
        else 
        { 
            constructor.Invoke(ctl, constructorParameters); 
        } 
 
        // Finally return the fully initialized UC   
        return ctl; 
    }  
       
}   
 

Pero
Telerik team
 answered on 19 Feb 2010
2 answers
159 views
Hi,
If I drag a treeview control onto my page and set the DataFieldParentID, I get the treeview correctly displaying with multi-levels of nodes/hierarchy.

However - if I try to create a treeView from my code like this:

            radTreeView.DataTextField = "CategoryName"
            radTreeView.DataValueField = "ID"
            radTreeView.DataFieldParentID = "ParentCategory"
            radTreeView.CheckBoxes = true
            radTreeView.DataSource = myDataSource; 
            radTreeView.DataBind(); 
            
            this.Controls.Add(radTreeView); 
The treeview just displays all the nodes at the same, top level - so there's there's no tree to it. It seems to be ignoring the ParentCategory field that I bound to the DataFieldParentID property.

Any ideas? And also - As this is a dynamically created control, I'm having trouble picking up the selected nodes. I'm adding the control at OnInit and Viewstate is enabled. Is there anything I need to do?

Thanks.


John
Top achievements
Rank 1
 answered on 19 Feb 2010
3 answers
149 views
Hi,
I'm using RadEditor. All work good, but after inserting silverlight object some problem appears:
1. DialogWindow(Image Manager, Document Manager ...) shape was showen under silverlight object, at the same time content of this dialogs  is over silverlight
2. Toolbar dropdowns are also showen under silverlight

Help me please to solve this problem.

Here is the Html example:

<object width="739" height="433" data="data:application/x-silverlight-2," type="application/x-silverlight-2" style="width: 739px; height: 433px;">
<param name="source" value="/Silverlight/Example.xap"/>
<param name="windowless" value="false"/>
<param name="minRuntimeVersion" value="2.0.31005.0"/>
<param name="autoUpgrade" value="true"/><a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none;"></a></object><img alt="product logo" src="../../Img/productLogoLight.gif" />is the successor of the well known industry standard Editor for ASP.NET. The tight integration with ASP.NET AJAX and the powerful new capabilities make Telerik's WYSIWYG Editor a flexible and lightweight component, turning it into the fastest loading Web Editor. Among the hottest features are:
<ul>
    <li><em>Single-file, drag-and-drop deployment</em> </li>
    <li><em>Built on top of ASP.NET AJAX</em> </li>
    <li><em>Unmatched loading speed with new semantic rendering </em></li>
    <li><em>Full keyboard accessibility</em> </li>
    <li><em>Flexible Skinning mechanism</em> </li>
    <li><em>Simplified and intuitive toolbar configuration</em> </li>
    <li><em>Out-of-the-box XHTML-enabled output</em> </li>
</ul>
Svetlina Anati
Telerik team
 answered on 19 Feb 2010
6 answers
169 views
A picture is worth a thousand words:

The problem...


As you can hopefully see, when I select a row that is taller than the selected row image, I get rather ugly results.

I tried adding the following to my main CSS file, hoping to override the repeat-x which is set in the grid.css.  No joy, possibly because I don't have 'Grid/sprite.gif' in my website?
.RadGrid_Office2007 .rgSelectedRow  
{  
    background:#ffcb60 0 -3900px repeat url('Grid/sprite.gif');  

Any suggestions?

Thanks,
  Chris

 

 

Craig
Top achievements
Rank 1
Iron
 answered on 19 Feb 2010
1 answer
116 views
Hey guys,
Is there a way to to set indentation of a node with sub nodes so that it's expand/collapse icon is flush left with the text of nodes that do not have sub nodes?
Thanks in advance,
mdk
Yana
Telerik team
 answered on 19 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?