or
<
style
>
.RadInput_Default table
{
width: 50px !important ;
}
</
style
>
<
div
class
=
"qty"
style
=
"width:50px;"
>
<
telerik:RadNumericTextBox
ID
=
"txtQty"
runat
=
"server"
MinValue
=
"1"
Value
=
"1"
ShowSpinButtons
=
"True"
NumberFormat-DecimalDigits
=
"0"
></
telerik:RadNumericTextBox
>
<
div
style
=
"clear:both;"
></
div
>
</
div
>
<
div
class
=
"qty"
style
=
"width:50px;"
>
<!-- 2010.1.415.40 -->
<
div
id
=
"txtQty_wrapper"
class
=
"RadInput RadInput_Default"
style
=
"width:125px;"
>
<
table
cellpadding
=
"0"
cellspacing
=
"0"
class
=
"riTable"
style
=
"border-width:0;border-collapse:collapse;width:100%;"
>
<
tr
>
<
td
class
=
"riCell"
style
=
"width:100%;white-space:nowrap;"
><
input
type
=
"text"
value
=
"1"
id
=
"txtQty_text"
name
=
"txtQty_text"
class
=
"riTextBox riEnabled"
style
=
"width:100%;"
/><
input
style
=
"visibility:hidden;float:right;margin:-18px 0 0 -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;"
id
=
"txtQty"
class
=
"rdfd_"
value
=
"1"
type
=
"text"
/><
input
style
=
"visibility:hidden;float:right;margin:-18px 0 0 -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;"
id
=
"txtQty_Value"
class
=
"rdfd_"
name
=
"txtQty"
value
=
"1"
type
=
"text"
/></
td
><
td
class
=
"riSpin"
><
a
class
=
"riUp"
href
=
"javascript:void(0)"
id
=
"txtQty_SpinUpButton"
><
span
>Spin Up</
span
></
a
><
a
class
=
"riDown"
href
=
"javascript:void(0)"
id
=
"txtQty_SpinDownButton"
><
span
>Spin Down</
span
></
a
></
td
>
</
tr
>
</
table
><
input
id
=
"txtQty_ClientState"
name
=
"txtQty_ClientState"
type
=
"hidden"
/>
</
div
>
<
div
style
=
"clear:both;"
></
div
>
</
div
>
<
input
type
=
"image"
name
=
"ctl00$PlaceHolderMain$CreateForm$DetailsGrid$ctl00$ctl14$gbcDeleteCommandColumn"
id
=
"ctl00_PlaceHolderMain_CreateForm_DetailsGrid_ctl00_ctl14_gbcDeleteCommandColumn"
title
=
"Delete"
src
=
"/WebResource.axd?d=GpOX6CklTui-WvsX3ntJX3ScZbvlRAVY8vywfIml9JItkz7GRkBph6JGqEfC9c79Y_0WJH4Nno_X46fOq0MjDPt_LMglkeRc-eqk2sIgYglxd1EFqxUP8l5AE_GCCW7O8haJNpYIJYTP71JNlw-cuq-QZUhJ-Wl0sZgdku0-h-F4-g8fvnFhBcx7J8a4kUhHArGx1g2&amp;t=634419269737817546"
alt
=
"Delete"
onclick
=
"if(!confirm('Are you sure you want to delete this entry?'))return false;if(!$find('ctl00_PlaceHolderMain_CreateForm_DetailsGrid_ctl00').fireCommand('Delete','5')) return false;"
style
=
"border-width:0px;"
>
<
input
type
=
"image"
title
=
"Delete"
alt
=
"Delete"
src
=
""
onclick
=
"if(!$find('ctl00_PlaceHolderMain_CreateForm_DetailsGrid_ctl00').fireCommand('Delete','10')) return false;"
>
<
telerik:RadGrid
ID
=
"DetailsGrid"
runat
=
"server"
AllowMultiRowEdit
=
"false"
AllowPaging
=
"false"
AllowSorting
=
"false"
AutoGenerateColumns
=
"false"
EnableViewState
=
"false"
GridLines
=
"None"
Skin
=
"Simple"
Width
=
"100%"
>
<
MasterTableView
TableLayout
=
"Fixed"
ClientDataKeyNames
=
"ID"
>
<
Columns
>
<
telerik:GridBoundColumn
UniqueName
=
"Date"
DataField
=
"Date"
HeaderText
=
"Date"
ReadOnly
=
"true"
HeaderStyle-Width
=
"75px"
ItemStyle-HorizontalAlign
=
"Left"
DataType
=
"System.DateTime"
DataFormatString
=
"{0:MM/dd/yyyy}"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"UserDisplayName"
DataField
=
"UserDisplayName"
HeaderText
=
"User"
ReadOnly
=
"true"
HeaderStyle-Width
=
"135px"
ItemStyle-HorizontalAlign
=
"Left"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Hours"
DataField
=
"Hours"
HeaderText
=
"Hours"
HeaderStyle-Width
=
"50px"
ItemStyle-HorizontalAlign
=
"Center"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Minutes"
DataField
=
"RemainderMinutes"
HeaderText
=
"Minutes"
HeaderStyle-Width
=
"60px"
ItemStyle-HorizontalAlign
=
"Center"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Description"
DataField
=
"Description"
HeaderText
=
"Description"
ItemStyle-HorizontalAlign
=
"Left"
>
</
telerik:GridBoundColumn
>
<
telerik:GridButtonColumn
UniqueName
=
"DeleteCommandColumn"
CommandName
=
"Delete"
ButtonType
=
"ImageButton"
ConfirmText
=
"Are you sure you want to delete this entry?"
ConfirmTitle
=
"Delete Entry"
Text
=
"Delete"
HeaderStyle-Width
=
"30px"
ItemStyle-HorizontalAlign
=
"Center"
>
</
telerik:GridButtonColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
>
<
ClientEvents
OnCommand
=
"Stp.DetailsGrid_Command"
></
ClientEvents
>
</
ClientSettings
>
</
telerik:RadGrid
>
private System.EventHandler ButtonResSaveClicked;
public event EventHandler BtnResSaveClicked
{
add
{ ButtonResSaveClicked += value; }
remove
{ ButtonResSaveClicked -= value; }
}
protected void btnSave_Click(object sender, EventArgs e)
{
//Perform save operation
if (ButtonResSaveClicked != null)
{
ButtonResSaveClicked(sender, e);
}
}
ucFromTab.ButtonResSaveClicked+= ucInPage.RefreshData;
function RowContextMenu(sender, eventArgs) {
var menu;
var ownerTable = eventArgs.get_tableView();
if (ownerTable.get_name() == "Grid") {
menu = $find("<%=RadContextMenuUser.ClientID %>");
}
else if (ownerTable.get_name() == "NestedGrid") {
menu = $find("<%=RadContextMenuUsersRole.ClientID %>");
}
var evt = eventArgs.get_domEvent();
if (evt.target.tagName == "INPUT" || evt.target.tagName == "A") {
return;
}
var index = eventArgs.get_itemIndexHierarchical();
document.getElementById("radGridClickedRowIndex").value = index;
document.getElementById("radGridClickedTableId").value = ownerTable._data.UniqueID;
sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);
ImageUrl='<%# "ViewImage.aspx?ImageID=" & Eval("ImageID").ToString()%>'
... Well, it appears that everything works fine for as long as there is at most 7 rows per grid pages (users can set page size at will), not one more: more than that RadTabStrip, RadMultiPage, and RadGrid controls become unresponsive and any user action results in a complete page refresh, nothing more. On the other hand, if I change the code and force the same image to be reused over and over again, say, ImageUrl='<%# "ViewImage.aspx?ImageID=3"%>'
things work as expected no matter what the grid page size is. I know this sounds strange but after hours of narrowing the problem down, it all comes down to this!<
telerik:RadGrid
ID
=
"rgDirigeant"
runat
=
"server"
AllowFilteringByColumn
=
"False"
AllowPaging
=
"True"
AllowSorting
=
"False"
AutoGenerateColumns
=
"True"
EnableLinqExpressions
=
"False"
HorizontalAlign
=
"Center"
ShowFooter
=
"True"
ShowHeader
=
"False"
ShowStatusBar
=
"True"
Skin
=
"WebBlue"
Visible
=
"False"
Width
=
"100%"
PageSize
=
"10"
>
<
ClientSettings
EnableRowHoverStyle
=
"True"
>
<
ClientEvents
OnPopUpShowing
=
"PopUpShowing"
/>
<
Selecting
AllowRowSelect
=
"False"
/>
</
ClientSettings
>
<
GroupingSettings
CaseSensitive
=
"False"
/>
<
SortingSettings
SortToolTip="<%$ Resources:myRadGrid, SortToolTip%>" SortedAscToolTip="<%$ Resources:myRadGrid, SortedAscToolTip%>" SortedDescToolTip="<%$ Resources:myRadGrid, SortedDescToolTip%>" />
<
FilterMenu
enableajaxskinrendering
=
"False"
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
></
CollapseAnimation
>
</
FilterMenu
>
<
HeaderContextMenu
>
<
CollapseAnimation
Duration
=
"200"
Type
=
"OutQuint"
/>
</
HeaderContextMenu
>
<
MasterTableView
CommandItemDisplay
=
"Top"
DataKeyNames
=
"IDDirigeant"
EditMode
=
"PopUp"
NoMasterRecordsText="<%$ Resources:myRadGrid, NoMasterRecordsText%>">
<
CommandItemSettings
AddNewRecordText="<%$ Resources:myRadGrid, Add %>" RefreshText="<%$ Resources:myRadGrid, Refresh %>" />
<
ItemTemplate
>
<
table
border
=
"0"
>
<
asp:TableRow
ID
=
"Tablerow1"
runat
=
"server"
>
<
asp:TableCell
ID
=
"Tablecell1"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
asp:Label
ID
=
"lblTitre"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblTitre"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell2"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<%If Me.CodeTypeDirigeant = Globals.CodeHauteDirection Or Me.CodeTypeDirigeant = Globals.CodeAdministrator Then%>
<
telerik:RadTextBox
ID
=
"lblTitreTxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Bind("NomTitreDirigeant") %>' />
<%Else%>
<
telerik:RadTextBox
ID
=
"lblDepartTxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Bind("NomDepartement") %>' />
<%End If%>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell3"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
asp:Label
ID
=
"lblTitreExact"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblTitreExact"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell4"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
telerik:RadTextBox
ID
=
"lblTitreExacttxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
TextMode
=
"MultiLine"
Rows
=
"3"
Height
=
"48px"
ReadOnly
=
"true"
Text='<%# Bind("TitreDirigeantExact")%>' />
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell5"
RowSpan
=
"8"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
asp:Image
ID
=
"_photo"
runat
=
"server"
BorderColor
=
"Silver"
BorderStyle
=
"Solid"
BorderWidth
=
"1px"
GenerateEmptyAlternateText
=
"True"
ImageAlign
=
"Top"
ImageUrl='<%# "ViewImage.aspx?
ImageID
=
" & Eval("
ImageID").ToString()%>' Width="100px" />
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
ID
=
"Tablerow2"
runat
=
"server"
>
<
asp:TableCell
ID
=
"Tablecell6"
runat
=
"server"
BorderWidth
=
"0"
>
<
asp:Label
ID
=
"lblPrenom"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblPrenom"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell7"
runat
=
"server"
BorderWidth
=
"0"
>
<
telerik:RadTextBox
ID
=
"lblPrenomtxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Eval("Prenom") %>' />
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell8"
runat
=
"server"
BorderWidth
=
"0"
>
<
asp:Label
ID
=
"lblNom"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblNom"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell9"
runat
=
"server"
BorderWidth
=
"0"
>
<
telerik:RadTextBox
ID
=
"lblNomtxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Eval("Nom") %>' />
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
ID
=
"Tablerow3"
runat
=
"server"
>
<
asp:TableCell
ID
=
"Tablecell10"
runat
=
"server"
BorderWidth
=
"0"
>
<
asp:Label
ID
=
"lblSexe"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblSexe"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell11"
runat
=
"server"
BorderWidth
=
"0"
>
<
telerik:RadTextBox
ID
=
"lblSexeTxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Bind("NomSexe") %>' />
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell12"
runat
=
"server"
BorderWidth
=
"0"
>
<
asp:Label
ID
=
"lblLangue"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblLangue"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell13"
runat
=
"server"
BorderWidth
=
"0"
>
<
telerik:RadTextBox
ID
=
"lblLngtxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Bind("NomLangue") %>' />
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
ID
=
"Tablerow4"
runat
=
"server"
VerticalAlign
=
"Top"
>
<
asp:TableCell
ID
=
"Tablecell14"
runat
=
"server"
BorderWidth
=
"0"
>
<
asp:Label
ID
=
"lblTelephone"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblTelephone"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell15"
runat
=
"server"
BorderWidth
=
"0"
>
<
telerik:RadTextBox
ID
=
"lblTelephonetxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Bind("Telephone") %>' />
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell16"
runat
=
"server"
BorderWidth
=
"0"
>
<
asp:Label
ID
=
"lblDateNaissance"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblDateNaissance"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell17"
runat
=
"server"
BorderWidth
=
"0"
>
<
telerik:RadTextBox
ID
=
"lblNaissancetxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Bind("DateNaissance", "{0:yyyy/MM/dd}") %>' />
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
ID
=
"Tablerow5"
runat
=
"server"
>
<
asp:TableCell
ID
=
"Tablecell18"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
asp:Label
ID
=
"lblTelecopieur"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblTelecopieur"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell19"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
telerik:RadTextBox
ID
=
"lbltelecopieurtxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Bind("Telecopieur") %>' />
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell20"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
asp:Label
ID
=
"lblCourriel"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblCourriel"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell21"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
asp:HyperLink
ID
=
"hlCourriel"
runat
=
"server"
Height
=
"32px"
Width
=
"200px"
Text='<%# Bind("Courriel") %>'></
asp:HyperLink
>
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
ID
=
"Tablerow9"
runat
=
"server"
>
<
asp:TableCell
ID
=
"Tablecell38"
runat
=
"server"
BorderWidth
=
"0"
>
<
asp:Label
ID
=
"lblSalaireAnnuel"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblSalaireAnnuel"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell39"
runat
=
"server"
BorderWidth
=
"0"
>
<
telerik:RadTextBox
ID
=
"_salaireAnnTxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Bind("SalaireAnnuelLocal", "{0:### ### ### ##0}") %>' ReadOnlyStyle-HorizontalAlign="Right" />
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell40"
runat
=
"server"
BorderWidth
=
"0"
>
<
asp:Label
ID
=
"lblPrimeAnnuelle"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblPrimeAnnuelle"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell41"
runat
=
"server"
BorderWidth
=
"0"
>
<
telerik:RadTextBox
ID
=
"_primeTxt"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"200px"
ReadOnly
=
"true"
Text='<%# Bind("PrimeAnnuelleLocal", "{0:### ### ### ##0}") %>' ReadOnlyStyle-HorizontalAlign="Right" />
</
asp:TableCell
>
</
asp:TableRow
>
<% If Me.CodeTypeDirigeant = Globals.CodeAdministrator Then%>
<
asp:TableRow
ID
=
"Tablerow6"
runat
=
"server"
>
<
asp:TableCell
ID
=
"Tablecell23"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
asp:Label
ID
=
"lblResponsabilite"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblResponsabilite"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell24"
runat
=
"server"
BorderWidth
=
"0"
ColumnSpan
=
"3"
>
<
telerik:RadTextBox
ID
=
"lblResptxt"
runat
=
"server"
Text='<%# Bind("Responsabilite") %>'
TextMode="MultiLine" ReadOnly="true" Width="100%" Rows="3" Height="48px" />
</
asp:TableCell
>
</
asp:TableRow
>
<% End If%>
<
asp:TableRow
ID
=
"Tablerow7"
runat
=
"server"
VerticalAlign
=
"Top"
>
<
asp:TableCell
ID
=
"Tablecell29"
runat
=
"server"
BorderWidth
=
"0"
VerticalAlign
=
"Top"
>
<
asp:Label
ID
=
"lblCV"
runat
=
"server"
SkinID
=
"titleLabel"
meta:resourcekey
=
"lblCV"
/>
</
asp:TableCell
>
<
asp:TableCell
ID
=
"Tablecell30"
runat
=
"server"
BorderWidth
=
"0"
ColumnSpan
=
"3"
>
<
asp:HyperLink
ID
=
"lbCV"
runat
=
"server"
ToolTip='<%# Bind("IDCurriculumVitae") %>' />
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
ID
=
"Tablerow8"
runat
=
"server"
>
<
asp:TableCell
ID
=
"Tablecell36"
runat
=
"server"
BorderWidth
=
"0"
ColumnSpan
=
"5"
HorizontalAlign
=
"Right"
>
<
asp:Button
ID
=
"btnUpdate"
Text="<%$ Resources:myRadGrid, Update %>" runat="server"
CommandName="Edit" SkinID="mybutton" Visible="<%# IsEditable %>" />
<
asp:Button
ID
=
"btnDelete"
Text="<%$ Resources:myRadGrid, Delete %>" runat="server"
CommandName="Delete" SkinID="mybutton" OnClientClick="return Confirm();" Visible="<%# IsEditable %>" />
</
asp:TableCell
>
</
asp:TableRow
>
</
table
>
</
ItemTemplate
>
<
EditFormSettings
EditFormType
=
"WebUserControl"
PopUpSettings-Modal
=
"True"
UserControlName
=
"~/Compagnie/Personne.ascx"
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
>
</
EditColumn
>
<
PopUpSettings
Height
=
"465px"
Width
=
"930px"
/>
</
EditFormSettings
>
</
MasterTableView
>
<
PagerStyle
AlwaysVisible
=
"true"
Mode
=
"NextPrevNumericAndAdvanced"
NextPagesToolTip="<%$ Resources:myRadGrid, PagesNext %>"
NextPageToolTip="<%$ Resources:myRadGrid, PageNext %>"
PagerTextFormat="<%$ Resources:myRadGrid, PagerText %>"
PrevPagesToolTip="<%$ Resources:myRadGrid, PagesPrev %>"
PrevPageToolTip="<%$ Resources:myRadGrid, PagePrev %>"
Wrap="False" />
<
StatusBarSettings
LoadingText="<%$ Resources:myRadGrid, statusbarLoadingText %>" ReadyText="<%$ Resources:myRadGrid, statusbarReadyText %>" />
</
telerik:RadGrid
>