Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
100 views
I have a class derived from RadGrid, to which i would like to add a hidden input and possibly other controls.  I'd like to put those at the root level - adding them to the main div (so that these added controls would be siblings of the MasterTableView), but it doesn't seem possible.  I've tried overriding CreateChildControls, OnLoad, PreRender, and other functions, at which point i'd try to do a simple this.controls.add().  But the controls i add in this manner never get rendered out to the page - regardless of which function i'm in.

The only way i've been able to render those controls out is if i add them to a cell in the command item.  But that command row won't always be visible, so that doesn't seem like a very solid solution.

Any ideas?  What's the best way to add child controls to a RadGrid derived class?  Preferably without resorting to turning the whole thing into a composite control.

-RP
Justavian
Top achievements
Rank 1
 answered on 02 Jun 2011
5 answers
163 views
Hi,

I'm using a radgrid in edit mode which has a radcombo box and three textbox controls for each row. Can you point me in the right direction on how to preserve state when i need to do a postback?

Thansk,
Ron
Ron
Top achievements
Rank 1
 answered on 02 Jun 2011
2 answers
145 views
Hi,

I'm using a rad combo box within a rad grid and the first column of the grid is the rad combo box. Can you tell me if it's possible that on selected index changed if I can set the text property for a label or text box control outside of the grid? I'm not looking to set the text property for any controls within the grid but out side the grid. I've tried the following with no results. 
protected void RadComboBox1_OnSelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
   {
       lblSubtotal.Text = "Mytest";
   }

Thanks,
Ron.
Ron
Top achievements
Rank 1
 answered on 02 Jun 2011
5 answers
83 views
I can re rate after a post back just fine, the second I throw it in an update panel no more re rating. 

This does not seem like it should be, as I would think submitting a rating with an ajax request would be common.

What am I missing?
Niko
Telerik team
 answered on 02 Jun 2011
1 answer
316 views
Hi Telerik,

In RAD File explorer grid context menu if i click on download it should download the file.How can we achieve this task.
Is there any demo example with code .please can you share it me..

How to get the physical path from server side.?
I added custom download file button in grid context menu.
This is my code:
Client side:
--------------

 

 

function DownloadFileWindow(oGridMenu, args) {

 

 

 

 

var domElem = args.get_targetElement();

 

 

 

 

var text = $telerik.$(domElem).text();

 

 

 

 

//var isFolder = text.indexOf(".") == -1;

 

 

 

var gridContextMenuItems = oGridMenu.get_allItems();

 

 

 

 

for (var i = 0; i < gridContextMenuItems.length; i++) {

 

 

 

 

var menuItem = gridContextMenuItems[i];

 

 

 

 

if (menuItem.get_value() == "Download_File") {

 

 

OnClientFileOpen(sender, args)

 

__doPostBack(

 

"download");

 

 

}

 

}

 

}


Server side:

radFileExplorer.GridContextMenu.OnClientItemClicked = "DownloadFileWindow";


I am calling my function like this

 

 

string userSelection = Request.Params.Get("__EVENTTARGET");

 

 

 

 

if (userSelection == "download")

 

 

{

 

DownLoadFile();

 

}

private

 

 

void DownLoadFile()

 

 

{

 

 

 

string TargetFile = here i need physical path of the file
//radFileExplorer.TreeView.SelectedNode.GetFullPath("/");//radFileExplorer.Configuration.ViewPaths;

 

System.IO.

 

FileInfo file = new System.IO.FileInfo(TargetFile);

 

 

 

 

//-- if the file exists on the server

 

 

 

//set appropriate headers

 

 

 

if (file.Exists)

 

 

{

 

 

 

FileStream liveStream = new FileStream(TargetFile, FileMode.Open, FileAccess.Read);

 

 

 

 

byte[] buffer = new byte[Convert.ToInt32(liveStream.Length) + 1];

 

 

liveStream.Read(buffer, 0,

 

Convert.ToInt32(liveStream.Length));

 

 

liveStream.Close();

 

Response.ClearHeaders();

 

Response.ClearContent();

 

Response.Clear();

 

Response.ContentType =

 

"application/octet-stream";

 

 

Response.AddHeader(

 

"Content-Length", buffer.Length.ToString());

 

 

Response.AddHeader(

 

"Content-Disposition", "attachment; filename=" + file.Name);

 

 

Response.BinaryWrite(buffer);

 

}

 

}




Dobromir
Telerik team
 answered on 02 Jun 2011
3 answers
73 views
Would it be possible for you guys to implement like SEO tab clicking, so I can navigate the tabs with the querystring as PART of the control (like the RadGrid does)?

I know how to do it with code, so I don't need a snippet, I was just hoping to have it as a feature of the control.
Dimitar Terziev
Telerik team
 answered on 02 Jun 2011
1 answer
103 views
Hi,
I need to work with Gantt chart ,X-axis with month names and y axis with Meter data can  u plz tel me the way to get the items from one  month to another month
Evgenia
Telerik team
 answered on 02 Jun 2011
1 answer
90 views
Hi;
I am having three Bar chart as shown in the attachment  but the issue is that i need to increase the width of all the the bars. currently 
they are very thin . I need to increase the size (width) . Can you please tell me that how can i achive this. 
please rely ASAP 
Princy
Top achievements
Rank 2
 answered on 02 Jun 2011
13 answers
293 views
Hi,
I have a problem with export to pdf from RadGrid. After exporting my pdf doesn't look well:
http://imageshack.us/photo/my-images/825/errexport.png/

Not all data from grid are in that document and there are no polish chars in that pdf ('#').
My grid has a lot of data and set page orientation to landscape isn't solution.
How to fix this?


wnl
Top achievements
Rank 1
 answered on 02 Jun 2011
1 answer
78 views

Unfortunately, there is no option to set client settings for telerik treelist to make the headers constant while scrolling.There is paging option but i donot need paging. all the nodes should expand collapase on demand.In the clientsettings option i cannot see this

 

<ClientSettings>

       <Scrolling AllowScroll="True" UseStaticHeaders="true" />

<ClientSettings>

 

Martin
Telerik team
 answered on 02 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?