6 Answers, 1 is accepted
0

Elliott
Top achievements
Rank 2
answered on 21 Sep 2011, 07:35 PM
do you need to find them in code? on the client? after an event? on load?
be a lot more specific
be a lot more specific
0

mohamed
Top achievements
Rank 1
answered on 22 Sep 2011, 05:21 AM
Client and server side ,
Thanks,
Mohamed.
0

Elliott
Top achievements
Rank 2
answered on 22 Sep 2011, 02:50 PM
this is how to get the settings in the grid - but inside a textbox? this is a RADgrid posting area
could you post, like, code?
especially HTML
server side - assuming you have access to the grid in your code
grid name . MasterTableView.EditFormSettings. attribute name
probably something similar for client-side
could you post, like, code?
especially HTML
server side - assuming you have access to the grid in your code
grid name . MasterTableView.EditFormSettings. attribute name
probably something similar for client-side
0

mohamed
Top achievements
Rank 1
answered on 22 Sep 2011, 03:00 PM
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
Skin
=
"Office2007"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
GridLines
=
"None"
AutoCompleteType
=
"Disabled"
AllowFilteringByColumn
=
"True"
AllowPaging
=
"True"
AllowSorting
=
"True"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
OnItemCommand
=
"RadGrid1_ItemCommand"
OnItemDataBound
=
"RadGrid1_ItemDataBound"
OnItemCreated
=
"RadGrid1_ItemCreated"
>
<
ExportSettings
>
<
Pdf
PageHeight
=
"297mm"
PageWidth
=
"210mm"
/>
</
ExportSettings
>
<
GroupingSettings
CaseSensitive
=
"false"
/>
<
MasterTableView
AutoGenerateColumns
=
"False"
CommandItemDisplay
=
"Top"
EditMode
=
"PopUp"
IsFilterItemExpanded
=
"false"
EditFormSettings-PopUpSettings-Modal
=
"true"
>
<
CommandItemTemplate
>
<
telerik:RadToolBar
ID
=
"RadToolBar1"
runat
=
"server"
OnClientButtonClicking
=
"onToolBarClientButtonClicking"
OnButtonClick
=
"RadToolBar1_ButtonClick"
>
<
Items
>
<
telerik:RadToolBarButton
Text="<%$ Resources:FormName, Addnew %>" CommandName="InitInsert"
ImageUrl="../../images/AddRecord.gif" Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>'>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
Text="<%$ Resources:FormName, Filter %>" CommandName="Filter"
ImageUrl="../../images/Filter 3.gif">
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
Text="<%$ Resources:FormName, Refresh %>" CommandName="RebindGrid"
ImageUrl="../../images/Refresh.gif">
</
telerik:RadToolBarButton
>
</
Items
>
</
telerik:RadToolBar
>
</
CommandItemTemplate
>
<
PagerStyle
BackColor
=
"#D8EBFC"
Mode
=
"NextPrevNumericAndAdvanced"
/>
<
HeaderStyle
CssClass
=
"dataheadcolor"
/>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
></
CommandItemSettings
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
/>
<
telerik:GridNumericColumn
ReadOnly
=
"true"
DataField
=
"ProjectID"
HeaderText
=
"ProjectID"
SortExpression
=
"ProjectID"
UniqueName
=
"ProjectID"
MaxLength
=
"4"
HeaderStyle-Width
=
"80px"
Visible
=
"false"
>
<
HeaderStyle
Width
=
"80px"
></
HeaderStyle
>
</
telerik:GridNumericColumn
>
<
telerik:GridBoundColumn
DataField
=
"ProjectTitle"
HeaderText="<%$ Resources:FormName, ProjectCommon %>"
SortExpression="ProjectTitle" UniqueName="ProjectTitle" FilterControlWidth="100px"
HeaderStyle-Width="200px">
<
HeaderStyle
Width
=
"200px"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"clientname"
HeaderText="<%$ Resources:FormName, ClientCommon %>"
SortExpression="clientname" UniqueName="clientname" FilterControlWidth="100px"
HeaderStyle-Width="180px">
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"maincon"
HeaderText="<%$ Resources:FormName, MainConcommon %>"
SortExpression="maincon" UniqueName="maincon" FilterControlWidth="100px" HeaderStyle-Width="180px">
</
telerik:GridBoundColumn
>
<
telerik:GridDateTimeColumn
DataField
=
"DtCommencement"
HeaderText="<%$ Resources:FormName, DtofcommenCommon %>"
SortExpression="DtCommencement" UniqueName="DtCommencement" FilterControlWidth="80px"
HeaderStyle-Width="110" PickerType="DatePicker" DataFormatString=" {0:dd/MM/yyyy}">
</
telerik:GridDateTimeColumn
>
<
telerik:GridDateTimeColumn
DataField
=
"DtCompletion"
HeaderText="<%$ Resources:FormName, DtcompCommon %>"
SortExpression="DtCompletion" UniqueName="DtCompletion" FilterControlWidth="100px"
HeaderStyle-Width="100" PickerType="DatePicker" DataFormatString="{0:dd/MM/yyyy}">
</
telerik:GridDateTimeColumn
>
<
telerik:GridBoundColumn
DataField
=
"Duration"
HeaderText="<%$ Resources:FormName, DurationCommon %>"
SortExpression="Duration" UniqueName="Duration" FilterControlWidth="50px" HeaderStyle-Width="50px">
<
HeaderStyle
Width
=
"50px"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridNumericColumn
ReadOnly
=
"true"
DataField
=
"EstimateDistance"
HeaderText="<%$ Resources:ProjectMaster, EstimateDistance %>"
SortExpression="EstimateDistance" UniqueName="EstimateDistance" MaxLength="8"
FilterControlWidth="30px" HeaderStyle-Width="80px" Visible="true" DataType="System.Int32">
<
HeaderStyle
Width
=
"80px"
></
HeaderStyle
>
</
telerik:GridNumericColumn
>
<
telerik:GridNumericColumn
ReadOnly
=
"true"
DataField
=
"ContractAmount"
HeaderText="<%$ Resources:ProjectMaster, ContractAmount %>"
SortExpression="ContractAmount" UniqueName="ContractAmount" MaxLength="10" FilterControlWidth="30px"
HeaderStyle-Width="80px" Visible="true" DataType="System.Int32">
<
HeaderStyle
Width
=
"80px"
></
HeaderStyle
>
</
telerik:GridNumericColumn
>
<
telerik:GridButtonColumn
CommandName
=
"Delete"
ButtonType
=
"ImageButton"
UniqueName
=
"DeleteColumn"
CommandArgument
=
"Child"
ConfirmDialogType
=
"RadWindow"
ConfirmText
=
"Are You Sure Want To Delete This Record?"
ConfirmTitle
=
"Delete Confirm"
/>
</
Columns
>
<
EditFormSettings
CaptionFormatString
=
"Create"
EditFormType
=
"Template"
PopUpSettings-Width
=
"600"
PopUpSettings-Height
=
"425"
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
>
</
EditColumn
>
<
FormTemplate
>
<
div
style
=
"margin-left: 3%; margin-right: 3%;"
>
<
table
width
=
"100%"
>
<
tr
>
<
td
style
=
"height: 75px; width: 75%;"
>
<
table
style
=
"float: right;"
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
ForeColor
=
"Red"
Text
=
"*"
Width
=
"1px"
></
asp:Label
>
<
asp:Label
ID
=
"Label2"
Text
=
"Mandatory Field(s)"
runat
=
"server"
></
asp:Label
>
</
td
>
</
tr
>
</
table
>
<
br
/>
<
br
/>
<
section
class
=
"chunk"
>
<
fieldset
>
<
legend
class
=
"hd"
>
<
span
class
=
"text"
>
<%= Resources.FormName.FrmProjectMaster%>
</
span
>
</
legend
>
<
div
class
=
"bd"
>
<
table
cellspacing
=
"1"
cellpadding
=
"1"
width
=
"100%"
border
=
"0"
>
<
tr
>
<
td
>
<
asp:TextBox
Width
=
"100px"
ID
=
"ProjectID"
AutoCompleteType
=
"Disabled"
runat
=
"server"
Text='<%# Bind("ProjectID") %>' Visible="false"></
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label6"
runat
=
"server"
ForeColor
=
"Red"
Text
=
"*"
Width
=
"1px"
></
asp:Label
>
<
asp:Label
ID
=
"ProjectCod"
runat
=
"server"
Text="<%$ Resources:ProjectMaster, ProjectCod %>" ></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadTextBox
AutoCompleteType
=
"Disabled"
runat
=
"server"
MaxLength
=
"10"
onkeydown
=
"return (event.keyCode!=13);"
Text='<%# Bind("ProjectCode") %>' ID="ProjectCode" Width="40%"></
telerik:RadTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"height: 5px;"
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label5"
runat
=
"server"
ForeColor
=
"Red"
Text
=
"*"
Width
=
"1px"
></
asp:Label
>
<
asp:Label
ID
=
"ProjectTitl"
runat
=
"server"
Text="<%$ Resources:ProjectMaster, ProjectTitl %>" ></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadTextBox
AutoCompleteType
=
"Disabled"
runat
=
"server"
MaxLength
=
"50"
onkeydown
=
"return (event.keyCode!=13);"
Text='<%# Bind("ProjectTitle") %>' ID="ProjectTitle" Width="85%"></
telerik:RadTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"height: 5px;"
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label4"
runat
=
"server"
ForeColor
=
"Red"
Text
=
"*"
Width
=
"1px"
></
asp:Label
>
<
asp:Label
ID
=
"ClientNam"
runat
=
"server"
Text="<%$ Resources:FormName, ClientCommon %>" ></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"RadComboBox_Client"
runat
=
"server"
AutoPostBack
=
"true"
AppendDataBoundItems
=
"true"
DataTextField
=
"clientname"
DataValueField
=
"clientcode"
Width
=
"85%"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"height: 5px;"
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
ForeColor
=
"Red"
Text
=
"*"
Width
=
"1px"
></
asp:Label
>
<
asp:Label
ID
=
"MainContracto"
runat
=
"server"
Text="<%$ Resources:FormName, MainConcommon %>" ></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"RadComboBox_MainContractor"
runat
=
"server"
Width
=
"85%"
DataTextField
=
"clientname"
DataValueField
=
"clientcode"
AutoPostBack
=
"true"
AppendDataBoundItems
=
"true"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"height: 5px;"
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label7"
runat
=
"server"
ForeColor
=
"Red"
Text
=
"*"
Width
=
"1px"
></
asp:Label
>
<
asp:Label
ID
=
"DateofCommence"
runat
=
"server"
Text="<%$ Resources:FormName, DtofcommenCommon %>" ></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadDatePicker
ID
=
"DateofCommencement"
AutoCompleteType
=
"Disabled"
runat
=
"server"
DbSelectedDate='<%# Bind("DtCommencement") %>' onkeydown = "return (event.keyCode!=13);">
<
DateInput
ID
=
"DateInput1"
DateFormat
=
"dd/MM/yyyy"
runat
=
"server"
>
</
DateInput
>
<
ClientEvents
OnDateSelected
=
"DateSelected"
/>
</
telerik:RadDatePicker
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"height: 5px;"
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label8"
runat
=
"server"
ForeColor
=
"Red"
Text
=
"*"
Width
=
"1px"
></
asp:Label
>
<
asp:Label
ID
=
"Duratin"
runat
=
"server"
Text="<%$ Resources:FormName, DurationCommon %>" ></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadNumericTextBox
ID
=
"Duration"
runat
=
"server"
DbValue='<%# DataBinder.Eval(Container.DataItem, "Duration") %>'
InvalidStyleDuration="100" Type="Number" LabelCssClass="radLabelCss_Web20" Skin="Telerik" onkeydown = "return (event.keyCode!=13);"
MaxLength="4" Width="40%" Style="text-align: right" Font-Size="8pt">
<
NumberFormat
AllowRounding
=
"false"
DecimalDigits
=
"0"
/>
<
FocusedStyle
BorderColor
=
"Red"
BorderStyle
=
"Double"
/>
<
HoveredStyle
BorderColor
=
"Red"
BorderStyle
=
"Double"
/>
<
ClientEvents
OnKeyPress
=
"NoDecimal"
/>
</
telerik:RadNumericTextBox
>
<
asp:Label
runat
=
server
Text
=
"Days"
></
asp:Label
>
<%--<
telerik:RadComboBox
ID
=
"DurationInMWD"
runat
=
"server"
Width
=
"70px"
Skin
=
"Vista"
SelectedValue='<%# Bind("DurationInMWD") %>'>
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"Days"
Value
=
"Days"
/>
<
telerik:RadComboBoxItem
Text
=
"Weeks"
Value
=
"Weeks"
/>
<
telerik:RadComboBoxItem
Text
=
"Months"
Value
=
"Months"
/>
</
Items
>
</
telerik:RadComboBox
>--%>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"height: 5px;"
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label10"
runat
=
"server"
ForeColor
=
"Red"
Text
=
"*"
Width
=
"1px"
></
asp:Label
>
<
asp:Label
ID
=
"DateofCompletin"
runat
=
"server"
Text="<%$ Resources:FormName, DtcompCommon %>" ></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadDatePicker
ID
=
"DateofCompletion"
AutoCompleteType
=
"Disabled"
runat
=
"server"
DbSelectedDate='<%# Bind("DtCompletion") %>' onkeydown = "return (event.keyCode!=13);">
<
DateInput
ID
=
"DateInput2"
DateFormat
=
"dd/MM/yyyy"
runat
=
"server"
>
</
DateInput
>
</
telerik:RadDatePicker
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"height: 5px;"
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label9"
runat
=
"server"
ForeColor
=
"Red"
Text
=
"*"
Width
=
"1px"
></
asp:Label
>
<
asp:Label
ID
=
"TotalEstimatedDist"
runat
=
"server"
Text="<%$ Resources:ProjectMaster, TotalEstimatedDist %>" ></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadNumericTextBox
ID
=
"TotalEstimatedDistance"
runat
=
"server"
DbValue='<%# DataBinder.Eval(Container.DataItem, "EstimateDistance") %>'
InvalidStyleDuration="100" Type="Number" LabelCssClass="radLabelCss_Web20" Skin="Telerik" onkeydown = "return (event.keyCode!=13);"
MaxLength="4" Width="40%" Style="text-align: right" Font-Size="8pt">
<
NumberFormat
AllowRounding
=
"false"
DecimalDigits
=
"0"
/>
<
FocusedStyle
BorderColor
=
"Red"
BorderStyle
=
"Double"
/>
<
HoveredStyle
BorderColor
=
"Red"
BorderStyle
=
"Double"
/>
<
ClientEvents
OnKeyPress
=
"NoDecimal"
/>
</
telerik:RadNumericTextBox
> Meters
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"height: 5px;"
>
</
td
>
</
tr
>
<
tr
>
<
td
>
Contract Amount (SGD $)
</
td
>
<
td
>
<
telerik:RadNumericTextBox
ID
=
"ContractAmount"
runat
=
"server"
DbValue='<%# DataBinder.Eval(Container.DataItem, "ContractAmount") %>'
InvalidStyleDuration="100" Type="Number" LabelCssClass="radLabelCss_Web20" Skin="Telerik" onkeydown = "return (event.keyCode!=13);"
MaxLength="8" Width="40%" Style="text-align: right" Font-Size="8pt">
<
NumberFormat
AllowRounding
=
"false"
DecimalDigits
=
"0"
/>
<
FocusedStyle
BorderColor
=
"Red"
BorderStyle
=
"Double"
/>
<
HoveredStyle
BorderColor
=
"Red"
BorderStyle
=
"Double"
/>
<
ClientEvents
OnKeyPress
=
"NoDecimal"
/>
</
telerik:RadNumericTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"height: 5px;"
>
</
td
>
</
tr
>
</
table
>
</
div
>
</
fieldset
>
</
section
>
</
td
>
</
tr
>
</
table
>
<
center
>
<
table
>
<
tr
>
<
td
>
<
telerik:RadButton
ID
=
"Button3"
runat
=
"server"
Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
Icon-PrimaryIconCssClass="rbOk">
</
telerik:RadButton
>
<
telerik:RadButton
ID
=
"Button4"
runat
=
"server"
Text
=
"Cancel"
CausesValidation
=
"false"
CommandName
=
"Cancel"
Icon-PrimaryIconCssClass
=
"rbCancel"
>
</
telerik:RadButton
>
</
td
>
</
tr
>
</
table
>
</
center
>
</
div
>
</
FormTemplate
>
<
PopUpSettings
Modal
=
"True"
></
PopUpSettings
>
</
EditFormSettings
>
</
MasterTableView
>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"True"
EnableDragToSelectRows
=
"True"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
This's My code ,
reply soon ,
getting like that in server this type also error comes
RadGrid1.MasterTableView.EditFormSettings.FormTemplate
Thanks,
Mohamed.
0

Elliott
Top achievements
Rank 2
answered on 22 Sep 2011, 03:16 PM
what are you trying to do - and what are the error(s) you are getting?
are you trying to access ContractAmount after clicking an Update button, for instance
are you trying to access ContractAmount after clicking an Update button, for instance
0

mohamed
Top achievements
Rank 1
answered on 23 Sep 2011, 05:06 AM
I'm going to checknull function ,
private void Checknull()
{
// I want to find editformsettings fields in this function
}
and some other form i'm going calculate ,
i give one date and then one int field , ex (01/01/2011) , (5)days it 's come like 06/01/2011
that kind of calculation also check
Thanks,
Mohamed.