Hello. I want to place RadPanelBar in the popup of RadGrid Item.
Until i use simple tables i can get the RadGrid Item Values by
But once i try to access fields values from inside the RadPanelBar - i cant get them no more
Relevant code:
1. RadGrid markup:
2. PopUp user control:
QuestionnaireID does not get value from grid.
Please Help
Thanks
Alon
Until i use simple tables i can get the RadGrid Item Values by
<%# DataBinder.Eval( Container, "DataItem.MyFieldName" ) %>
But once i try to access fields values from inside the RadPanelBar - i cant get them no more
Relevant code:
1. RadGrid markup:
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
GridLines
=
"None"
AllowPaging
=
"True"
CssClass
=
"RadGrid"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
ShowStatusBar
=
"True"
OnPreRender
=
"RadGrid1_PreRender"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
OnUpdateCommand
=
"RadGrid1_UpdateCommand"
OnInsertCommand
=
"RadGrid1_InsertCommand"
OnDeleteCommand
=
"RadGrid1_DeleteCommand"
AllowFilteringByColumn
=
"True"
Skin
=
"WebBlue"
ondatabound
=
"RadGrid1_DataBound"
onitemdatabound
=
"RadGrid1_ItemDataBound"
DataSourceID
=
"odsQuestions"
ondetailtabledatabind
=
"RadGrid1_DetailTableDataBind"
oneditcommand
=
"RadGrid1_EditCommand"
onitemcommand
=
"RadGrid1_ItemCommand"
onitemevent
=
"RadGrid1_ItemEvent"
>
<
HeaderContextMenu
EnableRoundedCorners
=
"True"
>
</
HeaderContextMenu
>
<
PagerStyle
AlwaysVisible
=
"True"
ShowPagerText
=
"False"
/>
<
MasterTableView
EditMode
=
"PopUp"
Width
=
"100%"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"QuestionIDunique"
DataSourceID
=
"odsQuestions"
ShowHeadersWhenNoRecords
=
"false"
>
<
CommandItemSettings
AddNewRecordText
=
"הוסף חדש"
RefreshText
=
"רענן"
/>
<
NoRecordsTemplate
>אין נתונים להצגה</
NoRecordsTemplate
>
<
Columns
>
<
telerik:GridBoundColumn
UniqueName
=
"QuestionIDunique"
HeaderText
=
"מס יחודי"
DataField
=
"QuestionIDunique"
DataType
=
"System.Int32"
ReadOnly
=
"True"
SortExpression
=
"QuestionIDunique"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"SerialQuestion"
HeaderText
=
"מס סידורי"
DataField
=
"SerialQuestion"
DataType
=
"System.Decimal"
SortExpression
=
"SerialQuestion"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"QuestionOfQuestionnaire"
HeaderText
=
"נוסח השאלה בשאלון"
DataField
=
"QuestionOfQuestionnaire"
SortExpression
=
"QuestionOfQuestionnaire"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"QuestionID"
HeaderText
=
"מס שאלה"
DataField
=
"QuestionID"
SortExpression
=
"QuestionID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridEditCommandColumn
CancelText
=
"בטל"
EditText
=
"ערוך"
InsertText
=
"הוסף"
UpdateText
=
"עדכן"
>
</
telerik:GridEditCommandColumn
>
</
Columns
>
<
EditFormSettings
CaptionDataField
=
"QuestionIDunique"
CaptionFormatString
=
"edit: {0} "
UserControlName
=
"UC/UCQuestionsDetails.ascx"
EditFormType
=
"WebUserControl"
PopUpSettings-Width
=
"900px"
PopUpSettings-Height
=
"300px"
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
>
</
EditColumn
>
<
PopUpSettings
Height
=
"300px"
Width
=
"900px"
modal
=
"True"
></
PopUpSettings
>
</
EditFormSettings
>
<
PagerStyle
AlwaysVisible
=
"True"
ShowPagerText
=
"false"
></
PagerStyle
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
telerik:RadPanelBar
ExpandMode
=
"SingleExpandedItem"
runat
=
"server"
id
=
"RadPanelBar1"
dir
=
"rtl"
style
=
"float: right;"
Height
=
"300px"
Width
=
"900px"
>
<
Items
>
<
telerik:RadPanelItem
Text
=
"header1"
Expanded
=
"True"
PreventCollapse
=
"True"
Selected
=
"True"
>
<
Items
>
<
telerik:RadPanelItem
>
<
ItemTemplate
>
<
div
id
=
"divQuestionDetails"
>
<
asp:FormView
ID
=
"fvQuestionDetails"
runat
=
"server"
DataSourceID
=
"odsQuestionDetails"
DefaultMode
=
"Edit"
>
<
EditItemTemplate
>
<
table
dir
=
"rtl"
>
<
tr
>
<
td
>
<
table
><
tr
>
<
td
> QuestionnaireId</
td
>
<
td
><
asp:TextBox
ID
=
"txtQuestionnaireId"
runat
=
"server"
Enabled
=
"false"
Text='<%# Bind("QuestionnaireID" ) %>'></
asp:TextBox
></
td
>
</
tr
></
table
>
</
td
>
<
td
>
QuestionnaireID does not get value from grid.
Please Help
Thanks
Alon