event. The default value is empty string.
If specified, the OnValueChanged
event handler that is called
when the value of the slider has been changed. Two parameters are passed to the handler:sender, the RadSlider object.args.This event cannot be cancelled.
The following example demonstrates how to use the
OnValueChanged property.
Raises the ItemDataBound event. This event is raised per item for a Data-Bound RadSlider.
Event arguments instance containing a reference to the currently bound item
Binds the Slider control to a IEnumerable data source
IEnumerable data source
Creates a Slider item based on the data item object.
Adds HTML attributes and styles that need to be rendered to the specified . This method is used primarily by control developers.
A that represents the output stream to render HTML content on the client.
The Enabled property is reset in AddAttributesToRender in order
to avoid setting disabled attribute in the control tag (this is
the default behavior). This property has the real value of the
Enabled property in that moment.
Get/Set the value of the slider
Get/Set the position value of the slider, from where the selection region will begin
Gets or sets the value of RadSlider in a database-friendly way.
A Decimal object that represents the value.
The default value is 0m.
The following example demonstrates how to use the DbValue
property to set the value of RadSlider.
private void Page_Load(object sender, System.EventArgs e)
{
RadSlider1.DbValue = tableRow["SliderValue"];
}
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
RadSlider1.DbValue = tableRow("SliderValue")
End Sub
This property behaves exactly as the Value property.
The only difference is that it will not throw an exception if the new value is null or
DBNull. Setting a null value will revert the selected value to 0m.
Get/Set the SelectionStart of the slider
Get/Set the SelectionEnd of the slider
Get/Set the IsSelectionRangeEnabled of the slider
Get/Set the EnableDragRange of the slider
Get/Set the IsDirectionReversed of the slider
Get/Set the LiveDrag of the slider
Get/Set the ItemType of the slider items
Get/Set the TrackPosition of the slider track
Get/Set orientation of the slider
Get/Set the step with which the slider value will change
Get/Set the delta with which the value will change
when user click on the track
Get/Set the length of the animation
Get/Set the length of the slider including the decrease and increase handles.
If the slider is horizontal the width will be set, otherwise the height will be set.
Get/Set the Width of the slider including the decrease and increase handles.
Get/Set the Height of the slider including the decrease and increase handles.
True to cause a postback on value change.
Get/Set the min value of the slider
Get/Set the max value of the slider
Enable/Disable whether the mouse wheel should be handled
Show/Hide the drag handle
Show/Hide the decrease handle
Show/Hide the increase handle
Gets or sets the text for the decrease handle
Gets or sets the text for the increase handle
Gets or sets the text for the increase handle
Gets or sets a value, indicating whether the HTML of the control will be output from the server or created with client-side code.
Get/Set the InteractionMode of the slider thumbs
Gets/Sets a value indicating whether the DataBound items should be appended to the Slider Items collection, or the collection
should be cleared before creating the DataBound items.
Gets the object through which the user should provide the binding information about the slider items.
Gets or sets a value indicating the client-side event handler that is called when
the RadSlider control is initialized.
A string specifying the name of the JavaScript function that will handle the
event. The default value is empty string.
Two parameters are passed to the handler:sender, the RadSlider object.args.This event cannot be cancelled.
The following example demonstrates how to use the
OnClientLoad property.
<script type="text/javascript">
function OnClientLoad(sender, args)
{
var slider = sender;
}
</script>
Gets or sets a value indicating the client-side event handler that is called before
the sliding is started.
A string specifying the name of the JavaScript function that will handle the
event. The default value is empty string.
If specified, the OnClientSlideStart
client-side event handler is called before
the sliding is started. Two parameters are passed to the handler:sender, the RadSlider object.args.This event cannot be cancelled.
The following example demonstrates how to use the
OnClientSlideStart property.
<script type="text/javascript">
function OnSlideBeginHandler(sender, args)
{
var slider = sender;
}
</script>
Gets or sets a value indicating the client-side event handler that is called
while the handle is being slided.
A string specifying the name of the JavaScript function that will handle the
event. The default value is empty string.
If specified, the OnClientSlide
client-side event handler that is called
while the handle is being slided. Two parameters are passed to the handler:sender, the RadSlider object.args.This event cannot be cancelled.
The following example demonstrates how to use the
OnClientSlide property.
<script type="text/javascript">
function the specified interface.
The zero-based starting index of the range
of elements to sort.
The number of elements to sort.
The implementation to use when comparing elements.-or-A null reference to use the implementation
of each element. and do not denote a
valid range of elements in the . is less than zero.-or- is less than zero.Please refer to for details.
Returns a CalendarView object depending on the passed index.
Only integer and string indexes are valid.
Gets or sets the parent(owner) calendar.
The parent(owner) calendar.
Collection containing dates of type .
Used in Date Selection functionality
DateTimeCollection constructor.
Used in Date Selection functionality
DateTimeCollection constructor.
Used in Date Selection functionality
Adds a DateTime object to the collection of CalendarDays.
The RadDate object to add to the collection.
Returns a zero based index of a DateTime object depending on the passed index.
The zero-based index, DateTime object or the date represented by the searched DateTime object.
A zero based index of the DateTime object in the collection, or -1 if the DateTime object is not found.
Adds a DateTime object in the collection at the specified index.
The index after which the DateTime object is inserted.
The DateTime object to insert.
Deletes a DateTime object from the collection.
The DateTime object to remove.
Deletes the DateTime object from the collection at the specified index.
The index in collection at which the DateTime object will be deleted.
Removes all DateTime objects in the collection of CalendarDays.
Checks whether a specific DateTime object is in the collection of CalendarDays.
The DateTime object to search.
True if the DateTime is found, false otherwise.
Copies all elements of the Array to the specified
one-dimensional starting at the specified destination index. The
index is specified as a 32-bit integer.
The one-dimensional that is the destination
of the elements copied from the current .
A 32-bit integer that represents the index in array at which copying begins.
Copies all elements of the Array to the specified
one-dimensional .
The one-dimensional that is the destination
of the elements copied from the current .
Copies all the elements of the current one-dimensional to the specified
one-dimensional starting at the specified destination index. The
index is specified as a 32-bit integer.
The one-dimensional that is the destination
of the elements copied from the current .
A 32-bit integer that represents the index in array at which copying begins.
Clones the inner collection.
Clones the instance.
Reverses the order of the elements in the entire collection.
Please refer to for details.
Copies the elements of DateTimeCollection to a new
of elements.
A one-dimensional of
elements containing copies of the elements of the .Please refer to for details.
Selects a range of dates from start to end date.
The From date.
The To date.
Removes a range of elements from the .
The zero-based starting index of the range of elements to remove.
The number of elements to remove.
Adds the elements of the specified collection to the end of the .
The collection whose elements should be added
to the end of the .
Sorts the elements in the or a portion of it.
Sorts the elements in the entire
using the implementation of each element.
Please refer to for details.
Sorts the elements in the entire
using the specified interface.
The implementation to use when comparing elements.-or-A null reference to use the implementation
of each element.Please refer to for details.
Sorts the elements in the specified range
using the specified interface.
The zero-based starting index of the range
of elements to sort.
The number of elements to sort.
The implementation to use when comparing elements.-or-A null reference to use the implementation
of each element. and do not denote a
valid range of elements in the . is less than zero.-or- is less than zero.Please refer to for details.
Returns a DateTime object depending on the passed index.
Only integer and string indexes are valid.
Gets or sets the parent controls.
The parent controls.
Exception message constants. For internal use only.
For internal use only.
Returns a that represents the current
.
A that represents the current .
Returns a collection of custom attributes for this instance of a component.
An containing
the attributes for this object.
Returns the class name of this instance of a component.
The class name of the object, or null if the class does not have a name.
Returns the name of this instance of a component.
The name of the object, or null if the object does not have a name.
Returns a type converter for this instance of a component.
A that is the converter
for this object, or null if there is no
for this object.
Returns the default event for this instance of a component.
An that represents
the default event for this object, or null if this object does not have events.
Returns the default property for this instance of a component.
A that represents
the default property for this object, or null if this object does not have properties.
Returns an editor of the specified type for this instance of a component.
A that represents the
editor for this object.
An of the specified type that is the editor
for this object, or null if the editor cannot be found.
Returns the events for this instance of a component.
An that
represents the events for this component instance.
Returns the events for this instance of a component using the specified
attribute array as a filter.
An array of type that
is used as a filter.
An that
represents the filtered events for this component instance.
Returns the properties for this instance of a component.
A
that represents the properties for this component instance.
Returns the properties for this instance of a component using the attribute
array as a filter.
An array of type that
is used as a filter.
A
that represents the filtered properties for this component instance.
Returns an object that contains the property described by the specified
property descriptor.
A that
represents the property whose owner is to be found.
An that represents the owner of the specified
property.
When the
ShowColumnHeaders
and/or
ShowRowHeaders
properties are set to true, the UseRowHeadersAsSelectors property
specifies whether to use the number of the week, which overrides the used text/image
selector if any.
When the
ShowColumnHeaders
and/or
ShowRowHeaders
properties are set to true, the UseColumnHeadersAsSelectors property specifies
whether to use the days of the week, which overrides the used text/image header if
any.
Gets or sets a value indicating whether the Web server control is enabled.
true if control is enabled; otherwise, false. The default is true.
Gets or sets default path for the grid images when EnableEmbeddedSkins is set to false.
A string containing the path for the grid images. The default is string.Empty.
A control which ensures the date entered by the user is verified and
accurate.
The following example demonstrates how to dynamically add
RadDateInput to the page.
private void Page_Load(object sender, System.EventArgs e)
{
RadDateInput dateInput = new RadDateInput();
dateInput.ID = "dateInput";
dateInput.Format = "d"; //Short date format
dateInput.Culture = new CultureInfo("en-US");
dateInput.SelectedDate = DateTime.Now;
DateInputPlaceholder.Controls.Add(dateInput);
}
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dateInput As New RadDateInput()
dateInput.ID = "dateInput"
dateInput.Format = "d" 'Short Date Format
dateInput.Culture = New CultureInfo("en-US")
dateInput.SelectedDate = DateTime.Now
DateInputPlaceholder.Controls.Add(dateInput)
End Sub
You need to set the DateFormat Property to specify the
relevant format for the date. You can also specify the culture information by
setting the Culture Property.
A control which ensures the date entered by the user is verified and
accurate.
The following example demonstrates how to dynamically add
RadDateInput to the page.
private void Page_Load(object sender, System.EventArgs e)
{
RadDateInput dateInput = new RadDateInput();
dateInput.ID = "dateInput";
dateInput.Format = "d"; //Short date format
dateInput.Culture = new CultureInfo("en-US");
dateInput.SelectedDate = DateTime.Now;
DateInputPlaceholder.Controls.Add(dateInput);
}
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dateInput As New RadDateInput()
dateInput.ID = "dateInput"
dateInput.Format = "d" 'Short Date Format
dateInput.Culture = New CultureInfo("en-US")
dateInput.SelectedDate = DateTime.Now
DateInputPlaceholder.Controls.Add(dateInput)
End Sub
You need to set the DateFormat Property to specify the
relevant format for the date. You can also specify the culture information by
setting the Culture Property.
The RadInputControl control is the base for all Telrik RadInput controls.
, ,
, ,
The RadInputControl control is the base for all Telrik RadInput controls.
, ,
, ,
Sets input focus to a RadInput.Use the Focus method to set the initial focus of the Web page to the
RadInput. The page will be opened in the browser with the control
selected.The Focus method causes a call to the page focus script to be emitted on the
rendered page. If the page does not contain a control with an HTML ID attribute
that matches the control that the Focus method was invoked on, then page focus will
not be set. An example where this can occur is when you set the focus on a user
control instead of setting the focus on a child control of the user control. In
this scenario, you can use the FindControl method to find the child control of the
user control and invoke its Focus method.Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media
Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP
Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft
Windows XP SP2, and Windows Server 2003 SP1..NET Framework
Supported in: 3.0, 2.0, 1.1, 1.0
Gets or sets the single input rendering mode which renderes only two main HTML elements
on the page, instead of two or three (depending on the specific RadInput) which are
rendered in the non-single mode of the controls.
The single input rendering mode which renderes only two main HTML elements
on the page, instead of two or three (depending on the specific RadInput) which are
rendered in the non-single mode of the controls.
Occurs after all child controls of the RadDateInput control have been created.
You can customize the control there, and add additional child controls.
Gets or sets the text of the
A string used as a label for the control. The default value is empty string
("").
If the value of this property has not been set, a tag will not be rendered. Keep
in mind that accessibility standards require labels for all input controls.
Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media
Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP
Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft
Windows XP SP2, and Windows Server 2003 SP1.
Filtering">
Gets or sets if range filtering is enabled for the column
Gets or sets if only date portion of the date is taken in effect when filtering
Enumeration determining whether a or a
will be used in the instance.
Here is the mechanism which Telerik RadGrid uses to present
values for GridDropDownColumn. Consider the snippet below:<radg:GridDropDownColumn
UniqueName="LevelID" ListDataMember="Level" ListTextField="Description" ListValueField="LevelID"
HeaderText="LevelID" DataField="LevelID"
/>
As you can see, a requirement for the proper functioning of
GridDropDownColumn is that all column
values referenced by the DataField
attribute match the column values referenced by the
ListValueField attribute.
If there are values in the LevelID column of the LevelID table which do not
have corresponding equal values in the LevelID column of the Level table, then
the grid will display the default first value from the Description column as it
will not "know" what is the correct field.
Displays a DropDown control for each item in the column. This allows you
to edit for example lookup field(s) from data table(s).
Grid column typesGrid Column typesAdding columns design-timeUsing columns
Calculate the default Group-by expression based on the settings of the
DataField (if available)
For example, if a column's DataField is ProductType the default group-by expression will be:
'ProductType Group By ProductType'
This method should be used in case you develop your own column. It returns the
full list of DataFields used by the column.
GridTableView uses this to decide which DataFields
from the specified DataSource will be inlcuded in case of
GridTableView.RetrieveAllDataFields is set to
false.
Creates a copy of the current column.
Note: When implementing/overriding this method be sure to call
the base member or call CopyBaseProperties to be sure that all base
properties will be copied accordingly
Gets or sets the drop down control DataTextFormatString value.
The drop down control DataTextFormatString value.The ListDataMember property points to the data table (part
of the dataset used for grid data-source) which is the source for the
GridDropDownColumn generation.
A string, specifying the ID of the datasource control, which will be used to
populate the dropdown with data.
A string, specifying the ID of the datasource control,
which will be used to populate the dropdown with data.
The ListTextField points to the column in the data table
from which the grid will extract the values for the dropdown.The ListValueField points to the column in the data table
which will be used as a pointer to retrieve the items for the dropdown in the
GridDropDownColumn.
Gets a reference to the object that
allows you to set the properties associated with the columns' validation base on autogenerated validators.
The DataField property points to the column in the grid
data-source containing values which will be compared at a later stage with the
values available in the column, referenced by the
%ListValueField:ListValueField% property.
Gets or sets a value indicating whether automatic load-on-demand
is enabled for the RadComboBox editor of this column.
Gets or sets a value indicating whether the RadComboBox editor
displays a More Results box. Setting this property to true requires
AllowAutomaticLoadOnDemand to be set to true.
Gets or sets a value indicating whether virtual scrolling is enabled
for RadComboBox editor. Setting this property to true requires
AllowAutomaticLoadOnDemand to be set to true
Gets or sets the number of Items the RadComboBox editor will load per Item request.
This property requires EnableAutomaticLoadOnDemand to be set to true.
Set this property to -1 to load all Items when AllowAutomaticLoadOnDemand is set to true
and disable Virtual Scrolling/Show More Results. The default is -1.
A Boolean value, indicating whether the dropdown column will be bound to a
default value/text when there is no data source specified, from which to fetch the
data.
A Boolean value, specifying whether the dropdown column
accepts EmptyListItemText and EmptyListItemValue strings.
A string, specifying the text to be displayed in normal mode, when there is no
Data Source specified for the column. In edit mode, this value is rendered as a
dropdown list item. When in edit mode, and there is a valid DataSource specified for
the control, this value is appended as the first item of the dropdown box.
A string, specifying the text to be displayed in
normal/edit mode, when there is no Data Source specified for the column.
A string value, representing the value, associated with the
.
A string value, representing the value, associated with
the .
Gets or sets the type of the dropdown control associated with the column.
Returns a value from the GridDropDownColumnControlType enumeration; default value is RadComboBox.
A Boolean value, indicating whether a dropdown column is editable. If it is
editable, it will be represented as an active dropdown box in edit mode.
A Boolean value, indicating whether a dropdown column
is editable.
Force RadGrid to extract values from EditableColumns that are ReadOnly.
See also the method.
No values would be extracted from ReadOnly column
Values will be extracted only when an item is NOT in edit mode
Values will be extracted only when an item is in edit mode
Values will be extracted in all cases.
Initially only the [Edit] button is shown. When it is pressed, the [Update] and
[Cancel] appear at its place and the cells on this row become editable.
Grid column typesWeb Grid
Grid Column typesAdding columns design-timeUsing columns
Creates a copy of the current column.
Note: When implementing/overriding this method be sure to call
the base member or call CopyBaseProperties to be sure that all base
properties will be copied accordingly
Gets the value determining if the column is selectable.
The value determining if the column is selectable.
Gets or sets a value indicating what type of buttons will be used in the
GridEditCommandColumn items.
Gets or sets a string representing the text that will be used for the Cancel
button, in the Edit/Insert form.
string, representing the text that will be used for the Cancel button.string, representing the text that will be used for the Edit button.
Gets or sets a string, representing the text of the edit linkbutton, which is
located in the GridEditCommandColumn, and which will replace the default "Edit"
text.
A string, representing the text that will be used for
the Update button.
Gets or sets a string, representing the text that will be used for the Update
button.
A string, representing the text that will be used for
the Insert button.
Gets or sets a string, representing a text, which will be displayed instead of
the default "Insert" text for the GridEditFormInsertItem item.
Gets or sets the URL for the image that will be used to fire the Insert command.
This property should be used in conjunction with ButtonType set to
ImageButton.
string, representing the URL of the image that is used.
Gets or sets the URL for the image that will be used to fire the Update command.
This property should be used in conjunction with set
to ImageButton.
string, representing the URL of the image that is used.
A string, representing the URL of the image that is
used.
Gets or sets the URL for the image that will be used to fire the Edit command.
This property should be used in conjunction with ButtonType set to
ImageButton.
A string, representing the url path to the image that will be used instead of the
default cancel linkbutton, in the EditForm.
A string, representing the url path to the image that
will be used instead of the default cancel linkbutton, in the EditForm.
Gets or sets a unique name for this column. The unique name can be used to
reference particular columns, or cells within grid rows.
A string, representing the Unique name of the
column.
Enumeration determining the type of button to be used in the .
button.
button.
button.
button.
This column appears when the grid has a hierarchical structure, to facilitate the
expand/collapse functionality. The expand column is always placed in front of all other
grid content columns and can not be moved.
Column TypesHow to hide images of ExpandCollapse column when no records
Creates a copy of the current column.
Note: When implementing/overriding this method be sure to call
the base member or call CopyBaseProperties to be sure that all base
properties will be copied accordingly
Gets the value determining if the column is selectable.
The value determining if the column is selectable.
Gets or Sets the text value which should be added to alt attribute of the filter control
Gets or sets a string, specifying the URL to the image, which will be used
instead of the default Expand image for the GridGroupSplitterColumn (the plus
sign).
A string, specifying the URL to the image, which will
be used instead of the default Expand image for the GridGroupSplitterColumn
Gets or sets a string, specifying the URL to the image, which will be used
instead of the default Collapse image for the GridGroupSplitterColumn (the minus
sign).
A string, specifying the URL to the image, which will
be used instead of the default Collapse image for the GridGroupSplitterColumn
Gets a Telerik.Web.UI.GridExpandColumnType value, indicating the type of the
button. The button of the GridExpandColumn is by default of type SpriteButton.
A Telerik.Web.UI.GridExpandColumnType value, indicating the type of the
button.
Gets or sets a string, specifying the Unique name of the column. The default value
is "ExpandColumn".
function
GridCreated() {
}
A string, specifying the Unique name of the
column.
Gets a Boolean value indicating whether the
GridGroupSplitterColumn is groupable. This value is always false.
Gets a Boolean value indicating whether the
GridGroupSplitterColumn is groupable.
Gets a Boolean value, indicating whether the GridExpandColumn is reorderable.
This value is always false, due to the specificity of the column, which should always
be positioned first.
A Boolean value, indicating whether the
GridExpandColumn is reorderable.
Gets a Boolean value, indicating whether the GridExpandColumn is resizable.
This value is always false, due to the specificity of the column, which should always
be positioned first.
A Boolean value, indicating whether the
GridExpandColumn is resizable.
Gets a Boolean value, indicating whether the GridExpandColumn is visible.
This value is always false, due to the specificity of the column.
A Boolean value, indicating whether the
GridExpandColumn is visible.
Gets or sets a string, representing the CommandName of the GridExpandColumn. The
command name's default value is "ExpandCollapse". It can be used to determine the
type of command in the ItemCommand event handler.
function
GridCreated() {
}
A string, representing the CommandName of the
GridExpandColumn.
This column appears when grouping is enabled, to facilitate the expand/collapse
functionality. The group splitter column is always placed first and can not be
moved.
Grid Column typesGrouping demo with GridGroupSplitterColumn
Creates a copy of the current column.
Note: When implementing/overriding this method be sure to call
the base member or call CopyBaseProperties to be sure that all base
properties will be copied accordingly
Gets the value determining if the column is selectable.
The value determining if the column is selectable.
Gets or sets a string, specifying the URL to the image, which will be used
instead of the default Expand image for the GridGroupSplitterColumn (the plus
sign).
A string, specifying the URL to the image, which will
be used instead of the default Expand image for the GridGroupSplitterColumn
Gets or sets a string, specifying the URL to the image, which will be used
instead of the default Collapse image for the GridGroupSplitterColumn (the minus
sign).
A string, specifying the URL to the image, which will
be used instead of the default Collapse image for the GridGroupSplitterColumn
Gets a Boolean value indicating whether the
GridGroupSplitterColumn is groupable. This value is always false.
Gets a Boolean value indicating whether the
GridGroupSplitterColumn is groupable.
This property is for internal usage.An enumeration, used to get/set the button type of the headers of the
columns. The default value is LinkButton. The possible values are:LinkButtonPushButtonTextButtonIf set to a value other than LinkButton, the property is only honored when
sorting is enabled.
Each row in a Hyperlink column will contain a predefined
hyperlink. This link is not the same for the whole column and can be defined for each
row individually.
Grid column typesThe content of the column can be bound to a field in a data source or to a
static text. You can customize the look of the links by
using
CSS classes.You can set multiple fields to a GridHyperlinkColumn through
its DataNavigateUrlFields property. These fields can later be used
when setting the DataNavigateUrlFormatString property and be part
of a query string:
Grid Column typesAdding columns design-timeUsing columns
This method should be used in case you develop your own column. It returns true
if the column supports filtering.
Returns if the column supports filtering.
Calculate the default Group-by expression based on the settings of the
DataField (if available)
For example, if a column's DataField is ProductType the default group-by expression will be:
'ProductType Group By ProductType'
This method returns true if the column is bound to the specified field
name.
The name of the DataField, which will be checked.
Determines whether [is bound to field name] [the specified URL fields].
The URL fields.
The name.
This method should be used in case you develop your own column. It returns the
full list of DataFields used by the column.
GridTableView uses this to decide which DataFields
from the specified DataSource will be inlcuded in case of
GridTableView.RetrieveAllDataFields is set to
false.
Creates a copy of the current column.
Note: When implementing/overriding this method be sure to call
the base member or call CopyBaseProperties to be sure that all base
properties will be copied accordingly
Returns the DataField that will be used for Filter and Sorting operations
Gets or sets a string, representing a comma-separated enumeration of DataFields
from the data source, which will form the url of the windwow/frame that the hyperlink
will target.
A string, representing a comma-separated enumeration of
DataFields from the data source, which will form the url of the windwow/frame that the
hyperlink will target.
Gets or sets a string, specifying the FormatString of the DataNavigateURL.
Essentially, the DataNavigateUrlFormatString property sets the formatting for the url
string of the target window or frame.
A string, specifying the FormatString of the
DataNavigateURL.
Gets or sets a string, representing the DataField name from the data source,
which will be used to supply the text for the hyperlink in the column. This text can
further be customized, by using the DataTextFormatString property.
A string, representing the DataField name from the data
source, which will be used to supply the text for the hyperlink in the column.
Gets or sets a string, specifying the format string, which will be used to format
the text of the hyperlink, rendered in the cells of the column.
A string, specifying the format string, which will be
used to format the text of the hyperlink, rendered in the cells of the column.
Gets or sets a string, specifying the url, to which to navigate, when a hyperlink
within a column is pressed. This property will be honored only if the
DataNavigateUrlFields are not set. If either
DataNavigateUrlFields are set, they will override the
NavigateUrl property.
A a string, specifying the url, to which to navigate,
when a hyperlink within a column is pressed.
Gets or sets a value specifying the ImageUrl property of the HyperLink control
rendered in every data cell of the GridHyperLinkColumn.
Sets or gets a string, specifying the window or frame at which to target
content. The possible values are:_blank - the target URL will open in a new window
_self - the target URL will open in the same frame as it was clicked
_parent - the target URL will open in the parent frameset
_top - the target URL will open in the full body of the window
A string, specifying the window or frame at which to
target content.
Gets or sets a string, specifying the text to be displayed by the hyperlinks in
the column, when there is no DataTextField specified.
A string, specifying the text to be displayed by the
hyperlinks in the column, when there is no DataTextField specified.
Gets or sets whether the column data can be filtered. The default value is
true.
A Boolean value, indicating whether the column can be
filtered.
Gets or sets a whether the column data can be sorted.
A boolean value, indicating whether the column data can
be sorted.
Displays each item in the column in accordance with a specified templates (item,
edit item, header and footer templates). This allows you to provide custom controls in
the column.
Grid column types
Grid Column typesAdding columns design-timeUsing columnsCustomizing with GridTemplateColumnPersisting CheckBox control state in GridTemplateColumn on RebindYou can view and set templates using the Edit Templates command in grid's
Smart Tag.You can also create the template columns programmatically and bind the
controls in the code-behind (see
Programmatic creation of
Telerik RadGrid).Note: Unlike other grid columns, GridTemplateColumn cannot
be set as read-only.Programmatic creation
This method should be used in case you develop your own column. It returns true
if the column supports filtering.
This method returns true if the column is bound to the specified field
name.
The name of the DataField, which will be checked.
This method should be used in case you develop your own column. It returns the
full list of DataFields used by the column.
GridTableView uses this to decide which DataFields
from the specified DataSource will be inlcuded in case of
GridTableView.RetrieveAllDataFields is set to
false.
Creates a copy of the current column.
Note: When implementing/overriding this method be sure to call
the base member or call CopyBaseProperties to be sure that all base
properties will be copied accordingly
Extracts the values from the editedItem and fills the names/values pairs for each data-field edited by the column in the newValues dictionary.
dictionary to fill. This param should not be null (Nothing in VB.NET)
the GridEditableItem to extract values from
Gets or sets a string, specifying which DataField from the data source the
control will use to handle the automatic filtering.
A string, specifying which DataField from the data
source the control will use to handle the automatic filtering.
Gets or sets the field name from the specified data source to bind to the
GridTemplateColumn.
A string, specifying the data field from the data
source, from which to bind the column.
Sets or gets the format string for the footer/group footer aggregate.
The format string for the footer/group footer aggregate.
Gets or sets the HTML template of a
item when using client-side databinding.
Gets or sets the ItemTemplate, which is rendered in the control in edit mode.
A value of type ITemplate
Gets or sets the ItemTemplate, which is rendered in the control in insert mode.
A value of type ITemplate
Gets or sets the template, which will be rendered in the footer of the template
column.
A value of type ITemplate.
Gets or sets the template, which will be rendered in the header of the template
column.
A value of type ITemplate.
Gets or sets the ItemTemplate, which is rendered in the control in normal
(non-Edit) mode.
A value of type ITemplate
Gets a Boolean value, indicating whether the column is editable. If a template
column is editable, it will render the contents of the EditItemTemplate in the edit
form or InsertItemTemplate, if such defined, in the insert form.
If there are no contents in the EditItemTemplate or InsertItemTemplate, the column will not be
editable.
A Boolean value, indicating whether the column is
editable.
Set to false if templates should overwrite other controls in header cell (sort image, etc)
A base class holding properties for all event arguments related with changing the
data. Examples: , ,
.
Gets the rows affected from the operation that changed the data.
The rows affected from the operation that changed the data.
Gets the exception related with the operation. The property value will be
'null' if no exception occured during the operation.
The exception.
Gets the caused the event.
The caused the event.
Gets or sets a value which if set to 'true' and exception was thrown
will cause the to skip throwing the exception
and will let the user handle it.
A value which if set to 'true' and exception was thrown
will cause the to skip throwing the exception
and will let the user handle it.
Event arguments passed when updates a record.
Gets or sets a value determining if the which
fired the event will stay in edit mode after the postback.
A value determining if the which
fired the event will stay in edit mode after the postback.
Gets or sets a value determining if the method
will be called after the event.
A value determining if the method
will be called after the event.
Event arguments passed when inserts a new record.
Gets or sets a value determining if the which
fired the event will stay in insert mode after the postback.
A value determining if the which
fired the event will stay in insert mode after the postback.
Event arguments passed when deletes a record.
Number of items in the group
Number of items displayed on the page
if true Group is countinued from the previous page or it continues
on the next page if value of false
Summary description for DataSetHelper.
Summary description for DefaultValueChecker.
Type of the edit forms in RadGrid
Form is autogenerated, based on the column that each GridTableView exposes.
The edit form is a WebUserControl specified by
The template specified by is used as an edit form.
Settings for the edit forms generated by a for each item that is in edit mode and the
is set to .
Set the type of the EditForm using .
If the type is then the form will be autogenerated based on the
columns of the corresponding table view. Note that only the columns that are editable wil be included. Those are
the standatrd columns that have editing capabilities - such that has
set to false. All the style properties apply only to the autogenerated edit form.
See for more details on the types of the edit forms.
Set properties of the update-cancel buttons column that appears in an edit form
Number of vertical columns to split all edit fields on the form when it is autogenerated.
Each GridColumn has a to choose the column where
the editor would appear.
Data field to incude in form's caption
Caption format string - {0} parameter must be included and would be repaced with DataField value
Caption for the po
Used when column-based filtering feature of RadGrid is enabled. Defines properties and methods for formatting the
predefined filter expressions
Gets or sets the illegal strings array. These values indicate which strings could not be entered as a part of the filtering value.
Excluding values from the array will allow these values to be entered in the filtering value. However, it is not recommended
because possible security vulnerabilities could arise.
The illegal strings array. These values indicate which strings could not be entered as a part of the filtering value.
Excluding values from the array will allow these values to be entered in the filtering value. However, it is not recommended
because possible security vulnerabilities could arise.
Enumeration representing the aggregate functions which can be applied to a
GridGroupByField (part of
collection)
Meaningful only when GridGroupByField is part of
collection
Programmatic GridGroupByField syntax
GridGroupByField gridGroupByField;
gridGroupByField = new GridGroupByField();
gridGroupByField.FieldName = "Freight";
gridGroupByField.HeaderText = "Total shipping cost is ";
gridGroupByField.Aggregate = GridAggregateFunction.Sum;
expression.SelectFields.Add( gridGroupByField );
Dim gridGroupByField As GridGroupByField
gridGroupByField = New GridGroupByField
gridGroupByField.FieldName = "Freight"
gridGroupByField.HeaderText = "Total shipping cost is "
gridGroupByField.Aggregate = GridAggregateFunction.Sum
expression.SelectFields.Add(gridGroupByField)
Field which is part of each
and collection
Dim groupExpression As GridGroupByExpression = New GridGroupByExpression()
Dim groupByField As GridGroupByField = New GridGroupByField()
groupByField = New GridGroupByField()
groupByField.FieldName = "Received"
groupExpression.SelectFields.Add(groupByField)
groupByField = New GridGroupByField()
groupByField.FieldName = "Received"
groupExpression.GroupByFields.Add(groupByField)
RadGrid1.MasterTableView.GroupByExpressions.Add(groupExpression)
GridGroupByExpression groupExpression = new GridGroupByExpression();
GridGroupByField groupByField = new GridGroupByField();
groupByField = new GridGroupByField();
groupByField.FieldName = "Received";
groupExpression.SelectFields.Add(groupByField);
groupByField = new GridGroupByField();
groupByField.FieldName = "Received";
groupExpression.GroupByFields.Add(groupByField);
RadGrid1.MasterTableView.GroupByExpressions.Add(groupExpression);
Some of the GridGroupByField properties are meaningful only when present under
specific collection - or
Declarative GridGroupByField syntaxProgrammatic GridGroupByField syntax
Method setting the aggregate function applied for a
GridGroupByField which is part of the
collection.
N/A
Dim groupExpression As GridGroupByExpression = New GridGroupByExpression()
Dim groupByField As GridGroupByField = New GridGroupByField()
groupByField.FieldName = "Size"
groupByField.SetAggregate(GridAggregateFunction.Sum)
groupExpression.SelectFields.Add(groupByField)
groupByField = New GridGroupByField()
groupByField.FieldName = "Received"
groupExpression.SelectFields.Add(groupByField)
groupByField = New GridGroupByField()
groupByField.FieldName = "Received"
groupExpression.GroupByFields.Add(groupByField)
RadGrid1.MasterTableView.GroupByExpressions.Add(groupExpression)
GridGroupByExpression groupExpression = new GridGroupByExpression();
GridGroupByField groupByField = new GridGroupByField();
groupByField.FieldName = "Size";
groupByField.SetAggregate(GridAggregateFunction.Sum);
groupExpression.SelectFields.Add(groupByField);
groupByField = new GridGroupByField();
groupByField.FieldName = "Received";
groupExpression.SelectFields.Add(groupByField);
groupByField = new GridGroupByField();
groupByField.FieldName = "Received";
groupExpression.GroupByFields.Add(groupByField);
RadGrid1.MasterTableView.GroupByExpressions.Add(groupExpression);
Meaningful only for GridGroupByFields from the
collection
Method setting the sort order applied for a GridGroupByField which
is part of the collection.
N/A
Meaningful only for GridGroupByFields from the
collection
GridGroupByExpression groupExpression = new GridGroupByExpression();
groupByField = new GridGroupByField();
groupByField.FieldName = "Received";
groupExpression.SelectFields.Add(groupByField);
groupByField = new GridGroupByField();
groupByField.FieldName = "Received";
groupByField.SetSortOrder(GridSortOrder.Ascending);
groupExpression.GroupByFields.Add(groupByField);
RadGrid1.MasterTableView.GroupByExpressions.Add(groupExpression);
Dim groupExpression As GridGroupByExpression = New GridGroupByExpression()
Dim groupByField As GridGroupByField = New GridGroupByField()
groupByField = New GridGroupByField()
groupByField.FieldName = "Received"
groupExpression.SelectFields.Add(groupByField)
groupByField = New GridGroupByField()
groupByField.FieldName = "Received"
groupByField.SetSortOrder(GridSortOrder.Descending)
groupExpression.GroupByFields.Add(groupByField)
RadGrid1.MasterTableView.GroupByExpressions.Add(groupExpression)
Method which gets the HeaderText value from GridGroupByField part
of the collection
String containing the HeaderText value
Meaningful only for GridGroupByFields from the
collection
Dim groupExpression As GridGroupByExpression = RadGrid1.MasterTableView.GroupByExpressions(0)
Dim headerText as String = groupExpression.SelectFields(0).GetHeaderText()
GridGroupByExpression groupExpression = RadGrid1.MasterTableView.GroupByExpressions[0] as GridGroupByExpression;
String headerText = groupExpression.SelectFields[0].GetHeaderText()
Method which gets the FormatString value from GridGroupByField
part of the collection
String containing the FormatString value
Meaningful only for GridGroupByFields from the
collection
Dim groupExpression As GridGroupByExpression = RadGrid1.MasterTableView.GroupByExpressions(0)
Dim formatString As String = groupExpression.SelectFields(0).GetFormatString()
GridGroupByExpression groupExpression = RadGrid1.MasterTableView.GroupByExpressions[0] As GridGroupByExpression;
String formatString = groupExpression.SelectFields[0].GetFormatString()
Inherited but not used
Method that retrieves a System.String that indicates the current
object
The string format of the object.Object.ToString()Inherited but not used
Gets or sets a string that represents the DataField column
property that will be used to form the GroupByExpression.
Unless you have specified a FieldAlias, the value of this
property will be used when Telerik RadGrid constructs the text for
GridGroupHeaderItem. FieldName has a meaning both for
SelectFields and GroupByFields of
GroupByExpression.
String representing the DataField for the corresponding grouped
column
GridGroupByField gridGroupByField;
//Add select fields (before the "Group By" clause)
gridGroupByField = new GridGroupByField();
gridGroupByField.FieldName = "EmployeeID";
gridGroupByField.HeaderText = "Employee";
expression.SelectFields.Add( gridGroupByField );
//Add a field for group-by (after the "Group By" clause)
gridGroupByField = new GridGroupByField();
gridGroupByField.FieldName = "EmployeeID";
expression.GroupByFields.Add( gridGroupByField );
Dim gridGroupByField As GridGroupByField
'Add select field (before the "Group By" clause)
gridGroupByField = New GridGroupByField()
gridGroupByField.FieldName = "EmployeeID"
gridGroupByField.HeaderText = "Employee"
expression.SelectFields.Add(gridGroupByField)
'Add a field for group-by (after the "Group By" clause)
gridGroupByField = New GridGroupByField()
gridGroupByField.FieldName = "EmployeeID"
expression.GroupByFields.Add(gridGroupByField)
Declarative GridGroupByField syntaxProgrammatic GridGroupByField syntax
Gets or sets a value representing a friendly name for the field used for forming
the group by expression. This name will be displayed in each group header when grouping
by the respective field.
Use this property for setting the field text that will be displayed in the
GridGroupHeaderItem. If this property is not set, the value of
property will be used. Note that this property has
a meaning only for GridGroupByField part of the SelectFields of
GridGroupByExpression.
This property is useful in cases when:you want to change the value displayed in group header (different than
the default DataField column value)
orgroup by a template column