This is a migrated thread and some comments may be shown as answers.

radcombobox client side selectedindexchanged evnt inside the radgrid

6 Answers 375 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shankar mohan
Top achievements
Rank 1
shankar mohan asked on 23 Apr 2010, 08:31 AM
Am having two columns in radgrid
Column A is templatecolumn radcombobox &
Column B is GridBoundColumn

while clicking the add new record .two controls appears combobox & bounndcolumn textbox ,while selecting the value from
Combobox A  i wanna assign selected value  to Column B bound column textbox.
this should be done on  clientselectedindexchanged event of Column A

6 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 23 Apr 2010, 03:01 PM
Hi shankar,

Find the attached sample illustrating a possible implementation of the desired functionality and see if it works for you.

For more information on how to access grid cells and rows and their content, review the below topic:

http://www.telerik.com/help/aspnet-ajax/grdaccessingcellsandrows.html

Regards,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
shankar mohan
Top achievements
Rank 1
answered on 23 Apr 2010, 04:01 PM
hello lana ,

its working fine
thank Q very much

0
shankar mohan
Top achievements
Rank 1
answered on 23 Apr 2010, 04:17 PM
thank q

0
shankar mohan
Top achievements
Rank 1
answered on 28 Apr 2010, 01:05 PM
hello lana

after selecting the value from dropdown based on that value am fetching value on textboxes
its working fine


now i want to bind a radcombobox based on the selection of another radcombobox on client side


for ex --while selecting the country ,state shd be bind inside the radgrid

server side

GridDropDownListColumnEditor

 

drp = (GridDropDownListColumnEditor)item.EditManager.GetColumnEditor("Year");

 

drp.ComboBoxControl.ID =

"Yr";

 

drp.ComboBoxControl.OnClientSelectedIndexChanged +=

"OnClientYearSelectedIndexChanged";

 

 

RadComboBox txt = (item.EditManager.GetColumnEditor("Month") as GridDropDownListColumnEditor).ComboBoxControl;

 

txt.ID =

"Month";

 


Client side

function

 

OnClientYearSelectedIndexChanged(sender, eventArgs)

 

{

 

 

var

 

combo = $get(sender.get_id().replace("Yr", "Month"));
?????????

 

 

 

 

 

 

}



i tried
 var comboitem=new telerik.web.ui.radcomboboxitem();---but its showing error

 i want to add items on radcombobox in javascript

thanks in advance








0
shankar mohan
Top achievements
Rank 1
answered on 28 Apr 2010, 02:21 PM

 

var i=0;

 

 

var tempobj=obj;

 

 

var combo = $get(tempobj.get_id().replace("Yr", "Month"));

 

 

var comboItem = new Telerik.Web.UI.RadComboBoxItem();

 

comboItem.set_text(

"telerik");

 

combo.get_items().add(comboItem);----am getting err over here -->Microsoft JScript runtime error: Object doesn't support this property or method

0
Pavlina
Telerik team
answered on 29 Apr 2010, 03:29 PM
Hello Shankar,

Please refer to the code library below, for more information about how to achieve the desired functionality:
Using related RadComboBoxes in RadGrid

Kind regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
shankar mohan
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
shankar mohan
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or