Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
403 views
Hello,

I have an empty PanelBar in my aspx page and I want to fill it in the code behind.
I successfully fill the PanelBar with PanelItems but I don't understand how to build th HeaderTemplate and Contentemplate.
This work :
RadPanelItem myPanelItem = new RadPanelItem("First item")
myPanelBar.Items.Add(myPanelItem);

But when I try to add the headerTemplate like that :
RadPanelItem myPanelItem = new RadPanelItem("First item")
 
Button btn = new Button();
btn.Text = "Test";
myPanelItem.Header.Controls.Add(btn);
 
myPanelBar.Items.Add(myPanelItem);


Visual studio say that the Header is null and the header can't be instanciate.

So I try others way but nothing successfull
Is someone has any solution ?
Kalina
Telerik team
 answered on 25 May 2011
2 answers
370 views
Hi,

My problem is very simple. When I deleted a user from my grid, I want to call radConfirm (from RadAjaxManager) from the serverside and send some info to the callback js function, but I don't know how to pass variables into the radConfirm. I found this trick, but it only work if my radConfirm call come from a Js function, Like I said, my call come from the serverside. So, I tried to call a Js function from the serverside with the following code :

             string script = "<script language='javascript'> " +       
                                   "    jsFunction(" + myVar + ");" +
                                   "</script>";  
            
            Page.ClientScript.RegisterStartupScript(this.GetType(), "script ", script );

This seem to work, except that if I make a Telerik instruction in the jsFunction (like radconfirm), it doesn't work (Chrome's java
console said that I can't call radConfirm from undefined). 


So, may someone help me? How may I do it ?
Thank you

David
David
Top achievements
Rank 1
 answered on 25 May 2011
3 answers
431 views
Hi,
Whenever we set ShowExportToExcel/Csv/Pdf = true, in the command item settings, the buttons are displayed right corner, in my case top-right corner. I want to place the buttons on the top-left corner of the grid. Is there a way to achieve this?

Thanks.
Daniel
Telerik team
 answered on 25 May 2011
1 answer
82 views
I don´t know how long it will be available, but this is the most challenging #captcha I´ve ever found: http://bit.ly/votaxpiki

I figured it out the third time. Its really hard.
Pero
Telerik team
 answered on 25 May 2011
1 answer
102 views
Hello

I have deployed my asp.net 2 application that i developed in a 32bit environment to a 64 bit server.
IIS 7(Windows WebServer 2008 R2)

It worked fine until i set my application pool to enable 32bit applications to true, all telerik controls are now rendering incorrectly 
eg. The RadMenu is not rendering its children and the RadTabStrip isn't displaying

Regards
Kate
Telerik team
 answered on 25 May 2011
11 answers
182 views
I have a form inside a RadAjaxUpdatePanel, the form uses a custom buttom to preview data from the form. It does this using a javascript onclick event that is defined in a .js class in the custom project ( seperate from the form).  the .js file is registered like so:
 
            ClientScriptManager cs = this.Page.ClientScript;  
            Type rsType = this.GetType();  
            cs.RegisterClientScriptInclude("JobScript", cs.GetWebResourceUrl(rsType, "CareerCenter_Classes.JsScripts.Jobs.js"));  
 

The page shows that the script is registered (using IsClientScriptIncludeRegistered), However when I try to use the button, I get a javascript error "object expected".

I know the javascript code works, It only broke when I tried to ajax the page. does anyone know what I can do to fix this?
Radoslav Georgiev
Telerik team
 answered on 25 May 2011
1 answer
110 views
Hi, im using dynamic columns via pivots in my sql code..and binding those columns in my radgrid

how do i get totals for 'some' columns left to right and the total displayed into a new column name(total) and also getting totals top to bottom and displayed into a footer 

Thanks!
Pavlina
Telerik team
 answered on 25 May 2011
1 answer
131 views

Hi there

I am having issues with using the RadAjaxManager and the client events. I can only use the following 2:

OnRequestStart and OnResponseEnd

<telerik:RadAjaxManager ID="RadAjaxManager" runat ="server">
<
ClientEvents
OnRequestStart="startRequest" OnResponseEnd="endResponse">
</
telerik:RadAjaxManager
>

I need to use the following ClientEvents but they don't appear:

OnRequestSent and OnResponseReceived

Issue that is occuring is that upon an error occuring within the build and an exception being thrown doesn't invoke the OnResponseEnd="endResponse" and thus my function endResponse doesn't run


function endResponse(sender, eventArgs)
{
parent.enableTabs();
}

So I would like to use the onResponseRecieved so that even if an exception is thrown onResponseRecieved will still run a function

<
telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
<ClientEvents OnRequestStart="startRequest" OnResponseEnd="endResponse" OnResponseReceived="receiveResponse"/>
</telerik:RadAjaxManager >

function receiveResponse(sender, eventArgs)
{
parent.enableTabs();
}

I was wondering if it could be down to the Telerik.Web.UI.dll we are using as version is 2009.02.0826.20

Any responses or help are greatly appreciated!

Cori
Top achievements
Rank 2
 answered on 25 May 2011
3 answers
194 views
Per attached image, the grouped column headers should be moved 1 cell left each, so that they don't overlap with the grouped data (product in col D). I've tried to rectify this and seen some examples of kinda how to achieve this. However why is the default behaviour as shown. My users want to be able to sort etc by the group headers and the one that overlaps with the data can't be sorted etc. It's almost as if this is a bug in the control. I can't think of any good reason why the last group header would be aligned with the first data column when exporting to excel.
Daniel
Telerik team
 answered on 25 May 2011
3 answers
96 views
Hello,

I have just started using RadControls so this question might be basic for you, I am using a List View which I am populating using Sql Data Source, I also have insert functionality in that List View but the problem is the insert template just disappear after adding one record and I have to refresh the page to make insert template appear again, am I doing something wrong ?

Edit: I have another question regarding List View, is it possible that we use a drop down box instead of a text box inside insert template ? because sometimes you want to restrict the users to pick from predefined values instead of letting them enter anything ? I have tried putting drop down box inside insert template using code view of visual studio and it also appears properly when I run the page but the problem is data binding is not working, I have tried using
SelectedValue=<%# Bind("field_name") %>
but it does not work for some reason.

Please advice,
Thanks.
Pavlina
Telerik team
 answered on 25 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?