Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
HI all ..

i am having some issue in the frozen columns with rad grid .The frozen columns work fine.But when i open it in edit odd there is certain issue in thewidth its not lking fine.Here is My markup of page plwase help


<%@ Page Language="C#" MasterPageFile="~/Template/List.Master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="CLEARTrackerCNI.UI.PActivity.List" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="cni" TagName="Filters" Src="~/Controls/Filters.ascx" %>
<%@ Register TagPrefix="cni" TagName="Export" Src="~/Controls/Export.ascx" %>
<%@ Register TagPrefix="cni" TagName="CustomView" Src="~/Controls/CustomView.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Work" runat="server">


ok some how i have resolved above issue now when i set the height for grid to 100% it get shrink to 1 row and fixed the height result in chocking the scroll bar i am attacing my screnn shot with this i want to know is it possible to synchronize browaser vertical scroll with rad grid vertical scroll. or how to fix the vertical scroll issue.

 

    <table width="100%" cellpadding="0" cellspacing="0" class="main" style="table-layout: fixed;">
        <tr>
            <td class="pgtitle">
                Activity Manager : Activities List
            </td>
        </tr>
        <tr>
            <td class="filler10">
            </td>
        </tr>
        <tr>
            <td class="pl10">
                View Assigned To:&nbsp;<telerik:RadComboBox ID="uxAssignedToGroup" runat="server"
                    AutoPostBack="true" MarkFirstMatch="true" Width="250px" OnSelectedIndexChanged="uxAssignedToGroup_SelectedIndexChanged"
                    EnableLoadOnDemand="false" TabIndex="1" />
            </td>
        </tr>
        <tr>
            <td height="10px">
            </td>
        </tr>
        <tr>
            <td height="10px">
                <table width="100%" cellpadding="1" cellspacing="0">
                    <tr style="vertical-align: middle">
                        <td style="vertical-align: middle; padding-bottom: 7px;">
                            <asp:CheckBoxList ID="uxChkList" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="uxChkList_SelectedIndexChanged"
                                AutoPostBack="true">
                                <asp:ListItem Text="In-Complete" Value="0" Selected="True" />
                                <asp:ListItem Text="Complete" Value="4" />
                            </asp:CheckBoxList>
                        </td>
                        <td class="pl10" style="vertical-align: middle">
                            <cni:Filters runat="server" id="uxFilters" />
                        </td>
                        <td>
                            <cni:Export ID="uxExport" runat="server" />
                        </td>
                        <td style="vertical-align: middle">
                            <cni:CustomView ID="uxCustomView" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="10px">
                &nbsp;
            </td>
        </tr>
        <tr runat="server" id="trGrid">
            <td>
                <telerik:RadGrid ID="uxRadGrid" AutoGenerateColumns="False" AllowFilteringByColumn="true"
                    OnNeedDataSource="uxRadGrid_NeedDataSource" OnItemDataBound="uxRadGrid_ItemDataBound"
                    AllowPaging="true" Width="100%" Height="368px" PageSize="100" AllowSorting="True"
                    runat="server" EnableEmbeddedSkins="false" OnItemCommand="uxRadGrid_ItemCommand"
                    OnItemCreated="uxRadGrid_ItemCreated" AllowMultiRowEdit="true">
                    <pagerstyle mode="NextPrevAndNumeric" alwaysvisible="true" />
                    <groupingsettings casesensitive="false" />
                    <clientsettings><Scrolling AllowScroll="True" SaveScrollPosition="true" UseStaticHeaders="true"  FrozenColumnsCount="3"></Scrolling>
                                                   
        </clientsettings>
                    <mastertableview overridedatasourcecontrolsorting="true" editmode="InPlace" commanditemdisplay="TopAndBottom"
                        tablelayout="Fixed" allowfilteringbycolumn="true" enableheadercontextmenu="true" Width="100%">
            <CommandItemTemplate>
                <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditAllActvt" Visible='<%#uxRadGrid.EditIndexes.Count == 0%>' Text="Edit All" />
                <asp:LinkButton ID="btnUpdate" runat="server" CommandName="UpdateAllActvt" Text="Update All" Visible='<%#uxRadGrid.EditIndexes.Count > 0%>'  ValidationGroup="validateEstimates" />
            </CommandItemTemplate>
            <Columns>
                <telerik:GridBoundColumn Groupable="false" HeaderText="#" DataField="RowNum" UniqueName="RowNum" SortExpression="RowNum"
                    HeaderStyle-Width="75px" AutoPostBackOnFilter="true" AllowFiltering="false" ReadOnly="True" />
                <telerik:GridTemplateColumn Groupable="false" HeaderText="Activity Name" ReadOnly="True" UniqueName="ActivityName"
                    SortExpression="ActivityName" DataField="ActivityName" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    HeaderStyle-Width="110px" FilterControlWidth="60%" ShowFilterIcon="true" AndCurrentFilterFunction="Contains">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkName" runat="server" Text='<%#Eval("ActivityName")%>' />
                        <asp:Label ID="uxId" runat="server" Text='<%#Eval("ProjActID")%>' Visible="false" />
                        <asp:Label ID="uxProjID" runat="server" Text='<%#Eval("ProjectID")%>' Visible="false" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <%--To allow them to be visible on pdf/doc--%>
                <telerik:GridTemplateColumn HeaderText="Activity Name" UniqueName="AltActivityName" Visible="false">
                    <ItemTemplate><asp:Label ID="lblName" runat="server" Text='<%#Eval("ActivityName")%>' /></ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn HeaderText="Group" DataField="ActivityGroupName" ReadOnly="True" UniqueName="ActivityGroupName"
                    SortExpression="ActivityGroupName" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    HeaderStyle-Width="105px" FilterControlWidth="60%" ShowFilterIcon="true" AndCurrentFilterFunction="Contains" />
                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true"
                    AndCurrentFilterFunction="Contains" UniqueName="AssignedToUser" SortExpression="AssignedToUser" DataField="AssignedToUser"
                    HeaderStyle-Width="100px" FilterControlWidth="60%" HeaderText="Assigned To" ReadOnly="false">
                    <ItemTemplate><asp:Label runat="server" ID="lbAssignedToUser" Text='<%#Eval("AssignedToUser")%>' /></ItemTemplate>
                    <EditItemTemplate>
                        <asp:RadioButton runat="server" ID="rdoAssignedType" GroupName="AssignedType" AutoPostBack="true" OnCheckedChanged="rdoAssignedType_SelectedIndexChanged" Text="User"/>
                        <asp:RadioButton runat="server" ID="rdoAssignedTypeGroup" GroupName="AssignedType" AutoPostBack="true" OnCheckedChanged="rdoAssignedType_SelectedIndexChanged" Text="User Group"/>
                        <asp:RadioButton runat="server" ID="rdoAssignedUserTags" GroupName="AssignedType" AutoPostBack="true" OnCheckedChanged="rdoAssignedType_SelectedIndexChanged" Text="User Tags"/>
                        <br />
                        <asp:DropDownList ID="cmbAssigned" runat="server" Visible="false"
                            DataTextField="FullName"
                            DataValueField="UserID" Width="">
                        </asp:DropDownList>
                        
                        <asp:DropDownList ID="cmbAssignedGroup" runat="server" Visible="false"
                            DataTextField="GroupName"
                            DataValueField="GroupID" Width="">
                        </asp:DropDownList>
                        
                        <asp:DropDownList ID="cmbAssignedUserTags" runat="server" Visible="false"
                             DataTextField="CodeText"
                             DataValueField="CodeValue" Width="">
                        </asp:DropDownList>  
                                        
                        <asp:Label runat="server" ID="lbAssignedToUser" Visible="false" Text='<%#Eval("AssignedToUser") %>' />
                        <asp:Label runat="server" ID="lbAssignedToUserID" Visible="false" Text='<%#Eval("AssignedToID") %>' />
                        <asp:Label runat="server" ID="lbAssignedToType" Visible="false" Text='<%#Eval("AssignedToType") %>' />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:RadioButton  runat="server" ID="rdoAssignedType" GroupName="AssignedType" AutoPostBack="true" OnCheckedChanged="rdoAssignedType_SelectedIndexChanged" Text="User"  EnableLoadOnDemand="true" Checked="true"/>
                        <asp:RadioButton runat="server" ID="rdoAssignedTypeGroup" GroupName="AssignedType" AutoPostBack="true" OnCheckedChanged="rdoAssignedType_SelectedIndexChanged" EnableLoadOnDemand="true" Text="User Group"/>
                        <asp:RadioButton runat="server" ID="rdoAssignedUserTags" GroupName="AssignedType" AutoPostBack="true" OnCheckedChanged="rdoAssignedType_SelectedIndexChanged" Text="User Tags"/>
                        <br />
                        <asp:DropDownList ID="cmbAssigned" runat="server" Visible="false"
                            DataTextField="FullName"
                            DataValueField="UserID" Width="">
                        </asp:DropDownList>
                        
                         <asp:DropDownList ID="cmbAssignedGroup" runat="server" Visible="false"
                            DataTextField="GroupName"
                            DataValueField="GroupID" Width="">
                        </asp:DropDownList>
                        
                         <asp:DropDownList ID="cmbAssignedUserTags" runat="server" Visible="false"
                             DataTextField="CodeText"
                             DataValueField="CodeValue" Width="">
                        </asp:DropDownList>  
                        
                        <br /><asp:LinkButton runat="server" ID="uxUpdateAll" Text="Update all Assigned To" CommandName="setAssigned" />
                    </FooterTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Starts on" DataField="StartDate" UniqueName="StartDate" SortExpression="StartDateRaw"
                    HeaderStyle-Width="70px" FilterControlWidth="60%" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    ShowFilterIcon="true" AndCurrentFilterFunction="Contains">
                    <EditItemTemplate>
                        <asp:TextBox ID="uxStartDate" runat="server" Width="90%" Text='<%#Convert.ToDateTime(Eval("StartDate")).ToString("MM/dd/yyyy")%>'/>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="uxStartDate" ErrorMessage="Enter a valid start date in format mm/dd/yyyy" ToolTip="Enter a valid start date in format mm/dd/yyyy" ValidationExpression="^(((0?[1-9]|1[012])/(0?[1-9]|1\d|2[0-8])|(0?[13456789]|1[012])/(29|30)|(0?[13578]|1[02])/31)/(19|[2-9]\d)\d{2}|0?2/29/((19|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(([2468][048]|[3579][26])00)))$" Text="<img src='/App_Themes/Default/Images/error.gif' />" ValidationGroup="validateEstimates" />
                    
                    </EditItemTemplate>
                    <ItemTemplate><asp:Label ID="dtLabelSD" runat="server" Text='<%#Eval("StartDate")%>' /></ItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="uxStartDateAll" runat="server" Width="90%" Text=""/>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="uxStartDateAll" ErrorMessage="Enter a valid start date in format mm/dd/yyyy" ToolTip="Enter a valid start date in format mm/dd/yyyy" ValidationExpression="^(((0?[1-9]|1[012])/(0?[1-9]|1\d|2[0-8])|(0?[13456789]|1[012])/(29|30)|(0?[13578]|1[02])/31)/(19|[2-9]\d)\d{2}|0?2/29/((19|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(([2468][048]|[3579][26])00)))$" Text="<img src='/App_Themes/Default/Images/error.gif' />" ValidationGroup="validateEstimates" />
                    
                        <br /><asp:LinkButton runat="server" ID="uxUpdateAllSD" Text="Update all Start On" CommandName="setStartDateOn" ValidationGroup="StartDate" />
                        <asp:RequiredFieldValidator ID="reqAssign" runat="server" ControlToValidate="uxStartDateAll" ValidationGroup="StartDate" SetFocusOnError="true" ErrorMessage="Start Date is required." Text="<img src='/App_Themes/Default/Images/error.gif' />" ToolTip="Start Date is required." />
                    </FooterTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Due on" DataField="DueOn" UniqueName="DueOn" SortExpression="DueOnRaw"
                    HeaderStyle-Width="70px" FilterControlWidth="60%" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    ShowFilterIcon="true" AndCurrentFilterFunction="Contains">
                    <EditItemTemplate>
                        <asp:TextBox ID="uxDueOn" runat="server" Width="90%" Text='<%#Convert.ToDateTime(Eval("DueOn")).ToString("MM/dd/yyyy")%>'/>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="uxDueOn" ErrorMessage="Enter a valid due date in format mm/dd/yyyy" ToolTip="Enter a valid due date in format mm/dd/yyyy" ValidationExpression="^(((0?[1-9]|1[012])/(0?[1-9]|1\d|2[0-8])|(0?[13456789]|1[012])/(29|30)|(0?[13578]|1[02])/31)/(19|[2-9]\d)\d{2}|0?2/29/((19|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(([2468][048]|[3579][26])00)))$" Text="<img src='/App_Themes/Default/Images/error.gif' />" ValidationGroup="validateEstimates" />
                    
                    </EditItemTemplate>
                    <ItemTemplate><asp:Label ID="dtLabelDueOn" runat="server" Text='<%# Eval("DueOn") %>' /></ItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="uxDueOnAll" runat="server" Width="90%" Text=""/>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="uxDueOnAll" ErrorMessage="Enter a valid due date in format mm/dd/yyyy" ToolTip="Enter a valid due date in format mm/dd/yyyy" ValidationExpression="^(((0?[1-9]|1[012])/(0?[1-9]|1\d|2[0-8])|(0?[13456789]|1[012])/(29|30)|(0?[13578]|1[02])/31)/(19|[2-9]\d)\d{2}|0?2/29/((19|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(([2468][048]|[3579][26])00)))$" Text="<img src='/App_Themes/Default/Images/error.gif' />" ValidationGroup="validateEstimates" />
                    
                        <br /><asp:LinkButton runat="server" ID="uxUpdateAllDO" Text="Update all Due On" CommandName="setDueOn" ValidationGroup="DO" />
                        <asp:RequiredFieldValidator ID="reqDO" runat="server" ControlToValidate="uxDueOnAll" ValidationGroup="DO" SetFocusOnError="true" ErrorMessage="Due On is required." Text="<img src='/App_Themes/Default/Images/error.gif' />" ToolTip="Due On is required." />
                    </FooterTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Status" DataField="StatusName" UniqueName="StatusName" SortExpression="StatusName"
                    HeaderStyle-Width="90px" FilterControlWidth="65%" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    ShowFilterIcon="true" AndCurrentFilterFunction="Contains">
                    <EditItemTemplate>
                    <asp:DropDownList ID="uxStatusName" runat="server"
                            DataSourceID="getStatusSource"
                            DataTextField="CodeValue"
                            DataValueField="CodeID" Width="">
                        </asp:DropDownList>
                    </EditItemTemplate>
                    <ItemTemplate><asp:Label ID="dtLabelStatus" runat="server" Text='<%# Eval("StatusName") %>' /></ItemTemplate>
                    <FooterTemplate>
                        <asp:DropDownList ID="uxStatusName" runat="server"
                            DataSourceID="getStatusSource"
                            DataTextField="CodeValue"
                            DataValueField="CodeID" Width="">
                        </asp:DropDownList>
                        <br /><asp:LinkButton runat="server" ID="uxUpdateAllSN" Text="Update all Status" CommandName="setStatus" />
                    </FooterTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn HeaderText="Priority" DataField="Priority" ReadOnly="True" UniqueName="Priority"
                    SortExpression="Priority" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true"
                    HeaderStyle-Width="70px" FilterControlWidth="40%" AndCurrentFilterFunction="Contains" />
                <telerik:GridBoundColumn HeaderText="Project #" DataField="ProjectCode" ReadOnly="True" UniqueName="ProjectCode"
                    SortExpression="ProjectCode" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true"
                    HeaderStyle-Width="100px" FilterControlWidth="60%" AndCurrentFilterFunction="Contains" />
                <telerik:GridBoundColumn HeaderText="Capture Date" DataField="CaptureDate" ReadOnly="True" UniqueName="CaptureDate"
                    SortExpression="CaptureDateRaw" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true"
                    HeaderStyle-Width="100px" FilterControlWidth="60%" AndCurrentFilterFunction="Contains" />
                <telerik:GridBoundColumn HeaderText="Savings Bucket" DataField="Bucket" ReadOnly="True" UniqueName="Bucket"
                    SortExpression="Bucket" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true"
                    HeaderStyle-Width="100px" FilterControlWidth="60%" AndCurrentFilterFunction="Contains" />
                <telerik:GridBoundColumn HeaderText="Primary Estimate" DataField="Primary" ReadOnly="True" UniqueName="Primary"
                    SortExpression="Primary" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true"
                    HeaderStyle-Width="100px" FilterControlWidth="60%" AndCurrentFilterFunction="Contains" />
                <telerik:GridBoundColumn HeaderText="Secondary Estimate" DataField="Secondary" ReadOnly="True" UniqueName="Secondary"
                    SortExpression="Secondary" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true"
                    HeaderStyle-Width="100px" FilterControlWidth="60%" AndCurrentFilterFunction="Contains" />
                <telerik:GridBoundColumn HeaderText="Tertiary Estimate" DataField="Tertiary"  ReadOnly="True" UniqueName="Tertiary"
                    SortExpression="Tertiary" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true"
                    HeaderStyle-Width="140px" FilterControlWidth="60%" AndCurrentFilterFunction="Contains" />
                <telerik:GridTemplateColumn Groupable="false" UniqueName="Action" Visible="True" ReadOnly="True"
                    HeaderStyle-Width="100px" HeaderText="Action" AllowFiltering="false">
                    <ItemTemplate><asp:LinkButton ID="lnkAction" runat="server" Text="Complete" CommandName="CompleteActivity" /></ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="" AllowFiltering="false" HeaderStyle-Width="100px" Visible="true">
                    <ItemTemplate><asp:LinkButton ID="lnkSave_1" Text="Save" runat="server" Enabled="false"/></ItemTemplate>
                    <EditItemTemplate><asp:LinkButton ID="lnkSave" Text="Save" runat="server" CommandName="SaveRecord" Enabled="true"/></EditItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </mastertableview>
       
                </telerik:RadGrid>
            </td>
        </tr>
        <tr runat="server" id="trMessage" visible="false">
            <td class="pl10">
                <asp:Label runat="server" ID="uxMsg" />
            </td>
        </tr>
        <asp:ObjectDataSource ID="getStatusSource" SelectMethod="GetStatus" runat="server"
            TypeName="CLEARTrackerCNI.UI.PActivity.List"></asp:ObjectDataSource>
    </table>
</asp:Content>

any help will be appriceated.
Tsvetina
Telerik team
 answered on 26 Jan 2011
1 answer
82 views
When we try to build our website in Visual Studio 2005, we get stopped with a bunch of errors that read something similar to:

Indirect reference is being made to assembly System.Web.Extensions version 3.5.0.0, which contains 'Telerik.Web.UI.RadDatePicker'. This Project references a prior version of System.Web.Extensions version 1.0.61025.0. To use 'Telerik.Web.UI.RadDatePicker', you must replace the reference to System.Web.Extensions with version 3.5.0.0 or higher.  

Our application is in ASP.NET 2.0. 

This is how it reads in the web.config:

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

How do we get this problem resolved so we can build this site?

Thanks in advance.
Iana Tsolova
Telerik team
 answered on 26 Jan 2011
1 answer
115 views
Hi all,
I currently have a problem with the use of HighlightPath()
When I click on a item of my menu, it works good
When I click on a second item, it highlights too but the first is still highlited.

Here is a code sample :

Default.aspx :
<telerik:RadMenu ID="RadMenuClients" runat="server" >
    <Items>
        <telerik:RadMenuItem Text="Toto" Value="0" />
        <telerik:RadMenuItem Text="Titi" Value="1" />
        <telerik:RadMenuItem Text="Tata" Value="3" />
        <telerik:RadMenuItem Text="Tutu" Value="2" />
        <telerik:RadMenuItem Text="Tete" Value="4" />
    </Items>
</telerik:RadMenu>

Default.aspx.vb :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'Highliting
        Dim currentItem As RadMenuItem = RadMenuClients.Items.FindItemByValue(Session("idSel"))
        If currentItem IsNot Nothing Then
            currentItem.HighlightPath()
        Else
            RadMenuClients.Items.FindItemByValue(0).HighlightPath()
        End If
End Sub
 
    Protected Sub RadMenuClients_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs) Handles RadMenuClients.ItemClick
        Session("idSel") = e.Item.Value
    End Sub

Can you tell me what is wrong with my code ?

Thank You

Julien.
Phanis
Top achievements
Rank 1
 answered on 26 Jan 2011
2 answers
49 views

I have a RadMenu (with a custom skin - css code below) that has a root list with some of the root items having one level of child items. The issue that I have is that I have a border set to enclose the child items via a custom skin and it partially displays when you hover a root item that has no child items assigned to it (See attached images - NoChildItems.jpg and ChildItems.jpg). I changed the border color to red so that it would stand out during testing. Is there any way to rectify this or does the border have to be the same color as the root item background?

 

 

/* SVPD Menu / Simple> */
  
/* for root items */
div.RadMenu_SVPD ul.rmRootGroup 
{
  
}
       
div.RadMenu_SVPD .rmLink
{
    color: #ffffff;
    padding-left: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
    height: 20px;
}
        
/* for hover, focused, expanded items */
div.RadMenu_SVPD .rmItem .rmLink:hover
{
    color: #91c8ff;
    cursor: pointer;
}
div.RadMenu_SVPD .rmItem .rmFocused,
div.RadMenu_SVPD .rmItem .rmSelected,
div.RadMenu_SVPD .rmItem .rmExpanded
{
  
}
       
/*for subitems */
       
div.RadMenu_SVPD .rmGroup 
{
    padding-top: 4px !important;
    border: 1px solid #ff0000;
    background: #003c77 url('Menu/rmVSprite.png') repeat-y;
}
       
div.RadMenu_SVPD .rmGroup .rmLink 
{
    color: #ffffff;
    padding-right: 0px !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
    float: left;
}
  
div.RadMenu_SVPD .rmGroup .rmText
{
    Padding-left: 10px !important;
}
        
/* for hover, focused, expanded items */
div.RadMenu_SVPD .rmGroup .rmItem .rmLink:hover
{
    color: #91c8ff;
    cursor: pointer;
}
div.RadMenu_SVPD .rmGroup .rmItem .rmFocused,
div.RadMenu_SVPD .rmGroup .rmItem .rmSelected,
div.RadMenu_SVPD .rmGroup .rmItem .rmExpanded 
{
}

Bernard Bobinski
Top achievements
Rank 2
 answered on 26 Jan 2011
4 answers
302 views
Hello Sir,

I am Using RadTree.

My requirement is like I want only select one child node in tree in backend side.

Please Give me proper solution.

Thanks.

Kishor Dalwadi
Inception
Top achievements
Rank 1
Veteran
 answered on 26 Jan 2011
1 answer
129 views

 

I have some ajax stuff on the page- fill one dropdown based on another dropdown's selection.
I also used Radcaptcha, when submit the page, the page alway  not valid, unless putting the radcaptcha inside the UpdatePanel .

 

<asp:UpdatePanel ID="UpdatePanel7" runat="server">
<ContentTemplate>
<telerik:RadCaptcha ID="RadCaptcha1" Runat="server" ValidationGroup="Group"
ErrorMessage="Page not valid. The code you entered is not valid.Page not valid. The code you entered is not valid"
ImageStorageLocation="Session">
</telerik:RadCaptcha>
</ContentTemplate>
</asp:UpdatePanel>

This will solve page not valid problem, but everytime when the ajax fired (first dropdown is selected), the Radcaptcha's text got changed.  Is there anyway that can prevent the Radcaptcha text changing everytime when the ajax fired?

Thanks

 

Pero
Telerik team
 answered on 26 Jan 2011
3 answers
81 views
Hi,

I have a RadGrid with a template column that uses a user control in the Edit Template. The user control tries to Register a script to run that has a function in it that will be called when the user clicks on the user control. However the function is not properly registered and cannot be called by the user control.

If I remove the RadGrid from the RadAjaxManager everything works fine.

Here is a link to a sample project (zipped) that demonstrates my problem: sample project.

I have looked around on the forums and tried some of the other suggestions to no avail.

Can you please suggest a workaround for this?

Thanks,
Oran
Maria Ilieva
Telerik team
 answered on 26 Jan 2011
1 answer
69 views

Hi,
I have created a RadGrid with self-referencing hierarchy without a problem. But as we are having some performance issues I don't have the luxure to send/receive big page sizes each time. So I send the grid empty without binding the data on needDataSource event. Then I get the data with ajax in json format which is quite small. The problem is I cannot find a client side event, which formats the data with the given hierarchical structure. Is there a way for that or do I need to write a custom javascript function to create that structure?

Where should I assign the filter expression on client side, which I do on server side like t.MasterTableView.FilterExpression = @"it[""PARENT""] = Convert.DBNull";

Given code creates the grid and binds the data but without a structure.

Thanks in advance,

Cem

<telerik:RadGrid ID="t" runat="server" AutoGenerateColumns="false" AllowPaging="True"
            HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" AllowSorting="True"
            PageSize="10"
            <mastertableview datakeynames="CHILD,PARENT"
                <SelfHierarchySettings ParentKeyName="PARENT" KeyName="CHILD" /> 
                <Columns
                    <telerik:GridBoundColumn DataField="CHILD" HeaderText="CHILD"
                    </telerik:GridBoundColumn
                    <telerik:GridBoundColumn DataField="PARENT" HeaderText="PARENT"
                    </telerik:GridBoundColumn
                    <telerik:GridBoundColumn DataField="AMOUNT" HeaderText="AMOUNT" >                
                    </telerik:GridBoundColumn
                </Columns
            </mastertableview
            <clientsettings allowexpandcollapse="true" selecting-allowrowselect="true" enablerowhoverstyle="false"
                <Scrolling AllowScroll="True" ScrollHeight="400px" UseStaticHeaders="True" />                 
            </clientsettings
        </telerik:RadGrid>


Sys.Application.add_init(function() { 
        var grid = $find("<%=t.ClientID%>"); 
        var tableView = grid.get_masterTableView(); 
        var id = grid.get_element().id; 
        var objData = { 
            id: id, 
            startIndex: tableView.get_currentPageIndex(), 
            pageSize: tableView.get_pageSize(),             
        }; 
    
        $.ajax({ 
            type: "POST"
            url: url, 
            data: Sys.Serialization.JavaScriptSerializer.serialize({ data: objData }), 
            contentType: "application/json; charset=utf-8"
            success: function(arg) { 
                //create an array with coming data and assign it         
                tableView.set_dataSource(arr); 
                tableView.dataBind(); 
                }, 
                before: function() { 
                }, 
                error: function() { 
                
            });
Tsvetina
Telerik team
 answered on 26 Jan 2011
1 answer
59 views
I have a grid with a column for country and type along with many others.

By default the grid is ordered by country. When I click the letters in the pager at the bottom of the grid, it filters the country correctly.

Then I add a filter to the grid for type. Then I hide the filter and click the letters in the pager at the bottom of the grid. At sporadic times, it will still be filtered by type. Other times it will be filtered by country. What is happening here?
Maria Ilieva
Telerik team
 answered on 26 Jan 2011
1 answer
195 views
Hello! I has faced such problem. I try to get access to control being inside RadDock using JavaScript. I do it as follows...

<script type="text/javascript">

var test = $find("<%=RadDock1.ContentContainer.FindControl("val1").ClientID %>");

</script>

 <telerik:RadDock ID="RadDock1" runat="server" Width="300px">
        <ContentTemplate>

        <telerik:RadTextBox ID="val1" runat="server">
        </telerik:RadTextBox>

</ContentTemplate>
</telerik:RadDock>

When page generated, i cannot get access to control, and its "null" because if look html code i see the following...

<span id="RadDock1_C_val1_wrapper" class="RadInput RadInput_Default" style="white-space:nowrap;">
<input type="text" size="20" id="RadDock1_C_val1_text" name="RadDock1_C_val1_text" class="riTextBox riEnabled" style="width:125px;" />
<input id="RadDock1_C_val1" name="RadDock1$C$val1" class="rdfd_" style="visibility:hidden;margin:-18px 0 0 -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;" type="text" value="" />
<input id="RadDock1_C_val1_ClientState" name="RadDock1_C_val1_ClientState" type="hidden" /></span>
And my javascript code - var test = $find("<%=RadDock1.ContentContainer.FindControl("val1").ClientID %>");
find this control - RadDock1_C_val1 but it is null. How can i get access to this control - RadDock1_C_val1_text ??? what i do not so??

Thanks!
Pero
Telerik team
 answered on 26 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?