Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
92 views

 

protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                taskGrid.DataSource = myDAL.GetTask(0);
                taskGrid.Rebind();
  
                           }
 This is how I am  populating my grid. When I use paging, it disappears.

Please help,
 
     
Smiely
Top achievements
Rank 1
 answered on 26 Jan 2011
1 answer
58 views
Hi,
I am using the rad numeric textboxes and i want it to to be able to add ',000' when numbers are added into the box. So i entered 34, it would then automatically format it to 34,000 and i can't work out what would be the best way to do this. Either by having a event handler after the focus has been lost or by some javascript or if there is already a telerik method for doing this.

Any help would be great.

Thanks

Simon
Daniel
Telerik team
 answered on 26 Jan 2011
2 answers
109 views
Hello Guys,
Ich read several articles and coded a lot but there is one question which nobody wants to answer i believe!
I hope someone can help me!

I have a sharepoint webpart like the one in the Telerik tutorial. When i click a button, the page do not postback completely BUT, every time when i click into any webpart of the page, all webparts will start a new lifecycle. That means every webpart calls its OnInit - CreateChildControl - OnLoad .... method. And AFTER that  the event-handler of the control is called which were clicked. Is there a way that ONLY the handler of the control is called and ONLY the control is updated instead of calling every time all webparts OnInit ..... .?

Please help me and hopefully answer with NO it is not possible to update only one control IN a webpart or YES it is possible and then please show me how!

Thank you guys!

Jan
Top achievements
Rank 1
 answered on 26 Jan 2011
3 answers
103 views
I am currently using the RadAjaxLoadingPanel as a busy indicator.  This is all working great. 

However, I was asked to display status messages telling the user what is happening (as the busy indicator is displaying).

I added a Label in the RadAjaxLoadingPanel, like so:

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
  <asp:Label ID="progressLabel" runat="server" Text="Doing something...." />
</telerik:RadAjaxLoadingPanel>


My question: is there any way to update the progressLabel text while I am carrying out the various steps in my code-behind file?  I carry out about 5 specific steps and would like to inform the user what step the process it on.
Maria Ilieva
Telerik team
 answered on 26 Jan 2011
5 answers
145 views

Hi

I have a RadGrid, I have now been tasked with putting a Right Click Context menu in place. What I need to figure out is:


1)     How can I get a value from the either the DataItem or the DataKeyValues from client side for the row that has fired off the
        context menu?   

    
Any thoughts / pointers most appreciated

Tsvetina
Telerik team
 answered on 26 Jan 2011
1 answer
75 views
Hi,
    I am using this rad grid for display things which uses linq to sql. 
http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx


But in this source code count (total no of rows is hardcoded) and it is not changing when we are applying filtering. How do we correct it?
Vasil
Telerik team
 answered on 26 Jan 2011
1 answer
92 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
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?