Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
128 views
Hi.
I am using the RadDatePicker and RadCalendar in a project and I noticed a bug with the datepicker button.

When I press the button in the date picker, and finish making my date selection, the datepicker button shifts down a couple of pixels.

I tried checking the margins and the z-index, but it did not really change the code much.

Here's the the code snippet.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>    <!--needed for telerik:RadCalendar-->
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
        <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Santrio" EnableEmbeddedSkins="false">
            <Calendar ID="Calendar1" runat="server" EnableKeyboardNavigation="true" />
        </telerik:RadDatePicker>
    </telerik:RadAjaxPanel>


You may notice that I am calling a customized skin called "Santrio", but it is just the default skin, happened to be in CSS.

How do I fix this issue? Thanks!
Developer
Top achievements
Rank 1
 answered on 22 Nov 2011
1 answer
33 views
After an insert on a grid, sometime i am unable to see the row that i have just inserted because the row count may be larger than the first page and the new row may be ordered lower in the grid than existing items. Is there a way i can display the previously inserted row as the first row without having to manipulate my SQL to do so. This particular table has no timestamps so we cannot order the data by that.
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Nov 2011
2 answers
115 views
Hello, I apprently mistakenly thought that the client function findControl() would only search the node that I call it on, but it's not.

It's searching all children nodes of it as well.

var comboBox  = node.findControl( "ComboBoxID" );

comboBox should be null for some nodes that it isn't.  It's traversing the tree structure and finding a match several levels down.

How would I limit that to just within the current node and not within any child nodes?
Marbry
Top achievements
Rank 1
 answered on 22 Nov 2011
9 answers
354 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
101 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
94 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
76 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
75 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
115 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
92 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?