Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
377 views
Hey

I'm using Kendo Hierarchical grid, just as one of listed in your demos (http://demos.telerik.com/aspnet-mvc/grid/hierarchy). My issue is, I want to apply a filter on one of columns (on parent grid) such that it will also be applied on Child grid column. My issues are:

1. How do i know if there is filter applied on parent grid column, since there is no such even handler for filter on grid. 
2. I want to data appear in child grid columns(if exists), even if entry doesn't exist on parent grid column

I did some experiments by passing the filter collection from parent grid to child grid (since both have similar schema), but again, but couldn't sort out the answers for those two questions


Thanks

Abdul Rehman
Dimo
Telerik team
 answered on 25 Dec 2014
1 answer
294 views

Is there a way to disable the mouse wheel scrolling from moving the slider?
(My end-users keep accident;y changing their event status as the scroll down the page)

Joana
Telerik team
 answered on 25 Dec 2014
1 answer
983 views
Hi,
How to add new row in radgrid in client side. I have tried the following way
The Code is:
function addNewItem(sender,args) {
  var MasterGrid = grid;
var masterTableView = MasterGrid .get_masterTableView();
var batchEditingManager = MasterGrid .get_batchEditingManager();
batchEditingManager.addNewRecord(masterTableView);
}

When I click the new row the row was created in radgrid. but the template column was not created also the index was set to -1,-2, etc...
In Radgrid we using shift click function so its throws script error.


I need to add multiple row one by one on rad button click not command button and I have one Rad Button checkbox template column in my grid how can I achieve this.
Eyup
Telerik team
 answered on 25 Dec 2014
1 answer
286 views
Hello,

One of the requirement of our client is Excel export and Import data to radgrid. I am using RADGrid in BatchEdit mode,the data from the grid will be exported as excel. This has been done already using openxml. The data in the exported excel will be edited by the user. He may add new data. Once done the changes in the excel, the user wants to import the excel in Radgrid batchedit and save the changes in database.

In summary, the client wants to work offline with exported excel and then import the modified excel to the application.

How to do this import part in batch edit mode. Can you please share a sample project?
Deyan Enchev
Telerik team
 answered on 25 Dec 2014
5 answers
173 views
Hello,
I have a Treeview in a related ComboBox.
<telerik:GridTemplateColumn DataField="LayoutTypeID"
    FilterControlAltText="Filter LayoutTypeID column" HeaderText="Layout Type"
    UniqueName="LayoutTypeID">
    <EditItemTemplate>
        <telerik:RadComboBox ID="LayoutTypeIDRadComboBox" runat="server"
            DataSourceID="ODSLayoutTypes"
            DataTextField="TypeName"
            DataValueField="TypeID"
            onselectedindexchanged="LayoutTypeIDRadComboBox_SelectedIndexChanged"
            AutoPostBack="true"
            SelectedValue='<%# Bind("LayoutTypeID") %>'>
        </telerik:RadComboBox>
    </EditItemTemplate>
    <ItemTemplate>
        <asp:Label ID="LayoutTypeIDLabel" runat="server"
            Text='<%# Eval("LayoutTypeID") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="LayoutID"
    FilterControlAltText="Filter column1 column" HeaderText="Layout"
    UniqueName="LayoutID">
    <EditItemTemplate>
        <telerik:RadComboBox ID="LayoutIDRadComboBox"
            runat="server" Culture="de-DE" > 
            <ItemTemplate>
                <div id="div1">
                    <telerik:RadTreeView ID="RTVLayouts"
                        runat="server"                                                                     
                        onnodedatabound="RTVLayouts_NodeDataBound" >
                    </telerik:RadTreeView>
                </div>
            </ItemTemplate>                                                    
        </telerik:RadComboBox>
    </EditItemTemplate>
    <ItemTemplate>
        <asp:Label ID="LayoutIDLabel" runat="server" Text='<%# Eval("LayoutID") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>

protected void LayoutTypeIDRadComboBox_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    RadComboBox RCBLayoutTypes = sender as RadComboBox;
    GridEditableItem item = RCBLayoutTypes.NamingContainer as GridEditableItem;
 
    RadComboBox RCBLayouts = item.FindControl("LayoutIDRadComboBox") as RadComboBox;
 
    int layoutTypeID = 0;
    try
    {
        layoutTypeID = Convert.ToInt32(e.Value);
    }
    catch
    {
        layoutTypeID = 0;
    }
 
    LoadLayoutsForTreeView(layoutTypeID.ToString(), RCBLayouts);
}
 
protected void LoadLayoutsForTreeView(string LayoutTypesID, RadComboBox rcbl)
{
 
    if (LayoutTypesID != string.Empty)
    {
        //rcbSelectLayout.ClearSelection();
        LayoutsBLL lbll = new LayoutsBLL();
        RadTreeView rtv = (rcbl.Items[0].FindControl("RTVLayouts")) as RadTreeView;
        rtv.DataSource = lbll.GetLayoutsByLayoutTypes(Convert.ToInt32(LayoutTypesID));
        rtv.DataValueField = "LayoutID";
        rtv.DataTextField = "LayoutName";
        rtv.DataFieldID = "LayoutID";
        rtv.DataFieldParentID = "ParentID";
        rtv.DataBind();          
    }
 
}


Treeview in combobox can not be found. I get an ArgumentOutOfRangeException - Items count is 0.

Best regards
Reiner
Eyup
Telerik team
 answered on 25 Dec 2014
2 answers
167 views
Hi,

I have a requirement to create a number of server controls (e.g. asp textboxes etc.) as well as RadDateTimePickers dynamically (e.g. at runtime) on a webform. I'm using the same approach to create instances of both types of control (see below):

TextBox txt = new TextBox();
txt.ID = "someid"
txt.CssClass = "my-textbox-class";
ph.Add(txt); //add to placeholder control
 
RadDateTimePicker dtp = new RadDateTimePicker();
dtp.ID = "adifferentid";
dtp.Width = new Unit(200, UnitType.Pixel);
dtp.DateInput.CssClass = "my-datepicker-class";
dtp.TimeView.Interval = new TimeSpan(0, 30, 0);
dtp.TimeView.Columns = 6;
ph.Add(dtp); //add to placeholder control

Because they're created dynamically I recreate the controls every time there is a postback. I've noted that the regular asp controls maintain any values entered into them automatically after they're recreated however the RadDateTimePickers don't. Is there something I'm missing?

Thanks

Eyup
Telerik team
 answered on 25 Dec 2014
7 answers
328 views
Hi,
how can check if a node already exits on ADD/RENAME a node. Clients Side (Javascript)
onClientContextMenuItemClicking

Thanks
Hristo Valyavicharski
Telerik team
 answered on 25 Dec 2014
2 answers
118 views
Telerik version 2014.3.1209.45

<telerik:RadImageGallery ID="PhotoGallery" runat="server" DataImageField="File" DataDescriptionField="Title" Width="500" >
</telerik:RadImageGallery>

// where File is byte[] and Title is string
....
<asp:UpdatePanel runat="server">
   <ContentTemplate>
     <asp:Label ID="Label1" runat="server" Text="Label" />
     <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
   </ContentTemplate>
</asp:UpdatePanel>
....
protected void Button1_Click(object sender, EventArgs e)
{
   Label1.Text = "OK"; // not work!!!
}
Eyup
Telerik team
 answered on 25 Dec 2014
1 answer
173 views
Hello

I use rad grid with paging but after using export to excel, paging of my grid is gone.
Could you help me?
Eyup
Telerik team
 answered on 25 Dec 2014
1 answer
82 views
doing multi-columns sorting, this property ShowColumnSortIndexes seems to be for WPF library, does ajax Grid has similar feature/prop?
Konstantin Dikov
Telerik team
 answered on 24 Dec 2014
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?