Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
230 views
Hi,

I'm currently having problems linking a RadGrid to its parent row. I know I could just use Detail tables which work fine, but I want to be able to have something similar to your demo here, but at the bottom of that nested view template to also show a RadGrid with something like the Contact Name's list of orders/sales/etc.

I've currently got it setup to pass in the Customer Name's ID into the RadGrid when the grid is loaded. But then I can't find a way of then linking the Insert/Update/Delete Commands for that Customer in the grid.

Any help would be much appreciated in showing how you would extend the online demo to also include a related grid in the nested viewtemplate.

Thanks in advance!
Yavor
Telerik team
 answered on 15 Jul 2010
1 answer
114 views
Hi, how are you?, I have a problem when I try to add GridTableView in My RadGrid, I add my GridTableView with code

Example:

              
GridTableView gtv = new GridTableView();
                gtv.AutoGenerateColumns = true;
                gtv.DataSource=   BillMaterial.getSubParts(mp.PartNumber);
               gtv.DataBind();
               RadGrid.MasterTableView.DetailTables.Add(gtv)';


But in my page, can not see my Detail Table, Why?


Shinu
Top achievements
Rank 2
 answered on 15 Jul 2010
1 answer
130 views
I have been using the Google based filtering example (http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid) to extend the GridDropDownColumn to support a RadComboBox rather than text filter.  I am looking for a way to utilize the AutoCompleteSeperator to allow to multiple value selection.  So the user could pick 3 items from the list and get a result set of any rows with any one of those columns set.  Is this possible?  My working code is bellow, it follows the Google example closely.

using System;
using System.Collections.Generic;
using System.Web;
using Telerik.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI;
 
/// <summary>
/// Summary description for DDLColumn
/// </summary>
///
namespace DQCT.Controls
{
    public class DDLColumn : GridDropDownColumn
    {
        public DDLColumn()
        {
        }
 
        //RadGrid will call this method when it initializes the controls inside the filtering item cells
        protected override void SetupFilterControls(TableCell cell)
        {
            base.SetupFilterControls(cell);
            cell.Controls.RemoveAt(0);
 
            RadComboBox ddl = new RadComboBox();
            ddl.ID = String.Format("_ddl{0}", this.UniqueName);
            //ddl.ShowToggleImage = false;
            ddl.EnableTextSelection = true;
            //ddl.Skin = "Office2007";
            ddl.AutoPostBack = true;
            //ddl.AutoCompleteSeparator = ";";
            ddl.MarkFirstMatch = true;
            ddl.Height = Unit.Pixel(100);
            ddl.DataTextField = this.ListTextField;
            ddl.DataValueField = this.ListValueField;
            ddl.DataSourceID = this.DataSourceID;
            ddl.SelectedIndexChanged += ddl_SelectedIndexChanged;
 
            cell.Controls.AddAt(0, ddl);
            cell.Controls.RemoveAt(1);
        }
 
        //RadGrid will cal this method when the value should be set to the filtering input control(s)
        protected override void SetCurrentFilterValueToControl(TableCell cell)
        {
            base.SetCurrentFilterValueToControl(cell);
            RadComboBox combo = (RadComboBox)cell.Controls[0];
            if ((this.CurrentFilterValue != string.Empty))
            {
                combo.SelectedValue = this.CurrentFilterValue;
            }
        }
 
        //RadGrid will cal this method when the filtering value should be extracted from the filtering input control(s)
        protected override string GetCurrentFilterValueFromControl(TableCell cell)
        {
            RadComboBox combo = (RadComboBox)cell.Controls[0];
             return combo.SelectedValue;
        }
 
        //handler for selected index changed
        private void ddl_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o).NamingContainer;
 
            filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.UniqueName));
        }
    }
}
Yavor
Telerik team
 answered on 15 Jul 2010
1 answer
146 views
Hi !

 I am calling ShowInsertIntem function to show rad list view in insert mode but it is not firing up InitInsert CommandItem because i have to populate a dropdownlist box on InitInsertCommand..


Kind Regards,
Rosen
Telerik team
 answered on 15 Jul 2010
1 answer
196 views
Hi,

I've a grid with autogenerated columns (columns are dynamic) and i'm setting the width of the 1st column in itemdatabound event.
And I'm using IE 8, so even if i've given the code for freezing the 1st column and header of the grid when it is scrolled horizontal or vertical, the horizontal or vertical scrollbars are not visible at all but when i click on Compatibility view icon near the refresh icon in web page, then only the grid becomes visible. How can i resolve this issue?  I don't want the user to click on ' Compatibility view '
 icon every time. And besides the grid moves when the number of columns are more. How can i resolve this?

 

<telerik:RadGrid ID="DR_Low_RadGrid" runat="server" AllowPaging="false" AllowSorting="True"

 

 

AutoGenerateColumns="true" GridLines="None" PageSize="14" Width="900px" Skin="Office2007"

 

 

OnNeedDataSource="DR_Low_RadGrid_NeedDataSource" OnItemDataBound="DR_Low_RadGrid_ItemDataBound"

 

 

Height="380px">

 

 

<GroupingSettings CaseSensitive="false" />

 

 

<AlternatingItemStyle Font-Names="verdana" Font-Size="10px" />

 

 

<ItemStyle Font-Names="verdana" Font-Size="10px" HorizontalAlign="Left" />

 

 

<HeaderStyle Font-Bold="true" Font-Names="Verdana" Font-Size="10px" ForeColor="Black"

 

 

HorizontalAlign="Center" />

 

 

<MasterTableView AutoGenerateColumns="true" DataKeyNames="Geography" Width="899px"

 

 

NoMasterRecordsText="No low case data found." NoDetailRecordsText="No low case data found."

 

 

PagerStyle-EnableSEOPaging="false" PagerStyle-Mode="Slider">

 

 

<PagerStyle EnableSEOPaging="false" Mode="Slider" />

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" FrozenColumnsCount="1"

 

 

EnableVirtualScrollPaging="false" />

 

 

</ClientSettings>

 

 

<PagerStyle Mode="NumericPages" />

 

 

</telerik:RadGrid>

 




Dimo
Telerik team
 answered on 15 Jul 2010
2 answers
198 views
Hello,

    I have a RadListView nested in a RadPanelBar, the itemupdating functions for the radlistview work fine outside of the panel but the code behind can not recognize the listview once I place it inside of the panelbar.

How is there a workaround for this so that I can use the item updating functions?
Tsvetoslav
Telerik team
 answered on 15 Jul 2010
13 answers
268 views

I have implemented a RadListBox that utilizes the reorder and delete functionality provided by AllowReorder and AllowDelete. It worked fine until I also began to use the ItemTemplate functionality to create list items as hyperlinks (thanks to some fantastic help from Genady in this forum).

 

When the listbox first appears, everything is fine. The list items are hyperlinks. If I click off to the side of one of the list items (so the hyperlink is not fired, but the item is selected), and then click either the Move Up or the Move Down button, the item is moved up or down as it should be but, an additional item, with the same name, is added to the list and it is NOT a hyperlink. So, after the Move up or Move down action I have two instances of the selected item in the list. One is a hyperlink and one is not.

 

As a work-around, I have been experimenting with using the client-side API to handle the reorder and delete functionalty, per the examples on this site. But, that will open up another can of worms, and I would rather avoid doing that.

Has anyone else experienced problems with AllowReorder when using an ItemTemplate to customize the display?

Thanks for any advice you can give.

UPDATE: I used the onClientReordered event to trap the event in an attempt to remove the "additional", non-hyperlink item that was
"added" to the list. When I did this, both items were removed from the list. So, I think that an item wasn't actually added when the Move UP or Move Down buttons are used but, the single item is displaying regular text along with the hyperlink after it is moved in the list. I thought this might be helpful information.

J
Top achievements
Rank 1
 answered on 15 Jul 2010
1 answer
114 views
As we develop with the new Telerik controls, we have noticed that the speed that they function is much faster in Chrome or Firefox.
IE takes twice as long to process.

We are curious as to the reason for this speed difference.
We develop with Microsoft products (Visual Studio and SQL Server) so are wondering why the performance with Microsoft's browser is significant less than competitors' browsers.

Thanks for any suggestions or insights you may have.
Dimo
Telerik team
 answered on 15 Jul 2010
2 answers
101 views
Hi,

I have a RadGrid with grouping = true, I can use it and drag a colum to group by, but the problem is that the text on the grouping is abit off. When I use DeveloperTool to check it I can see that the div that gets created is a bit over the div or rather they overlap.

There is no easy way to explane this, but it simply looks strange or bad basicly the Upper "edge" of the letters hit the top of the grid.

I've added a printscreen.

I have made no adjustments to the grid its straitforward and I've only enabled grouping, sorting and similar functions.
Is there any way to fix this?
Tye
Top achievements
Rank 1
 answered on 15 Jul 2010
4 answers
109 views
RadGrid using Webservice binding with clientside cache but not export data.(Xls,csv)


This is my code:

<telerik:RadGrid
 ID="RadGrid2" AllowSorting="true" AllowPaging="true"AllowFilteringByColumn="true"
            AutoGenerateColumns="false" runat="server">
            <MasterTableView CommandItemDisplay="Top">
                <CommandItemSettings ShowExportToCsvButton="True"
                    ShowExportToExcelButton="True" />
                <Columns>
                    <telerik:GridBoundColumn DataField="Id"HeaderText="Id" />
                    <telerik:GridBoundColumn DataField="Name"HeaderText="Name" />
                      
                </Columns>
  
<PagerStyle AlwaysVisible="True"></PagerStyle>
            </MasterTableView>
            <PagerStyle AlwaysVisible="true" />
            <ClientSettings>
                <DataBinding Location="~/mywebservice.asmx" EnableCaching="true"
                    SelectMethod="GetFacilityListCH"  />
            </ClientSettings>
        </telerik:RadGrid>
nanthakumar thangavel
Top achievements
Rank 1
 answered on 15 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?