Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
196 views

 

I am working on an existing ASP.NET 2.0 web application built in VS2005. Our desktop OS is WinXP (IIS5) and the servers are Win2003 (IIS6). My current issue revolves around a new AJAX RadTreeView that is located within a couple of asp:Panel within a rad:PageView on a content page. Initially the control renders correctly, but after hiding a parent panel that it is contained within, and then making that panel visible again, the controls renders as an unordered list. There are no checkboxes, or style formatting.

 

In navigating back to the control by making the parent panel visible again, the tree view control does have its visibility set to false initially and once a specific dropdown selection has been selected the tree view is made visible and the nodes cleared and rebound. I’ve debugged and interrogated the tree view from the command window and the nodes are populated both before and after being made visible and not. In fact the improperly rendered view of the control indicates that it is getting the data.

 

Are there any ideas as to why this is happening? I have played around with the RadAjaxManager to see if different control selections modified the rendered results, but no.

Much thanks, Fred.

 

<rad:PageView ID="RightsView" runat="server" meta:resourcekey="RightsView">

<asp:Panel ID="ViewRoleRightsPanel" runat="Server" Visible="True">

</asp:Panel>

 

<asp:Panel ID="CreateEditRoleRightsPanel" runat="Server" Visible="False">

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

    <AjaxSettings>

        <telerik:AjaxSetting AjaxControlID="ddlRole">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="LocationLabelPanel" />

                <telerik:AjaxUpdatedControl ControlID="ManagerialTypePanel" />

                <telerik:AjaxUpdatedControl ControlID="TreeViewPanel" />

                <telerik:AjaxUpdatedControl ControlID="LocationWidePanel" />

                <telerik:AjaxUpdatedControl ControlID="LocationNarrowPanel" />

                <telerik:AjaxUpdatedControl ControlID="NotificationPanel" />

                <telerik:AjaxUpdatedControl ControlID="btnSaveRight" />

            </UpdatedControls>

        </telerik:AjaxSetting>

        <telerik:AjaxSetting AjaxControlID="ddlManagerialType">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="TreeViewPanel" />

                <telerik:AjaxUpdatedControl ControlID="btnSaveRight" />

            </UpdatedControls>

        </telerik:AjaxSetting>

        <telerik:AjaxSetting AjaxControlID="RadLocationGrid1">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="RadLocationGrid1" />

                <telerik:AjaxUpdatedControl ControlID="btnSaveRight" />

            </UpdatedControls>

        </telerik:AjaxSetting>

    </AjaxSettings>

</telerik:RadAjaxManager>

<div class="ContentSection">

<div class="ContentFirstColumn">

<div class="ContentLine">

    <asp:Panel ID="TreeViewPanel" runat="server" Visible="True">

        <div class="ContentFirstItem RightAligned">

            <asp:label id="lblTreeViewRolesProduct" runat="server" Visible = "false" Text="**Product/Practice - Area of Practice/Sub-Practice:" CssClass="FormLabel" meta:resourcekey="lblTreeViewRolesProduct"></asp:label>

            <asp:label id="lblTreeViewRolesLOB" runat="server" Visible = "false" Text="**LOB/Sector/Segment:" CssClass="FormLabel" meta:resourcekey="lblTreeViewRolesLOB"></asp:label>

        </div>

        <div class="ContentDoubleItem LeftAligned">

            <telerik:RadTreeView ID="TreeViewRoles" Visible="true" runat="server" CheckBoxes="true" TriStateCheckBoxes="true" CheckChildNodes="true" Skin="Outlook" OnNodeCheck="TreeViewRoles_NodeCheck" Height="290px">

            </telerik:RadTreeView>

            <asp:Label ID="lblNote" runat="server"></asp:Label>

        </div>

    </asp:Panel>

</div>

 

Aarsh
Top achievements
Rank 1
 answered on 13 Jun 2013
1 answer
73 views
bellow code is i used. It is working properly n fire fox and IE 8 . but IE 9 and IE 10 it is not working. I have used telerik version 2008.1.415.35

<telerik:RadComboBox ID="RadComboBox1" runat="server" Width="590px" Height="140px" AllowCustomText="false"
                MarkFirstMatch="true" AutoCompleteSeparator=";"
                    EmptyMessage="Type an E-mail" DataSourceID="SqlDataSource1" DataTextField="DSG_NAME"
                    OnItemDataBound="RadComboBox1_ItemDataBound">
               </telerik:RadComboBox>
Kate
Telerik team
 answered on 13 Jun 2013
2 answers
144 views
Hi,

I searching one solution to export current modified RadGrid in one dataset to use in some custom code c#. Thanks for u.help. 
Daniel
Telerik team
 answered on 13 Jun 2013
1 answer
417 views
Hi

I need to add image in each header template  in GridTemplateColumn
But the images vanishes whenever I hit on the header for sorting

<telerik:RadGrid ID="rdAdminApproval" Skin="RadSkin" CssClass="ExportGrid" EnableEmbeddedSkins="false"
        Width="100%" mygv="" AllowFilteringByColumn="true"  AllowSorting="true"
        PageSize="10" AllowPaging="true" Font-Size="7pt" runat="server" GridLines="Horizontal"
        ShowGroupPanel="false" CellPadding="0" CellSpacing="0" >
        <%--<GroupingSettings CaseSensitive="false" />--%>
        <MasterTableView SkinID="RadSkin"  AutoGenerateColumns="false" AllowFilteringByColumn="false"
            FilterItemStyle-Wrap="true"  UseAllDataFields="true">
            <SortExpressions>
                <telerik:GridSortExpression FieldName="str1" SortOrder="Ascending" />
            </SortExpressions>
            <Columns>
                
                <telerik:GridTemplateColumn AllowFiltering="false"  >
                <HeaderTemplate>
                <img src="sort.png" />
                </HeaderTemplate>
                    <ItemTemplate>
                         <asp:Label runat="server" Text='<%#Eval("str")%>'></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn   ShowSortIcon="true"    SortDescImageUrl="SortDown.png" SortAscImageUrl="SortUp.png">
                    <HeaderTemplate>
                        <img src="sort.png" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("str1")%>' ></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn AllowFiltering="false">
                    <HeaderTemplate>
                        <img src="sort.png" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%#Eval("str2")%>'></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
 
            </Columns>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>

Princy
Top achievements
Rank 2
 answered on 13 Jun 2013
1 answer
191 views
Hi,

I am trying to implement a web page where the user can upload x number of photos to web site and allow the user to sort the order of the photo by drag & drop. Because the user will also have to set number of attributes for each photo, I figure that ListView is perfect way to display the info and allow the user to drag entire cell to reorder. In each cell, it will be like this.

[Photo 1, attr 11, attr12] [Photo 2, attr 21, attr21]  [Photo 3, attr 31, attr32] 
[Photo 4, attr 41, attr44] [Photo 5, attr 51, attr52] 

I should be able to drag the photo to move entire cell and put it in different order.

How do I accomplish this? Can ListView handle this or sample code?


Kostadin
Telerik team
 answered on 13 Jun 2013
1 answer
34 views
Hello,

I'm using a loading panel to cover a RadTreeView in a RadPane. Everything works great normally. But, when the tree gets long enough that you have to scroll down in the pane, and then the loading panel shows, the loading panel extends above the top of the visible pane. This happens, presumably, because the height of the loading panel is tied to the treeview, which is now taller than the pane it's in. 

But, how can I fix it... is there a simple way to make the loading panel now break above the top of the pane when I've scrolled down?

Thanks,

Mike
Angel Petrov
Telerik team
 answered on 13 Jun 2013
8 answers
775 views
Hello everyone,

I am new to the Telerik controls so this might seem like a very simple question but I've spent the last couple of hours trying to figure this out with no success.

Basically, I created a Scheduler which I'm populating server side with events retrieved from my database. After implementing the server side event handler for the time slot context menu item clicked, I am trying to retrieve the Start date and End date for a selected time slot server side. The issue is that though client side I manage to select multiple empty time slots, then I use the context menu to add a new event and postback server side and handle the event as per the below. 
Protected Sub radEventSchedule_TimeSlotContextMenuItemClicked(ByVal sender As Object, ByVal e As Telerik.Web.UI.TimeSlotContextMenuItemClickedEventArgs) Handles radEventSchedule.TimeSlotContextMenuItemClicked
        If e.MenuItem.Value = "NewEvent" Then
            Session("EventStartDate") = e.TimeSlot.Start
            Session("EventEndDate") = e.TimeSlot.End
        End If
    End Sub
My issue is that the startdate (e.TimeSlot.Start) and enddate (e.TimeSlot.End) is only being populated with the start time and end time of the timeslot I've right clicked. Therefore if for example I select from 01:00 - 09:00, these properties are only populated with a range of 30 minutes which is exactly the range of each single timeslot.

My intention is to retrieve the start time and end time of all the selected slots rather than the time slot I've right clicked only.

Thank you for your time.

Ludwig
Boyan Dimitrov
Telerik team
 answered on 13 Jun 2013
3 answers
574 views
Hi Telerik,

I have an issue in my RadGrid, I only want GridDateTimeColumn filter data by month and year.
Example: 1/2012 > Filtering all data in 1/2012

Please tell me how to do that
Thanks
Andrey
Telerik team
 answered on 13 Jun 2013
1 answer
66 views
Hallo,

I'm trying to add a requiredfield-validator to my radgrid as described in http://www.telerik.com/help/aspnet-ajax/grid-validation.html .
Somehow the ColumnValidationSettings are not available in my Version. I'm using Telerik.dll's v 2012.3.1016.35. What Version is needed to be able to set this property declaratively?

thanks!
Shinu
Top achievements
Rank 2
 answered on 13 Jun 2013
10 answers
273 views
I have a tabstrip on my page with several tabs and each tab has a usercontrol.
On one of my tabs based on a certain condition, I want to disable the other tabs.

Can you help me achieve this. I am unable to get a reference to the tabstrip from within the user control. I am using the latest build of ASP.NET AJAX controls.

Please help.
Kate
Telerik team
 answered on 13 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?