Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
391 views

Hello, Telerik, I have a question to you regarding the hierarchical RadGrids.

I'm using a hierarchical RadGrid (Telerik control) but there are some bugs regarding the sort of the second level. I have two levels and the second level is loaded based on the first level.

Columns of the first level: Foo1, Foo2, Foo3

Columns of the second level: Bar1, Foo2, Bar2, Bar3

Binding is issued through a function.

Problems:

  1. If a single row of the first level is expanded (we can see a single sub-grid from the second level) and I want to sort by Bar1, the sort happens, but an error occures:

    Uncaught TypeError: Cannot call method 'sort' of null

  2. If a single row of the first level is expanded (we can see a single sub-grid from the second level) and I want to sort the second level by Foo2, the sort happens for the parent grid's (!) Foo2 column

  3. If two rows of the first level are expanded (we can see two sub-grids from the second level) and I want to sort both the subgrids by the same column a strange rectangle appears instead of the ascending/descending sign, I get the same error as described in the first problem but the sorting is not issued.

I would like to get rid of these problems, my question is the following:

If we have a hierarchical RadGrid and both the first and the second level is sortable how can I implement a sort of the second level to be free of bugs?

Thank you in advance for your responses.

Marin
Telerik team
 answered on 22 Nov 2011
1 answer
134 views
Hi all,

I am having a problem with multiple MVC Telerik Menus overlapping within a MVC Telerik Grid.  In the screenshots, you can see that I am using a detail in the view which is another MVC Telerik Grid and it too has a column that uses a MVC Telerik Menu.  What's happening is the menu in the detail view is having an overlap problem with the top level menu items in the parent Telerik Grid.  I included both a screenshot of the overlap issue as well as what the menus look like when they are closed, and you can see that the two rows that have "Cancelled and "Placed" top level menus are bleeding through the detail menu when that menu is expanded.

I've tried to see about adding a class that increases z-index to 5000 to all menu items when a menu item opens and then removing that class from all menu items in the close event, but so far that hasn't been successful.

Is there any way to address this?

Note that there is no overlap when the parent row's menu overlaps a detail row's menu.  It only happens when a detail row's menu opens on top of the parent row's menu (see menu fine no overlap screenshot).

Thanks,

Rob
Rob
Top achievements
Rank 1
 answered on 22 Nov 2011
0 answers
119 views
I'm creating an appointment template and I have found lots of good examples on accessing the appointment properties there like this:

            <AppointmentTemplate>
                <p>
                    <h2><%# Eval("Subject") %></h2>
                </p>
            </AppointmentTemplate>

But I'm having trouble figuring out how to get to the attributes from here. I have an attribute called loc_descrip that I can get to this way in the codebehind: appointment.Attributes["loc_descrip"]. How would that be accessed in the AppointmentTemplate?

Edit to add: Ah, figured it out. I'll post what I did in case anyone else wonders the same thing:
Single quotes were the key: <%# Eval("Attributes['loc_descrip']") %>

Thanks!
Matt
Top achievements
Rank 1
 asked on 22 Nov 2011
1 answer
87 views
I tried to use grid view as list view bit I failed every time 
AS 
I don't want to display any type of lines (horizontally or vertically )
I just wana use grid view as a list view ,like that of many other forums 
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Nov 2011
1 answer
106 views

Hi,

I am unable to see the numericcolumn filter image for the following scenario. Is there a way to auto-set the column width to the header width.

Consider the following scenario:
I have a grid with the width specified. Varoius columns are added to that grid. Filtering is allowed, resizing is allowed.

When i run this code, the columns does not display the filter image. It gets hidden. Only when i manually resize the column, i am able to see the filter icon.

<asp:Panel ID="PanelForGrid" Width="900px" Height="400Px" runat="server">
    <Grid ID="PortfolioGrid" runat="server" Width="100%" Height="100%" AutoGenerateColumns="false"
        AllowFilteringByColumn="true" AllowSorting="true" AllowPaging="true" PageSize="3">
  <ClientSettings EnablePostbackOnRowClick="true">
            <Selecting AllowRowSelect="True" />
            <Scrolling AllowScroll="true" UseStaticHeaders="true" EnableVirtualScrollPaging="true" ScrollHeight="400px" />
            <Resizing AllowColumnResize="true" AllowRowResize="true" ClipCellContentOnResize="false" EnableRealTimeResize="true" AllowResizeToFit="true" ResizeGridOnColumnResize="false"/>
  </ClientSettings>
        <MasterTableView DataKeyNames="Id" TableLayout="Fixed">
        <columns>
  
   <GridBoundColumn DataField="Id" HeaderText="Id" UniqueName="Guid" Visible="true"></GridBoundColumn>

   <GridBoundColumn DataField="FirstName" HeaderText="FirstName" UniqueName="FirstName" Visible="true"></GridBoundColumn>

   <GridBoundColumn DataField="LastName" HeaderText="LastName" UniqueName="LastName" Visible="true"> </GridBoundColumn>

   <GridDateTimeColumn DataField="DOB" HeaderText="DOB" UniqueName="DOB" Visible="true" DataFormatString="{0:dd/MM/yyyy}" EditDataFormatString="dd MMMM, yyyy hh:mm tt"> </GridDateTimeColumn >

   <GridNumericColumn DataField="DeptId" DataType="System.UInt16" HeaderText="DeptId" UniqueName="DeptId" Visible="true"> </GridNumericColumn>

   <GridNumericColumn DataField="Salary" HeaderText="Salary" UniqueName="Salary" Visible="true" > </GridNumericColumn>

   <GridBoundColumn DataField="Designation" HeaderText="Designation" UniqueName="Designation" Visible="true"> </GridBoundColumn>

  </columns>
        </MasterTableView>
    </Grid>
</asp:Panel>

Seems the filtering textbox has a fixed width set in the control.
Please suggest a way to override that behavior.

Thanks
Tarun

Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Nov 2011
3 answers
138 views
Hello Support Team,

I want to know that i have a query regarding RadMenu control. Can i open the Menu drop down box through programmatic on page for fixed duration. 

Have a nice day.
Kate
Telerik team
 answered on 22 Nov 2011
1 answer
118 views
I'm having an issue using the AjaxLoadPanel with a grid inside a containing element.  If you have a containing element, such as a div, that has a fixed height on it with scrollbars, the loading panel does not stay inside the containing element.  I cannot send code or screenshots of my code due to proprietary/sensiitve data.  Instead, I've reproduced the same issue with your demo pages using IE developer tools (see attached screenshot).  Do you have a suggested solution for this issue?
Andrey
Telerik team
 answered on 22 Nov 2011
4 answers
221 views
Hi there, I have the following problem.
I created a simple page containing a tabstrip with two tabs, two pageviews and some content for each. The first tab contains a radgrid. All the controls have 100% width set.
I'd like to have some padding for the pageviews, but if I add it to the pageview's cssclass, the content of the pageview overflows and a horizontal scrollbar appears.

Is there any way I can fix this?
Thanks
Kate
Telerik team
 answered on 22 Nov 2011
1 answer
304 views
I have a RadListView that I use to insert data into a SQL table.  Below is a snippet of the Insert Item template 
I have a text box with the ID ScheduleTextBox that is bound to an insert parameter Schedule
 I need to be able to populate the text in this text box from another datasource.
How can I do this?????



Thanks for any help!

Dave


<InsertItemTemplate>
     <tr class="rlvIEdit">
         <td colspan="7">
             <table cellspacing="0" class="rlvEditTable">
                 <tr>
                     <td>
                         <asp:Label ID="Officer_NameLabel2" runat="server"
                             AssociatedControlID="rcbOfficer" Text="Officer_Name"></asp:Label>
                     </td>
                     <td>
                          <telerik:RadComboBox ID="rcbOfficer" runat="server"
                                 DataSourceID="dsOfficer" DataKeyField="Rosterid" DataTextField="officer_name"
                                 DataValueField="officer_name" AllowCustomText="True"  Text='<%# Bind("Officer_Name") %>'>
                         </telerik:RadComboBox>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="ScheduleLabel2" runat="server"
                             AssociatedControlID="ScheduleTextBox" Text="Schedule"></asp:Label>
                     </td>
                     <td>
                         <asp:TextBox ID="ScheduleTextBox" runat="server" CssClass="rlvInput"
                             Text='<%# Bind("Schedule") %>' />
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="UnitLabel2" runat="server" AssociatedControlID="rcbIUnit"
                             Text="Unit"></asp:Label>
                     </td>
                     <td>
                         <telerik:RadComboBox ID="rcbIUnit" runat="server"
                                 DataSourceID="dsUnit" DataKeyField="Unitid" DataTextField="unit"
                                 DataValueField="unit" AllowCustomText="True"  Text='<%# Bind("unit") %>'>
                         </telerik:RadComboBox>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="VehicleLabel2" runat="server"
                             AssociatedControlID="rcbIVehicle" Text="Vehicle"></asp:Label>
                     </td>
                     <td>
                         <telerik:RadComboBox ID="rcbIVehicle" runat="server"
                                 DataSourceID="dsVehicle" DataKeyField="vehicleid" DataTextField="vehiclenumber"
                                 DataValueField="vehiclenumber" AllowCustomText="True"  Text='<%# Bind("vehicle") %>'>
                         </telerik:RadComboBox>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="HoursLabel2" runat="server" AssociatedControlID="HoursTextBox"
                             Text="Hours"></asp:Label>
                     </td>
                     <td>
                         <asp:TextBox ID="HoursTextBox" runat="server" CssClass="rlvInput"
                          Text='<%# Bind("Hours") %>'/>
                     </td>
                 </tr>
                 <tr>
                     <td colspan="2">
                         <asp:Button ID="PerformInsertButton" runat="server" CommandName="PerformInsert"
                             CssClass="rlvBAdd" Text=" " ToolTip="Insert" />
                         <asp:Button ID="CancelButton" runat="server" CausesValidation="False"
                             CommandName="Cancel" CssClass="rlvBCancel" Text=" " ToolTip="Cancel" />
                     </td>
                 </tr>
             </table>
         </td>
     </tr>
 </InsertItemTemplate>
Tsvetina
Telerik team
 answered on 22 Nov 2011
1 answer
123 views
Hi,

The bullet points are not showing in the Rad Editor

Pls. suggest me how to go about it.

Thanks
Jidesh
Rumen
Telerik team
 answered on 22 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?