Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
150 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
131 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
77 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
302 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
71 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
95 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
88 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
286 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
75 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
1 answer
284 views
I'd like to have groupBox functionality in my website.  Namely I need a curved border around my content and title text cutting through the border at the top left.  Is there anyway to do this with RadControls?  Is the RadXmlHttpPanel the best thing for this or is there something better to use?

I don't want to use other controls if I can avoid it because I want to be able to change the theme and not break any visual elements.
Pero
Telerik team
 answered on 02 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?