Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
461 views
Hi,

I am attempting to retrieve the value of a cell in a RadGrid during the ItemDataBound event. The catch is that I am using an ItemTemplate, which seems to be the root of the problem.

I found http://www.telerik.com/help/aspnet-ajax/grdaccessingcellsandrows.html which states (about half-way down) that “This approach of obtaining cell values works for auto-generated columns and built-in column types except for template columns. For template columns you must find the control in the grid cell and extract its value.”

I agree with that statement (based on my testing), but I cannot find anywhere an example of “finding the control in the grid cell and extracting its value.”

Can someone point me to a relevant example?

My goal is to read the URL for a picture (image source), and set an imagecolumn on the same row to use that image source. This approach works perfectly so long as I do not use an <ItemTemplate></ItemTemplate> block.

Thank you in advance for your help.

Brian Meagher

Shinu
Top achievements
Rank 2
 answered on 24 May 2010
2 answers
80 views
I have a master page which has a background in its body.
I have binded my master page with a new Web Page. I added Rad Editor on it.
When I start my web page, the rad editor content itself has the background image which i have set in my master page.

How to solve this issue? I want a white background on Rad Editor instead of the image on my master page.

Below I have posted a screen shot.
Rumen
Telerik team
 answered on 24 May 2010
1 answer
181 views
I understand the whole localization thing that is not my question. Does the radEditor support an end user typing cyrillic characters in the content area? If yes is there any thing special I need to be setting to allow that?

Thanks.
Rumen
Telerik team
 answered on 24 May 2010
1 answer
114 views
Hello, I have a dynamically generated grid in page init.  When the grid has more than 12 editable columns, I set the editform Column Number to 2, so that the edit items are arranged in two columns instead of one.  However, the editform does not resize properly when it is set to two columns as you can see in the attached screenshot.  Is there any solution for this.

Thanks in advance,
Manuel
Dimo
Telerik team
 answered on 24 May 2010
5 answers
551 views
Hello All,

Using RadGrid with 2009.3.1103.35

I have successfully changed the format of displayed column using the format {0:dd/MM/yyyy}  this works well for view mode.  However, when i switch to edit mode, the format reverts to mm/dd/yyyy HH:MM:SS  format.

How can I set the format for both View and edit Mode?  I would prefer not to have to use form templates as this form contains approx 40 columns.

here is the current code for the column I refer to

        <telerik:GridBoundColumn DataField="DateOfBirth" DataType="System.DateTime"  
            Visible = "True" HeaderText="DateOfBirth" SortExpression="DateOfBirth"  
            UniqueName="DateOfBirth" EditFormColumnIndex="1"  
            DataFormatString="{0:dd/MM/yyyy}"
        </telerik:GridBoundColumn> 
 


Thanks
Mark
Mark Breen
Top achievements
Rank 1
 answered on 24 May 2010
1 answer
94 views
i just built a style using the stylebuilder for radgrid.. how do i apply the style to my grids? thanks!
Dimo
Telerik team
 answered on 24 May 2010
4 answers
129 views
I want to set the color for all cells in certain rows of the grid (like when an email is high priority, or if a payment is past due).  It seems the best place to do this is the ItemDataBound event, but I was wondering if there is any way to set an attribute for the entire row, or if I have to explicitly specify every cell in the row and set its color property.

Thanks
Dimo
Telerik team
 answered on 24 May 2010
2 answers
230 views
Hi!

Can I access controls in grid template column after data bound (in RadGrid.DataBound)?
I need to hide one control inside the column and i dont want to do this for every row. Is it possible?
Radoslaw
Top achievements
Rank 1
 answered on 24 May 2010
2 answers
110 views

I used

<telerik:RadGrid ID="RadGrid1" runat="server">
        </telerik:RadGrid>

It works well, but when I close my visual studio 2008 and open it again there is an error occure

the error is :

http://al-sri.com/msman88/radGrid.jpg

Please guide me.
omar mohammad
Top achievements
Rank 1
 answered on 24 May 2010
1 answer
198 views
Hi,

I have a RadTabStrip on a page with 2 tabs (Tab1 and Tab2).
Tab1 has a corresponding RadPageView which has a ascx control containing a 2 level RadGrid (with mastertableview and detailtableview). Lets call it Grid1. 
When clicked on a row in detailtableview, a subtab is dynamically created in Tab2. So precisely user can create n number of subtabs in tab2, by clicking on rows in tab1.
The subtabs have corresponding radpageviews and an ascx control having a radgrid (lets call it Grid2) is loaded in the pageview using the PageViewCreated event of RadMultiPage.
Now i am creating Grid1 and Grid2 in ascx file, and i create mastableviews, detailtableviews with corresponding columns in page_init of ascx controls. And both the grids have GridEditFormType set to WebUserControl, and i load ascx control using EditFormSettings.UserControlName property.

Now the issue is for Grid1, the itemcommand event fires for all the events (update, insert, cancel and delete), but the itemcommand event is not getting fired for Grid2 update, insert and cancel events, however for delete command it fires the event and page_load gets fired for all the commands. I also have onclick events for save and cancel buttons in ascx control with respective command names but event the click events doesnt fire.

could you please help me out resolving this issue ?

Thanks
Yavor
Telerik team
 answered on 24 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?