Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
212 views
In my radgird I have allowed ClientSettings for AllowColumnsReorder="True" AllowDragToGroup="True". One of my column allows only to reorder and no grouping is allowed in that column. And the second column I have both reorder and grouping is allowed. Now the problem is that in both columns tooltip it shows "Drag to group or reorder". I only want in th efirst column tootip to show "Drag to reorder" and the second one ""Drag to group or reorder".

<telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName"
    UniqueName="ProductName" ReadOnly="True" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"
    ShowFilterIcon="false" FilterControlWidth="260px" HeaderStyle-Width="280px" ItemStyle-Wrap="true"
    FilterDelay="4000" Groupable="false"  >
</telerik:GridBoundColumn>  
 <telerik:GridBoundColumn DataField="ManufacturerName" HeaderText="ManufacturerName"
      SortExpression="ManufacturerName" UniqueName="ManufacturerName" ReadOnly="True"
      CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" ShowFilterIcon="false"
      FilterControlWidth="110px" HeaderStyle-Width="130px" ItemStyle-Wrap="false" FilterDelay="4000">
 </telerik:GridBoundColumn>

 I also did some testing by applying the following:
 1)
 RadGrid.ClientSettings.ClientMessages.DragToGroupOrReorder = "drag to reorder";
 
 But the problem in this one was both the columns tootip was showing "drag to reorder"

 2) I did not see any changes in the tooltip at all. It was still showing ""Drag to group or reorder"

protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridHeaderItem)
        {
      
            GridHeaderItem header = (GridHeaderItem)e.Item;
            header["ProductName"].ToolTip = "Drag to reorder";
  
  
  
        }
    }


Thanks.
Tsvetina
Telerik team
 answered on 27 Dec 2010
3 answers
450 views
I can not figure out how to define the relationship in such way to have the parent and child data already in the radgrid when the page is displayed.

The parent datatable contains columns: "CustomerID", "ContactName" and "Company" 
The child datatable contains columns: "CustomerID", "OrderID", "OrderDate" and "Freight"

I understand how to do this as shown in the demos but how do I accomplish this in the code behind?  I do not want to do a postback or use ajax to get the child data.

Thanks in advance

This is the aspx data:

       <telerik:RadGrid ID="RadGrid1" runat="server" Width="95%" ShowStatusBar="True"
            AutoGenerateColumns="False" PageSize="7" AllowSorting="True"
            AllowPaging="True"  
        GridLines="None"  >
            <MasterTableView Width="100%" DataKeyNames="CustomerID" AllowMultiColumnSorting="True" >
                 <DetailTables>
                    <telerik:GridTableView DataKeyNames="OrderID" Name="Orders" Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn SortExpression="OrderID" HeaderText="OrderID" HeaderButtonType="TextButton"
                                DataField="OrderID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="OrderDate" HeaderText="Date Ordered" HeaderButtonType="TextButton"
                                DataField="OrderDate" UniqueName="OrderDate" DataFormatString="{0:D}">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="Freight" HeaderText="Freight" HeaderButtonType="TextButton"
                                DataField="Freight" UniqueName="Freight">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
  <ExpandCollapseColumn Visible="True"></ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="CustomerID" HeaderText="CustomerID" HeaderButtonType="TextButton"
                        DataField="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="ContactName" HeaderText="Contact Name" HeaderButtonType="TextButton"
                        DataField="ContactName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="CompanyName" HeaderText="Company" HeaderButtonType="TextButton"
                        DataField="CompanyName">
                    </telerik:GridBoundColumn>
                </Columns>
           </MasterTableView>
        </telerik:RadGrid
Nikolay Rusev
Telerik team
 answered on 27 Dec 2010
3 answers
171 views
I am using contentEditable=true Div's and Span's as the "source" that the RTE of the RadEditor works on.  It works for the "standard" items that are left click based and most dialog based inserts (excluding things like AJAX spell check where the source is drawn from the RadEditor DIV ?? ).  But all the right click menus of the RTE are not available to these areas, I assume because the context menus are binded to the RadEditor created DIV.  Is there there a way to port those to these contentEditable areas?  I would like to do it client-side as a delegation to the body based on the div/span being conentEditable or not (using jQuery).  This is because I turn the ability on and off so the delegation would need to be client-side and check the attribute of contentEditable=true before rendering the context menu - if not I'll just cancel the event.

Is there an example of how to bind these missing functions to other divs/spans that are not generated by the RadEditor servercontrol ?  And/or the list of the eventHanders that I need to port?

Thanks.
Rumen
Telerik team
 answered on 27 Dec 2010
5 answers
171 views
Is there a way to have the RadTooltip (relative to browser window, centered) change position on Window resize so that it is always centered (without having to do a refresh)? Thanks.
mc2000
Top achievements
Rank 1
 answered on 27 Dec 2010
2 answers
217 views
I have been able to get the parent child to work using the DetailTableDataBind event and having HierarchyLoadMode="Client".  I am moving from Infragistics and using there controls I was able to bind the grid to a dataset that contained two tables with a data relationship defined using this method: Dim dr As DataRelation = New DataRelation("OrderTable", dc1, dc2, False) .  How or can I do this for a RadGrid wihout using the DetaiTableDataBind event?

Thanks

John


John
Top achievements
Rank 1
 answered on 27 Dec 2010
5 answers
246 views
Hi,

I am using the grid's built in drag and drop functionality and have observed a strange issue.
When dropping a grid item onto a html control within the grid, the "e.HtmlElement" is empty. It is only not empty when dropping on items outside of the grid. Is there any way around this? I would really like to be able to drop a grid item onto a specific row to trigger some functionality.

Thank you
Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
201 views
Hi,

I am new to Telrik and using RadGrid with Virtual Scrolling feature.
When I scroll down, last page of Grid is selected automatically, it happens when there is some empty space below the records in Grid. I can not fix the height of Grid for some reason.

Has anybody faced this issue before. Please help me in resolving this issue.
Below is the Code used for virtual scrolling: 

<telerik:RadGrid ID="radGridItem" AllowPaging="True" runat="server" AutoGenerateColumns="False" PageSize="5"

 

<MasterTableView TableLayout="Fixed"> 
<PagerTemplate
<asp:Panel ID="PagerPanel" Style="padding: 6px; line-height: 24px" runat="server"> 
<div style="margin: 0px; float: right;">
Displaying page
<%
# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>of
<%
# DataBinder.Eval(Container, "Paging.PageCount")%>
, items
<%
# (int)DataBinder.Eval(Container, "Paging.FirstIndexInPage") + 1 %>
to
<%
# (int)DataBinder.Eval(Container, "Paging.LastIndexInPage") + 1 %>
of
<%
# DataBinder.Eval(Container, "Paging.DataSourceCount")%>
</div>
<div style="width:260px; margin: 0px; padding: 0px; float: left; margin-right: 10px; white-space: nowrap;">
<asp:LinkButton ID="Button1" runat="server" OnClientClick="changePage('first'); return false;"
CommandName="Page" CommandArgument="First" Text="&lt;&lt;" CssClass="PagerButton FirstPage" />
<asp:LinkButton ID="Button2" runat="server" OnClientClick="changePage('prev'); return false;"
CommandName="Page" CommandArgument="Prev" Text="&lt;" CssClass="PagerButton PrevPage" />
<span style="vertical-align: middle;">Page:</span>
<telerik:RadNumericTextBox ID="RadNumericTextBox1" Width="25px"
Value='<%# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>'
runat="server">
<ClientEvents OnValueChanged="RadNumericTextBox1_ValueChanged" />
<NumberFormat DecimalDigits="0" />
</telerik:RadNumericTextBox>
<span style="vertical-align: middle;">of
<%
# DataBinder.Eval(Container, "Paging.PageCount")%>
</span>
<asp:LinkButton ID="Button3" runat="server" OnClientClick="changePage('next'); return false;"
CommandName="Page" CommandArgument="Next" Text="&gt;" CssClass="PagerButton NextPage" />
<asp:LinkButton ID="Button4" runat="server" OnClientClick="changePage('last'); return false;"CommandName="Page" CommandArgument="Last" Text="&gt;&gt;" CssClass="PagerButton LastPage" />
</div>
<asp:Panel runat="server" ID="NumericPagerPlaceHolder" />
</asp:Panel>
</PagerTemplate>
<PagerStyle Mode="NumericPages" PageButtonCount="10" AlwaysVisible="true" />
<Columns>
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True">
</Scrolling>
<ClientEvents/>
</ClientSettings>
</telerik:RadGrid>


Thanks
Gaurav Jain

Iana Tsolova
Telerik team
 answered on 27 Dec 2010
11 answers
167 views
I am using RAD Controls for AJAX Q2 2009 SP1 with master pages in VS 2005 VB.NET.

The RAD Menu is located in the master page; the RAD AJAX manager is also located in the master page. 

The content page contains two RAD Calendar controls and a RAD combo box.  Everything is working in the page except for the RAD Combo box.  If I have the RAD Combo box on the page without the calendar, it works fine; but just says "loading" when all controls are present.

We are transitioning to a new version of our Intranet that utilizes master pages; our previous version did not use master pages and these controls did not conflict with one another.  Please advise.

Simon
Telerik team
 answered on 27 Dec 2010
1 answer
61 views

Hi,

I have hierarchical grid on which i have included the column resize functionality. Column re-sizing done by user on Parent grid is maintained even after the post back but column re-sizing done by user on child grid is not maintained after the postback. I am using telerik verison "2010.1.519.35". Below i have pasted my sample code where ----//Some Code---- is for some code which i have not pasted here.

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="Mygrid">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Mygrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                   </AjaxSettings>
            </telerik:RadAjaxManager>
                <telerik:RadGrid ID="Mygrid" runat="server" AllowCustomPaging="True" AllowPaging="True" PageSize="5" EnableEmbeddedSkins="false" Skin="MySkin" AllowSorting="True" AllowMultiRowSelection="true" AllowFilteringByColumn="true" EnableViewState="true" GridLines="None" Width="100%" ----//Some Code---->
                    <ClientSettings AllowExpandCollapse="true"><Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" ClipCellContentOnResize="true" EnableRealTimeResize="true" /><Selecting AllowRowSelect="true" EnableDragToSelectRows="false" /></ClientSettings>
                    <PagerStyle Position="TopAndBottom" Mode="NumericPages" PageButtonCount="5" />
                    <SortingSettings EnableSkinSortStyles="false" />
                    <MasterTableView AllowSorting="true" AllowMultiColumnSorting="false" HierarchyLoadMode="ServerOnDemand" Width="100%" TableLayout="Fixed">
                        <PagerTemplate>
                             ----//Some Code----
                        </PagerTemplate>
                        <ExpandCollapseColumn ButtonType="ImageButton" CollapseImageUrl="~/Skin/Grid/SingleMinus.gif"  ExpandImageUrl="~/Skin/Grid/SinglePlus.gif" ></ExpandCollapseColumn>
                        <RowIndicatorColumn Visible="False"><HeaderStyle /></RowIndicatorColumn>
                        <DetailTables>
                            <telerik:GridTableView HierarchyLoadMode="Client" Width="100%" GridLines="None"  runat="server" CellPadding="0" CellSpacing="0" BorderWidth="1" BorderColor="#cccccc" AllowMultiColumnSorting="false" AllowPaging="false" AllowSorting="false" HierarchyDefaultExpanded="true" EnableViewState="true" AllowFilteringByColumn="false" TableLayout="Fixed"  ----//Some Code---->
                                <ParentTableRelation><telerik:GridRelationFields  ----//Some Code---- /></ParentTableRelation>
                                <Columns>
                                    <telerik:GridClientSelectColumn UniqueName="colselectjob" Resizable="false"><HeaderStyle Width="25" /></telerik:GridClientSelectColumn>
                                     ----//Some Code----
                                </Columns>
                            </telerik:GridTableView>
                            
                        </DetailTables>
                        
                        <Columns>
                            <telerik:GridClientSelectColumn Resizable="false" UniqueName="colselectjob"><HeaderStyle Width="25" /></telerik:GridClientSelectColumn>
                            ----//Some Code----
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>


Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
162 views
Good evening
use Sitefinity 3.7 sp3, we would like to create a banner for our website similar to the homepage of Telerik.
There is a control that allows you to achieve this effect?
I searched but found nothing.

:)
Fiko
Telerik team
 answered on 27 Dec 2010
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?