Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
130 views
Hi
I am using a hierarchial radgrid & when I filter in the child table ,The value in the filter text box persists in the other child tables of other master rows.
Like I have attached a screenshot of the same in which u can see that value 7 in the textbox persists.I have taken the screenshot from the below link.

http://mono.telerik.com/Grid/Examples/Hierarchy/FilteringDetailTables/DefaultCS.aspx


Basically, I do not wish to persist this filter text value in other child tables.

Please suggest.

thanks
kdyeqb
Top achievements
Rank 1
 answered on 11 Apr 2012
3 answers
179 views
Here is my code, combobox returns empty

 

 

protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

 

{

 

 

DataSet dt = DhsBasePage.getProxyDataService().GetProviderType(); //call data layer function to get an agency datatable

 

 

 

RadComboBox comboBox = (RadComboBox)sender;

 

// Clear the default Item that has been re-created from ViewState at this point.

comboBox.Items.Clear();

 

 

foreach (DataRow row in dt.Tables[0].Rows)

 

{

 

 

RadComboBoxItem item = new RadComboBoxItem();

 

item.Text = row[

 

"Abbreviation"].ToString();

 

item.Value = row[

 

"ProviderTypeID"].ToString();

 

item.Attributes.Add(

 

"Description", row["Description"].ToString());

 

comboBox.Items.Add(item);

item.DataBind();

}

}

 

 

protected void OnSelectedIndexChangedHandler(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

 

{

Session[

 

"ProviderTypeID"] = e.Value;

 

}

 

 

protected void OnItemDataBoundHandler(object sender, GridItemEventArgs e)

 

{

 

 

if (e.Item.IsInEditMode)

 

{

 

 

GridEditableItem item = (GridEditableItem)e.Item;

 

 

 

if (!(e.Item is IGridInsertItem))

 

{

 

 

RadComboBox combo = (RadComboBox)item.FindControl("RadComboBox1");

 

 

 

RadComboBoxItem selectedItem = new RadComboBoxItem();

 

selectedItem.Text = ((

 

DataRowView)e.Item.DataItem)["Abbreviation"].ToString();

 

selectedItem.Value = ((

 

DataRowView)e.Item.DataItem)["ProviderTypeID"].ToString();

 

selectedItem.Attributes.Add(

 

"Description", ((DataRowView)e.Item.DataItem)["Description"].ToString());

 

combo.Items.Add(selectedItem);

selectedItem.DataBind();

Session[

 

"ProviderTypeID"] = selectedItem.Value;

 

}

}

}


 

<

 

 

telerik:GridTemplateColumn UniqueName="ProviderType" HeaderText="Provider Type" SortExpression="ProviderType"

 

 

 

 

 

 

 

ItemStyle-Width="400px">

 

 

 

 

 

 

 

<FooterTemplate>

 

 

 

 

 

Template footer

 

</FooterTemplate>

 

 

 

 

 

 

 

<FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />

 

 

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

 

<ul>

 

 

 

 

 

 

 

<li class="col1">

 

 

 

 

 

<%

 

# DataBinder.Eval(Container, "Abbreviation")%>

 

 

 

</li>

 

 

 

 

 

 

 

<li class="col2">

 

 

 

 

 

<%

 

# DataBinder.Eval(Container, "Attributes['Description']")%></li>

 

 

 

 

 

 

 

</ul>

 

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

 

<EditItemTemplate>

 

 

 

 

 

 

 

<telerik:RadComboBox runat="server" ID="RadComboBox1" EnableLoadOnDemand="True" DataTextField="Abbreviation"

 

 

 

 

 

 

 

OnItemsRequested="RadComboBox1_ItemsRequested" DataValueField="ProviderTypeId" AutoPostBack="true"

 

 

 

 

 

 

 

HighlightTemplatedItems="true" Height="140px" Width="220px" DropDownWidth="420px"

 

 

 

 

 

 

 

OnSelectedIndexChanged="OnSelectedIndexChangedHandler" >

 

 

 

<ItemTemplate>

 

 

 

 

 

<%

 

#DataBinder.Eval(Container.DataItem, "Abbreviation")%>

 

<%

 

#DataBinder.Eval(Container.DataItem, "Description")%>

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 


What i'm missing here? need help ASAP.
Thanks.
Eva

Princy
Top achievements
Rank 2
 answered on 11 Apr 2012
1 answer
331 views
I have a radcombobox and radgrid in the page, the combobox is set to EnableLoadOnDemand and AutoPostBack, EmptyMessage="Please make a selection". when user makes selection, SelectedIndexChanged event fired automatically and populates the radgrid, all worked fine.

now the requirement is that after it populates the radgrid in the SelectedIndexChanged event, I need to reset to radcombobox to the original status that showing the EmptyMessage instead of showing the current selection. I tried to clear the items and call databind, but it throws exceptions.

how can I to do that?

thanks.

Shinu
Top achievements
Rank 2
 answered on 11 Apr 2012
1 answer
125 views
Hello,

I would like to change the highlight color (the background color of the row when it's selected) of a selected row in my radgrid.  I have attached a screenshot which demonstrates what I have and what I need to accomplish.

Thanks,
Shinu
Top achievements
Rank 2
 answered on 11 Apr 2012
1 answer
359 views
I have a radgrid where I need to display nothing where the data value is 1/1/1900.  It's read only - I don't need a date picker.  Should I use a GridBoundColumn, GridDatetimeColumn, GridTemplateColumn, or other?  How do I trap the values?  I can't change the data source in this case.
Stephen
Top achievements
Rank 1
 answered on 11 Apr 2012
8 answers
557 views
How do I set the 'Value' property on my item?  I see that the 'Text' property is available, but no 'Value'.

Thanks,

Jeff

Tim
Top achievements
Rank 1
 answered on 10 Apr 2012
7 answers
154 views
I am new to telerik,
Trying to use RadCharts control but properties and smart tag menu is missing...
Do i need to follow any steps before start working with RadChart...
For any other control there is no issue...
Tim
Top achievements
Rank 1
 answered on 10 Apr 2012
1 answer
111 views
Hi,
I would like to select multiple files using ctrl / shift key in a radUpload. How to enable Multi file select to achieve the same.

Kevin
Top achievements
Rank 2
 answered on 10 Apr 2012
4 answers
70 views
I'm a WPF developer first then a Silverlight developer.  My boss just asked me to check into creating an HTML5 application because we would like to support cross-browser and mobile applications.  These are business apps with data, not media.

Questions:
What resources can you point out that'd help me up this learning curve?

How close is ASP.NET and HTML5?  I know they aren't the same thing but what do I need to know here?

I'd like to create a demo app that pulls data from a 2.0 Web Service that serves up a DataSet then allows CRUD functionality using data binding on a simple HTML5 form that is styled by Kendo controls.  Anyone have a demo?

I appreciate any help you can provide,
Joel.
Joel Palmer
Top achievements
Rank 2
 answered on 10 Apr 2012
1 answer
104 views
I have a radcombox which is configured with

OnClientSelectedIndexChanging

 

 

="AllowSelectionChange"

In the AllowSelectionChange() javascript method....

 

    text = eventArgs.get_item().get_text();

appears to get the newly selected value...

How can I get the previously selected value?

G.
Top achievements
Rank 1
 answered on 10 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?