Hi,
I'm having issues with the resizing of the RadWindw. I have a grid that contains an edit link that the user clicks on the window. However when the user closes the window and clicks edit for another row in the grid the RadWindow looses it setup size and the window is very small.
Thanks,
Here is the code that contains this information:
Code-Behind:
Thanks,
I'm having issues with the resizing of the RadWindw. I have a grid that contains an edit link that the user clicks on the window. However when the user closes the window and clicks edit for another row in the grid the RadWindow looses it setup size and the window is very small.
Thanks,
Here is the code that contains this information:
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
language
=
"javascript"
type
=
"text/javascript"
>
function EditSchedule(taskid,rowIndex) {
var grid = $find("<%=AstonishDataManagement.ClientID%>");
var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
grid.get_masterTableView().selectItem(rowControl, true);
window.radopen("Datascheduledetail.aspx?TaskId=" + taskid, "UserListDialog"); ;
return false;
}
function Openform() {
window.radopen("Datascheduledetail.aspx", "UserListDialog");
return false;
}
</
script
>
</
telerik:RadCodeBlock
>
<
telerik:RadWindowManager
Behaviors
=
"Close,Resize,Maximize,Move"
runat
=
"server"
ID
=
"RWinMgr"
ShowContentDuringLoad
=
"true"
DestroyOnClose
=
"true"
KeepInScreenBounds
=
"true"
VisibleStatusbar
=
"false"
Modal
=
"true"
Style
=
"z-index: 8000;"
Skin
=
"Office2007"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"UserListDialog"
runat
=
"server"
Title
=
"Edit Schedule"
Height
=
"550px"
Width
=
"750px"
Left
=
"150px"
ReloadOnShow
=
"true"
ShowContentDuringLoad
=
"false"
Modal
=
"true"
/>
</
Windows
>
</
telerik:RadWindowManager
>
The grid caller partial code:
<
telerik:RadGrid
ID
=
"AstonishDataManagement"
runat
=
"server"
AllowPaging
=
"True"
AllowSorting
=
"True"
ClientSettings-Scrolling-AllowScroll
=
"false"
AutoGenerateColumns
=
"False"
GridLines
=
"None"
Skin
=
"Office2007"
PageSize
=
"10"
OnNeedDataSource
=
"AstonishDataManagement_NeedDataSource"
ClientSettings-Resizing-AllowColumnResize
=
"false"
OnInsertCommand
=
"AstonishDataManagement_InsertCommand"
OnUpdateCommand
=
"AstonishDataManagement_UpdateCommand"
OnCreateColumnEditor
=
"AstonishDataManagement_OnCreateColumnEditor"
onitemcreated
=
"AstonishDataManagement_ItemCreated"
onitemcommand
=
"AstonishDataManagement_ItemCommand"
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
AlwaysVisible
=
"true"
/>
<
MasterTableView
Name
=
"tblAstonishDataManagement"
DataKeyNames
=
"TaskId"
AllowNaturalSort
=
"false"
CommandItemDisplay
=
"None"
>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"TemplateEditColumn"
HeaderStyle-Width
=
"5px"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"EditLink"
runat
=
"server"
Text
=
"Edit"
></
asp:HyperLink
>
</
ItemTemplate
>
Thanks,