or
Hi,
I'm using a grid with auto-generated columns. Datasource is assigned to the grid at run time (assigned a datatable).
I'm using scroll wth frozen columns:
<
Scrolling AllowScroll="True" UseStaticHeaders="true" FrozenColumnsCount="7" />
|
|||||||||||
| Transaction # | Description | Date | Created | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 4 | 1 | 09/16/2009 12:00 | |||||||||
| 5 | 2 | 09/16/2009 03:49 | |||||||||
| 6 | 15 | 09/16/2009 03:50 | |||||||||
| foreach (GridDataItem item in (sender as RadGrid).Items) |
| { |
| if (DisableRow(item)) |
| { |
| item.Enabled = false; |
| item["ExpandColumn"].Enabled = true; |
| (item["ExpandColumn"].Controls[0] as Button).Enabled = true; |
| } |
| } |
| <tlk:RadGrid ID="oGrid" runat="server" AutoGenerateColumns="False" Height="470px" |
| AllowPaging="True" PageSize="100" |
| OnNeedDataSource="oGrid_NeedDataSource" AllowSorting="True" |
| OnInsertCommand="oGrid_InsertCommand" OnUpdateCommand="oGrid_UpdateCommand" OnDeleteCommand="oGrid_DeleteCommand" |
| OnItemDataBound="oGrid_ItemDataBound" OnCancelCommand="oGrid_CancelCommand" |
| GridLines="None" EnableViewState="false"> <MasterTableView CommandItemDisplay="Top" EditMode="InPlace" DataKeyNames="IDUser" InsertItemPageIndexAction="ShowItemOnCurrentPage" EnableNoRecordsTemplate="true"> <CommandItemSettings AddNewRecordImageUrl="~/Images/add.png" RefreshImageUrl="~/Images/blank.gif" RefreshText="" /> <NoRecordsTemplate> <div> </div> </NoRecordsTemplate> <Columns> <tlk:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" CancelImageUrl="~/Images/failed.png" InsertImageUrl="~/Images/ok.png" UpdateImageUrl="~/Images/ok.png" Resizable="false"> <ItemStyle HorizontalAlign="Center" CssClass="CursorHand" /> </tlk:GridEditCommandColumn> |
| function js_fahrteingabe_zeitControl_setDate(controlId, dateIn){ |
| var tmpCtrlZeit = $find(controlId); |
| var currentDateTime=tmpCtrlZeit.get_timeView().getTime(); |
| var actTime=dateToTimeString( currentDateTime ); |
| var newDateTime = datetimeStringToDate(dateToDateString(dateIn) + " " + actTime); |
| tmpCtrlZeit.set_selectedDate(newDateTime); |
| var date = tmpCtrlZeit.get_selectedDate(); |
| date.setDate(newDateTime); |
| tmpCtrlZeit=null; |
| } |
Thanks much for the info...
chris