or
<
MasterTableView
EditMode
=
"PopUp"
EditFormSettings-PopUpSettings-Width
=
"600"
DataKeyNames
=
"Id"
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
table
cellspacing
=
"8"
>
<
tr
>
<
td
class
=
"style2"
>Title:</
td
>
<
td
>
<
telerik:RadTextBox
ID
=
"txtTitle"
Visible
=
"true"
Text='<%# DataBinder.Eval( Container, "DataItem.Title" ) %>' MaxLength="100" Width="400" runat="server">
</
telerik:RadTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style1"
valign
=
"top"
>State:</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"RadComboBoxState"
runat
=
"server"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style1"
valign
=
"top"
>City:
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"RadComboBoxCity"
runat
=
"server"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
protected
void
RadGrid1_ItemDataBound(
object
sender, Telerik.Web.UI.GridItemEventArgs e)
{
if
(e.Item
is
GridEditFormItem && e.Item.IsInEditMode)
{
GridEditFormItem editFormItem = e.Item
as
GridEditFormItem;
GridDataItem parentItem = editFormItem.ParentItem;
Literal debug = (Literal)editFormItem.FindControl(
"ltr_debug"
);
int
_EntityId = Convert.ToInt32(parentItem[
"OwnerEntityId"
].Text);
//*******************************
//Load states
//*******************************
RadComboBox cbStates = editFormItem.FindControl(
"RadComboBoxState"
)
as
RadComboBox;
DataTable dtStates = ApplicationInterface.GetActiveStates();
cbStates.DataSource = dtStates;
cbStates.DataValueField =
"id"
;
cbStates.DataTextField =
"name"
;
cbStates.DataBind();
cbStates.SelectedValue = parentItem[
"SelectedState"
].Text;
cbStates.AutoPostBack=
true
;
cbStates.SelectedIndexChanged +=
new
System.EventHandler(StateSelected);
//*******************************
//Load cities
//*******************************
RadComboBox lbCities= (RadComboBox)editFormItem.FindControl(
"RadComboBoxCity"
);
DataTable dtCitiesByState = ApplicationInterface.GetCitiesForState(parentItem[
"SelectedState"
].Text);
lbCities.DataSource = dtCitiesByState;
lbCities.AutoPostBack =
true
;
lbCities.DataValueField =
"id"
;
lbCities.DataTextField =
"name"
;
lbCities.DataBind();
lbCities.SelectedValue = parentItem[
"SelectedCity"
].Text;
}
}
protected
void
StateSelected(
object
sender, EventArgs e)
{
RadComboBox dc = (RadComboBox)sender;
GridEditFormItem editedItem = dc.NamingContainer
as
GridEditFormItem;
RadComboBox cities=editedItem.FindControl(
"RadComboBoxCity"
)
as
RadComboBox;
...
..Binding code here
}
var
_spellid = _spell.id;
var spell = GetRadSpell(_spellid);
//var spell = GetRadSpell(_spell);
spell.set_textSource(
new Telerik.Web.UI.Spell.MultipleHtmlElementsSource(sources));
SetDebugPoint(LabelCTR,
"in startSpellCheck");
spell.startSpellCheck();
Kindly provide some help in this regard as its very crucial for our application
Thanks
Sonia Dhamija
<
telerik:RadGrid
ID
=
"Grid"
runat
=
"server"
AutoGenerateColumns
=
"False"
ShowHeader
=
"false"
GridLines
=
"None"
CellPadding
=
"0"
Width
=
"205"
DataSourceID
=
"Source"
>
<
MasterTableView
CommandItemDisplay
=
"Top"
DataKeyNames
=
"ID"
DataSourceID
=
"Source"
>
<
CommandItemTemplate
>
<
telerik:RadToolBar
ID
=
"Toolbar"
runat
=
"server"
Width
=
"100%"
>
<
Items
>
<
telerik:RadToolBarButton
runat
=
"server"
Width
=
"95%"
>
<
ItemTemplate
>
<
telerik:RadTextBox
ID
=
"Textbox"
runat
=
"server"
Width
=
"100%"
></
telerik:RadTextBox
>
</
ItemTemplate
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Value
=
"filter"
ImageUrl
=
"~/Imgs/funnel.png"
></
telerik:RadToolBarButton
>
</
Items
>
</
telerik:RadToolBar
>
</
CommandItemTemplate
>
<
NoRecordsTemplate
>No records!</
NoRecordsTemplate
>
<
Columns
>
<
telerik:GridBoundColumn
UniqueName
=
"ID"
DataField
=
"ID"
Visible
=
"false"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Field"
DataField
=
"Nominativo"
></
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
EnablePostBackOnRowClick
=
"true"
>
<
Selecting
AllowRowSelect
=
"True"
></
Selecting
>
</
ClientSettings
>
</
telerik:RadGrid
>
<
object
id
=
"myMovieName"
codebase
=
"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
classid
=
"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width
=
"630"
height
=
"209"
>
<
param
name
=
"_cx"
value
=
"16668"
/>
<
param
name
=
"_cy"
value
=
"5529"
/>
<
param
name
=
"FlashVars"
/>
<
param
name
=
"Movie"
/>
<
param
name
=
"Src"
value
=
"%7E/media/introduction2.ashx"
/>
<
param
name
=
"WMode"
value
=
"Window"
/>
<
param
name
=
"Play"
value
=
"-1"
/>
<
param
name
=
"Loop"
value
=
"-1"
/>
<
param
name
=
"Quality"
value
=
"High"
/>
<
param
name
=
"SAlign"
/>
<
param
name
=
"Menu"
value
=
"-1"
/>
<
param
name
=
"Base"
/>
<
param
name
=
"AllowScriptAccess"
/>
<
param
name
=
"Scale"
value
=
"ShowAll"
/>
<
param
name
=
"DeviceFont"
value
=
"0"
/>
<
param
name
=
"EmbedMovie"
value
=
"0"
/>
<
param
name
=
"BGColor"
/>
<
param
name
=
"SWRemote"
/>
<
param
name
=
"MovieData"
/>
<
param
name
=
"SeamlessTabbing"
value
=
"1"
/>
<
param
name
=
"Profile"
value
=
"0"
/>
<
param
name
=
"ProfileAddress"
/>
<
param
name
=
"ProfilePort"
value
=
"0"
/>
<
param
name
=
"AllowNetworking"
value
=
"all"
/>
<
param
name
=
"AllowFullScreen"
value
=
"false"
/>
</
object
>
<
object
id
=
"myMovieName"
codebase
=
"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
classid
=
"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width
=
"630"
height
=
"209"
>
<
param
name
=
"_cx"
value
=
"16668"
/>
<
param
name
=
"_cy"
value
=
"5529"
/>
<
param
name
=
"FlashVars"
/>
<
param
name
=
"Movie"
/>
<
param
name
=
"Src"
/>
<
param
name
=
"WMode"
value
=
"Window"
/>
<
param
name
=
"Play"
value
=
"-1"
/>
<
param
name
=
"Loop"
value
=
"-1"
/>
<
param
name
=
"Quality"
value
=
"High"
/>
<
param
name
=
"SAlign"
/>
<
param
name
=
"Menu"
value
=
"-1"
/>
<
param
name
=
"Base"
/>
<
param
name
=
"AllowScriptAccess"
/>
<
param
name
=
"Scale"
value
=
"ShowAll"
/>
<
param
name
=
"DeviceFont"
value
=
"0"
/>
<
param
name
=
"EmbedMovie"
value
=
"0"
/>
<
param
name
=
"BGColor"
/>
<
param
name
=
"SWRemote"
/>
<
param
name
=
"MovieData"
/>
<
param
name
=
"SeamlessTabbing"
value
=
"1"
/>
<
param
name
=
"Profile"
value
=
"0"
/>
<
param
name
=
"ProfileAddress"
/>
<
param
name
=
"ProfilePort"
value
=
"0"
/>
<
param
name
=
"AllowNetworking"
value
=
"all"
/>
<
param
name
=
"AllowFullScreen"
value
=
"false"
/>
</
object
>
If (RadGrid1.SelectedItems.Count > 0) Then
For Each item As GridDataItem In RadGrid1.SelectedItems
selectedWriters.Add(item("UserID").Text)
Next
Else
lErrorMsg.Text = "You must select at least on Writer."
Return
End If