Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
261 views
Is anyone else running into this?

If I create a Dock in HTML, the Expand/Collapse command icon changes as expected.
However, if I create a Dock in Code-Behind, the Expand/Collapse command icon does not change.
I get the same result if I set a custom icon with CssClass and AlternateCssClass.
I'm hoping I'm just missing something...

Also, as a secondary question, the Expand/Collapse Command doesn't seem to want to postback to the server even if I set it's AutoPostback to true.  I have a specific need for this, but it refuses to fire.  (Again, this seems to happen on a dock created in codebehind.)

Telerik... If I'm missing something, if you can supply a quicky sample app demostrating the expand/collapse working properly when created from code-behind... all the better!

Thanks, Kuba
Pero
Telerik team
 answered on 19 Mar 2010
1 answer
149 views
Hi,

Exporting data from a grid can sometimes be very long.

Taking this example : http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx

When you have a lots more data, nothing warns the user that something is in process. I was thinking showing the loadingpanel over the grid on button click and hide it when the export process is done.

Showing the loadingpanel over the grid on export click :

function onRequestStart(sender, args) { 
                if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0) { 
                     var currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>"); 
                    currentLoadingPanel.show("<%= RadGrid1.ClientID %>"); 
 
                    args.set_enableAjax(false); 
                } 
            } 

However I can'tcatch a event to hide the loadingpanel once the export process is finished (when the user is prompted to dl or open the file).

I've already tried :

- the pageLoaded event of the ASP.NET AJAX framework :
ScriptManager.RegisterStartupScript(Me.Page, Me.Page.GetType, "P_hide", "Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoaded);", True)

function pageLoaded(sender, args) {
                var currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
                currentLoadingPanel.hide("<%= RadGrid1.ClientID %>");
            }


- the export button's OnClick server :
RadAjaxManager1.ResponseScripts.Add(...)

Thank You



Daniel
Telerik team
 answered on 19 Mar 2010
2 answers
163 views
Hi All,

I am using the RAD scheduler control on my website with version number Q3 2009.
I found 1 bug in the same version listed above, that after opening one datepicker(calendar), the other calendar popup does not work. This is also replicable on your example code that gets downloaded after installing the telerik controls.
Dont know what is the problem but I need a urgent workaround for it. I have spent around a day to resolve it but to no success.
Please suggest a solution  for it urgently.

Thanks in advance,
Yuvika.
T. Tsonev
Telerik team
 answered on 19 Mar 2010
1 answer
161 views
I would like to know how can I upload image with specific width and height.
My main purpose is to use the image as an thumbnail. So if the user is uploading image of any size it should come up as 97 X 97 (width X ht) image only.

Can we achieve this with RAD controls.
For more info I am using Sitefinity CMS.
Veselin Vasilev
Telerik team
 answered on 19 Mar 2010
1 answer
100 views
Hi,

I implemented seperate projects, for each first time loading a page of each project it takes almost 10 seconds even the page is blank.  Once the project is loaded, it is fast to load other pages in the same project.  May I have your suggestion to improve the performance?

Regards,

Duy
Sebastian
Telerik team
 answered on 19 Mar 2010
1 answer
134 views
Hi,

We have an old menu in JS files that cause problems.
We want to use RadMenu as a replacement but we want to replace only the client side code.
We want to use only the client side code of the RadMenu without the server control.
Is it possible at all?

Thanks
Yana
Telerik team
 answered on 19 Mar 2010
1 answer
104 views

I currently use the TabStrip with Mulipage controls to display and edit some 300 or so TextBoxes and other controls. I really like the advantage the PanelBar has to offer as far as the ability to display all sections at the same time and I would like to replace the TabStrip with the PanelBar. However, using the “FindItemByValue” is not very practical at all in this case. Can you recommend how to achieve the effect of the PanelBar without hiding the controls behind a parent control, maybe a combination of other controls? Is there a way to expose the controls inside the PanelBar and not having to do a “find” to get to them?

 

Thanks for the help,

-sam

Yana
Telerik team
 answered on 19 Mar 2010
7 answers
431 views
I put several rad list boxes in filter templates on a grid.
When the grid becomes too wide for the page and adds scroll bars, the rad listboxes become fixed on the page and the grid scrolls horizontally under them...
Tsvetoslav
Telerik team
 answered on 19 Mar 2010
1 answer
106 views
I'm not sure whether I have posted this in the correct forum. I have placed a RadAjaxManager at the top of my page, put a RadAjaxPanel on the page and then dropped a treeview into it. I also have a button and a textbox. The treenodes are generated dynamically by the code. I select a node at runtime and then hit the button which is supposed to write the node's value to the textbox, but this does not occur. If I used a design time generated node, it works but I have to generate the tree from a query. Here's the button click code:

TextBox1.Text = TreeView1.SelectedNode.Value.ToString();

I am under the impression that selected node's value should persist using the ajax panel. Can you help me?

Thanks,

Dave





Pavlina
Telerik team
 answered on 19 Mar 2010
3 answers
261 views
Hi, Here is my setup:
1. in the file

<

 

telerik:radtreeview id="RadTreeView2" runat="server" width="100%" height="100%"

 

 

datasourceid="ObjectDataSource1" datafieldid="ID" datafieldparentid="ParentID"

 

 

datatextfield="Text" OnNodeClick="RadTreeView2_OnNodeClick">

 

 

<DataBindings>

 

 

<telerik:RadTreeNodeBinding Expanded="true" />

 

 

</DataBindings>

 

</

 

telerik:radtreeview>

 

<

 

asp:ObjectDataSource ID="ObjectDataSource1" runat="server"

 

 

TypeName="xxxx.Component.Classes.SiteDataItemCache" SelectMethod="GetSiteDataItems">

 

</

 

asp:ObjectDataSource>
2. in the codebehind

 

protected

 

void RadTreeView2_OnNodeClick(object sender, RadTreeNodeEventArgs e)

 

{

 

SiteDataItem item = (SiteDataItem) e.Node.DataItem;

 

}


3. THE PROBLEM
the e.node.DataItem is always null.
Can anyone tell me why and how i can make this the SiteDateItem that is bound to the tree node?

Yana
Telerik team
 answered on 19 Mar 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?