Hey there guys,
We're using a RadGrid to display a list of records. When the user clicks the edit button we're using a UserControl as the input form so the EditFormType is set to WebUserControl. We also have a RadWindowManager on the page.
The problem is that we're not sure how to set the width and height of the window.
We've tried setting it with CSS, which doesn't work.
We've tried setting it using the RadWindow manager but that didn't work either.
Here's the source:
Any help would be appreciated.
Thanks,
Jacques
We're using a RadGrid to display a list of records. When the user clicks the edit button we're using a UserControl as the input form so the EditFormType is set to WebUserControl. We also have a RadWindowManager on the page.
The problem is that we're not sure how to set the width and height of the window.
We've tried setting it with CSS, which doesn't work.
We've tried setting it using the RadWindow manager but that didn't work either.
Here's the source:
<telerik:RadGrid ID="RecordList" runat="server" AllowPaging="True" EnableEmbeddedBaseStylesheet="False" |
GroupingEnabled="False" ShowStatusBar="True" DataSourceID="RecordsDataSource" |
GridLines="None" ShowFooter="True" OnItemDeleted="RecordList_ItemDeleted" |
OnItemUpdated="RecordList_ItemUpdated" OnUpdateCommand="RecordList_UpdateCommand" |
AllowSorting="True" OnInsertCommand="RecordList_InsertCommand" OnItemCommand="RecordList_ItemCommand" |
OnItemInserted="RecordList_ItemInserted" OnDeleteCommand="RecordList_DeleteCommand" |
OnItemDataBound="RecordList_ItemDataBound" OnNeedDataSource="RecordList_NeedDataSource" |
Skin="CustomHay" EnableEmbeddedSkins="false"> |
<PagerStyle EnableSEOPaging="True" Mode="Slider" Position="TopAndBottom" /> |
<MasterTableView AutoGenerateColumns="False" DataSourceID="RecordsDataSource" EditMode="PopUp" |
NoDetailRecordsText="No child records to display." NoMasterRecordsText="No records to display." |
Summary="testing summary" DataKeyNames="RecordId" EditFormSettings-EditFormType="WebUserControl" |
EditFormSettings-UserControlName="~/DesktopModules/Records/RecordEditor.ascx" |
ShowFooter="True" InsertItemDisplay="Bottom" CommandItemDisplay="TopAndBottom"> |
<CommandItemSettings AddNewRecordText="Add Record" /> |
<RowIndicatorColumn Visible="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn Visible="False" Resizable="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridBoundColumn DataField="RecordId" DataType="System.Int32" HeaderText="RecordId" |
SortExpression="RecordId" UniqueName="RecordId" Visible="False"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="RecordName" HeaderText="Record Name" SortExpression="RecordName" |
UniqueName="RecordName"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Submissions" DataType="System.Int32" HeaderText="Submissions" |
SortExpression="Submissions" UniqueName="Submissions"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="ContactRequests" DataType="System.Int32" HeaderText="Contact Requests" |
SortExpression="ContactRequests" UniqueName="ContactRequests"> |
</telerik:GridBoundColumn> |
<telerik:GridCheckBoxColumn DataField="SendSubmissionNotification" DataType="System.Boolean" |
HeaderText="SendSubmissionNotification" SortExpression="SendSubmissionNotification" |
UniqueName="SendSubmissionNotification" Visible="False"> |
</telerik:GridCheckBoxColumn> |
<telerik:GridBoundColumn DataField="NotificationRecipientsEmailAddresses" HeaderText="NotificationRecipientsEmailAddresses" |
SortExpression="NotificationRecipientsEmailAddresses" UniqueName="NotificationRecipientsEmailAddresses" |
Visible="False"> |
</telerik:GridBoundColumn> |
<telerik:GridCheckBoxColumn DataField="AllowContactMeEntry" DataType="System.Boolean" |
HeaderText="AllowContactMeEntry" SortExpression="AllowContactMeEntry" UniqueName="AllowContactMeEntry" |
Visible="False"> |
</telerik:GridCheckBoxColumn> |
<telerik:GridBoundColumn DataField="ContactMeRecipientsEmailAddresses" HeaderText="ContactMeRecipientsEmailAddresses" |
SortExpression="ContactMeRecipientsEmailAddresses" UniqueName="ContactMeRecipientsEmailAddresses" |
Visible="False"> |
</telerik:GridBoundColumn> |
<telerik:GridCheckBoxColumn DataField="IsEnabled" DataType="System.Boolean" HeaderText="Enabled" |
SortExpression="IsEnabled" UniqueName="IsEnabled"> |
</telerik:GridCheckBoxColumn> |
<telerik:GridBoundColumn DataField="DateCreated" DataType="System.DateTime" HeaderText="Created" |
SortExpression="DateCreated" UniqueName="DateCreated" DataFormatString="{0:yyyy, MMM dd}"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="DateModified" HeaderText="DateModified" SortExpression="DateModified" |
UniqueName="DateModified" DataType="System.DateTime" Visible="False"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="CreatedByUserId" HeaderText="CreatedByUserId" |
SortExpression="CreatedByUserId" UniqueName="CreatedByUserId" DataType="System.Guid" |
Visible="False"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="ModifiedByUserId" HeaderText="ModifiedByUserId" |
SortExpression="ModifiedByUserId" UniqueName="ModifiedByUserId" DataType="System.Guid" |
Visible="False"> |
</telerik:GridBoundColumn> |
<telerik:GridEditCommandColumn> |
<ItemStyle Width="20px" /> |
</telerik:GridEditCommandColumn> |
<telerik:GridButtonColumn CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you would like to delete this record?" |
ConfirmTitle="Delete Record" Text="Delete" UniqueName="DeleteColumn"> |
<ItemStyle Width="20px" /> |
</telerik:GridButtonColumn> |
<telerik:GridHyperLinkColumn DataNavigateUrlFields="RecordId" Text="Questions" UniqueName="QuestionsColumn"> |
<ItemStyle Width="30px" /> |
</telerik:GridHyperLinkColumn> |
<telerik:GridHyperLinkColumn DataNavigateUrlFields="RecordId" Text="Results" UniqueName="ResultsColumn"> |
<ItemStyle Width="30px" /> |
</telerik:GridHyperLinkColumn> |
<telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Flush" ConfirmDialogType="RadWindow" ConfirmTitle="Flush Collected Data" ConfirmText="Are you sure you would like to flush the collected data for this record" Text="Flush"> |
</telerik:GridButtonColumn> |
</Columns> |
<NoRecordsTemplate> |
No records have been created yet.</NoRecordsTemplate> |
<EditFormSettings EditFormType="WebUserControl" UserControlName="~/DesktopModules/Records/RecordEditor.ascx" |
CaptionDataField="RecordName"> |
<EditColumn UniqueName="EditCommandColumn1" HeaderButtonType="TextButton"> |
</EditColumn> |
<PopUpSettings ScrollBars="None" /> |
</EditFormSettings> |
<PagerStyle Mode="Slider" /> |
</MasterTableView> |
<ClientSettings EnableRowHoverStyle="True"> |
<Selecting AllowRowSelect="True" /> |
</ClientSettings> |
<StatusBarSettings LoadingText="Loading..." ReadyText="Ready" /> |
</telerik:RadGrid> |
<telerik:RadWindowManager ID="RadWindowManager" Height="150" Width="581" Skin="Hay" runat="server" KeepInScreenBounds="true"> |
</telerik:RadWindowManager> |
Any help would be appreciated.
Thanks,
Jacques