Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
443 views
Hii,
I have a treeview control inside a combobox. The treeview is binding with datasource and I set its DataTextField,DataFieldParentID and DataValueField property. By this user can select any node of that treeview control and during insert query I get the value of the selected item by below code.

RadTreeView treeBusiness = (RadTreeView)this.RadComboBox1.Items[0].FindControl("RadTreeView1"); 
int id =Convert.ToInt32(treeBusiness.SelectedValue); 


Now my problem is in the edit mode of data, I need to set the combobox value that comes from query string. Like

RadComboBox1.SelectedValue = Request.QueryString["ID"]; 

RadComboBox1 is populating with blank rather then expected text.
This code only works if I dont use treeview inside a combobox. Please help me what I am missing here.
Thanks,
Jayant Paliwal
Basel Nimer
Top achievements
Rank 2
 answered on 20 May 2010
12 answers
332 views
Hi. I have a RadListView on a page and I am testing out the Q1 2010 trial. The ListView was working fine with the Q3 2009 dll, but when I replace it with the Q1 2010 dll, the ListView throws an exception when it tries to set the layout template (I assume this is where it's happening as it falls into the catch when it returns to the method that creates the ListView after it successfully creates the template code). I'm creating the ListView programatically and creating the templates for the item, layout, and empty templates as per your example in the demos. I'm also using NeedDataSource to bind the ListView. The exception I'm getting is "The method or operation is not implemented." It is very vague and doesn't really point me to the problem. Any ideas on why this error is happening now with the new dll? I have included the stack trace below as well:

   at System.Linq.Enumerable.Iterator`1.System.Collections.IEnumerator.Reset()
   at Telerik.Web.UI.ListViewEnumerableHelper.TryReset(IEnumerator enumerator)
   at Telerik.Web.UI.ListViewEnumerableHelper.Instantiate(IEnumerable source)
   at Telerik.Web.UI.ListViewPagableEnumerable.get_EnumerableHelper()
   at Telerik.Web.UI.ListViewPagableEnumerable.PerformTransformation()
   at Telerik.Web.UI.ListViewPagableEnumerable.TransformEnumerable()
   at Telerik.Web.UI.ListViewPagableEnumerable.RawEnumerable()
   at Telerik.Web.UI.RadListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
   at Telerik.Web.UI.RadListView.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at Telerik.Web.UI.RadListView.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at Telerik.Web.UI.RadListView.DataBind()
   at Telerik.Web.UI.RadListView.AutoDataBind(RadListViewRebindReason rebindReason)
   at Telerik.Web.UI.RadListView.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at MyControl.CreateChildControls()

Thank you for any help.

Thanks,
Ed
Ryan Bartsch
Top achievements
Rank 1
 answered on 20 May 2010
2 answers
489 views
The fuctionality in this help page (http://www.telerik.com/help/aspnet/rotator/clientsideapi.html) doesn't work on my rotator with rotatortype="automaitc advance". Is it possible to have previous, stop, play, next buttons with a radrotator with rotatortype set to 'automaitc advance' or 'slide show'? If this is possible I'd be grateful if you could post an example. Thanks!
Randy Douglas
Top achievements
Rank 1
 answered on 19 May 2010
12 answers
431 views
I have a menu on a master page and a schedular in a placeholder on one of my pages.  Using Q3, forest theme.

The menu works fine on every page except this one where it opens behind the RadSchedular.   I have attempted to bump the z-index of the menu up to as high as 99999, and attempted to lower the z-index of the RadSchedular as low as 50 by adding style="z-index:####" to the controls.

What should I try next?   Been banging my head against the wall for a couple hours now... (ouch!).
James Faw
Top achievements
Rank 1
 answered on 19 May 2010
4 answers
159 views
PLEASE, PLEASE fix the integration betwenn vs and telerik..
For years now, I dread each upgrade as I spend hours to find the "magic" config which will allow telerik and vs to work again..

The integrated upgrade break 100% of the time, only a full msi intall gets any change of working..

Setup:
Vs 2010 with lastest telerik 2010.1.415.40..
And yes, the telerik.UI dll is in the local directory.. and yes the toolkit has been fixed to pij tto the right designer set..

The last change was simply to change from 3.5 to 4.0, and the designer breaks yet again

Same control on various pages gives totally diferent errors but in all cases nothign works!!!

Please please fix this stuff so your controls will work with Vs..
Ray
Top achievements
Rank 1
 answered on 19 May 2010
1 answer
76 views
Hi 
    can you help me, in the below issues.
    we have used telerik ASP.NET Ajax controls for our development. In dev enveronment is working fine. when we deployed in server are getting following error.

Daniel
Telerik team
 answered on 19 May 2010
1 answer
99 views

Team,
I've Radgrid in my webpage bounded to Datasource. I want to export that Radgrid datas to MSWord.
For that, I wrote the following code in the Button Click event:

 

 

protected void Button1_Click(object sender, EventArgs e)

 

{

Response.Clear();

Response.Buffer =

true;

 

Response.AddHeader(

"content-disposition", "attachment;filename=FileName.doc");

 

Response.ContentEncoding = System.Text.

Encoding.UTF7;

 

Response.ContentType =

"application/vnd.word";

 

System.IO.

StringWriter oStringWriter = new System.IO.StringWriter();

 

System.Web.UI.

HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter);

 

 

//this.GridView1.RenderControl(oHtmlTextWriter);

 

 

 

 

 

this.RadGrid1.RenderControl(oHtmlTextWriter);

 

Response.Output.Write(oStringWriter.ToString());

Response.Flush();

Response.End();

}



but its throwing error as shown in the screen shot.

The same code works fine for GridView. Is it not possible for RadGrid? Pls. provide me a solution.

Thanks,
Rajesh N.
Daniel
Telerik team
 answered on 19 May 2010
5 answers
685 views
I'd like to use the Skin Chooser in the demos in our application but I'm not exactly sure on how to extract it out.  Any help would be greatly appreciated.

Andrew
keymmachine
Top achievements
Rank 1
 answered on 19 May 2010
6 answers
306 views
Hello Friends,

I used new radgrid with dynamic column with custom pagging.
In my list display column which contain Int, Datetime value.I also applied filtering on all the textbox.
I check validation on server side , radgrid ItemCommand Event.
When some one will enter text on Int column than i will display Error message using the radalert on server side.
after message is displyed i need to blank on filter textbox.

How i will do blank filtered textbox?

i have tried below code but its  not working.

dg.MasterTableView.FilterExpression = String.Empty



Thanks & Regards
Jignesh Patel

Jignesh
Top achievements
Rank 1
 answered on 19 May 2010
1 answer
113 views
I'm using LoadOnDemand with a WebService to load items from a database. I am also using the Filter = "Contains" property, not to filter the results (my web service does that), but to highlight the search term in the result set. With "Contains" the text may be anywhere in the item, so it is a visual cue to see where it matched.

Here is my problem: If someone types in "xyz" and no filter items match, it returns an empty set. I would like to show a message that says "No matches found". One solution I tried was to detect the fact that no items were being returned in the web service, and then inserting a dummy item with the text "No matches found". The problem is this gets filtered out by the control because "No matches found" does not contain "xyz".

I thought of two solutions, but each has me stumped:
1. Using OnClientItemsRequested, if the result set is 0 items, then turn off filtering so that the message will show. The turn filtering back on next time OnClientItemsRequested is called. I can't seem to control the filter property with javascript though.
2. Use the RadComboBoxData.Message property to say "No matches found", but this doesn't appear when I send my result back from the web service. I don't know if I'm doing it wrong, or if the filter is hiding it, or if that only works with virtual scrolling.

I am also open to other solutions. I would rather not change the user's text input however. For example, if they type "xyz" and there are no matches, I don't want to clear their "xyz" entry and show the message in the box. Maybe they made a typo and just need to backspace and correct it. If we clear it, I think it will be confusing.

I look forward to your advice! Thank you.
Kalina
Telerik team
 answered on 19 May 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?