<
telerik:RadGrid ID="gridTestGrid" runat="server" AllowMultiRowEdit="True"
OnNeedDataSource
="gridTestGrid_DataSource"
OnItemDataBound
="gridTestGrid_ItemDataBound" OnPreRender="gridTestGrid_PreRender" OnItemCreated="gridTestGrid_ItemCreated" OnItemCommand="gridTestGrid_ItemCommand"
AutoGenerateColumns
="False" GridLines="Horizontal">
<
MasterTableView AutoGenerateColumns="False" CommandItemDisplay="TopAndBottom" DataKeyNames="TestGridID">
<
CommandItemTemplate>
<
asp:Button ID="btnUpdate" runat="server" Text="Update Changes" />
</
CommandItemTemplate>
<
RowIndicatorColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
RowIndicatorColumn>
<
ExpandCollapseColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
ExpandCollapseColumn>
<
Columns>
......Some Other Columns .....
<
telerik:GridTemplateColumn HeaderText="Facility" Visible="false"
UniqueName
="rcbColumn">
<
ItemTemplate>
</
ItemTemplate>
<
EditItemTemplate>
<
telerik:RadComboBox ID="rcbFacility" runat="server" AllowCustomText="true" MarkFirstMatch="true" Width="300px" AppendDataBoundItems="true"></telerik:RadComboBox>     Send to IT?: <asp:CheckBox ID="ckBox" runat="server" Checked="false" />
</
EditItemTemplate>
</
telerik:GridTemplateColumn>
</
Columns>
</
MasterTableView>
protected
void gridTestGrid_ItemCreated(object source, Telerik.Web.UI.GridItemEventArgs e)
{
if
(e.Item is GridEditableItem && e.Item.IsInEditMode)
{
LinkButton
updateButton = (LinkButton)e.Item.FindControl("UpdateButton");
updateButton.Text =
"";
LinkButton
cancelButton = (LinkButton)e.Item.FindControl("CancelButton");
cancelButton.Text =
"";
}
}
protected
void gridTestGrid_PreRender(object source, EventArgs e)
{
foreach
(GridDataItem item in gridTestGrid.Items)
{
item.Edit =
true;
gridTestGrid.Rebind();
}
}
protected
void gridTestGrid_ItemCommand(object source, GridCommandEventArgs e)
{
Hashtable
newValues = new Hashtable();
foreach
(GridEditableItem editedItem in gridTestGrid.Items)
{
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
RadComboBox
combo = ((RadComboBox)editedItem["rcbColumn"].FindControl("rcbFacility"));
if
(combo != null)
{
string
selected = combo.SelectedItem.ToString();
}
}
}
.grid { height:auto !important; height:100%; min-height:250px; }But this not helped
.pagerPosition { position:absolute; bottom:10px; text-align:right; }This helps some what like the pager moved to the bottom but some spacing difference in different browser.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
|