var
UndoList =
new
Array();
function
onClientTransferring(sender, e) {
var
items = e.get_items();
for
(
var
i = 0; i < items.length; i++) {
var
item = items[i];
if
(item.get_text() !=
"Select"
|| item.get_value() !=
""
) {
UndoList.push(item);
UndoList.push(e.get_sourceListBox());
UndoList.push(e.get_destinationListBox());
}
}
}
function
undoChanges() {
if
(UndoList[UndoList.length - 1]._clientStateFieldID ==
"rlbStations_ClientState"
) {
var
listbox = $find(
'rlbStations'
);
}
else
if
(UndoList[UndoList.length - 1]._clientStateFieldID ==
"rlbAllowedStations_ClientState"
) {
var
listbox = $find(
'rlbAllowedStations'
);
}
listbox.transferItem(UndoList[UndoList.length - 3], UndoList[UndoList.length - 1], UndoList[UndoList.length - 2]);
}
<
telerik:RadListBox
ID
=
"rlbStations"
runat
=
"server"
AllowTransfer
=
"True"
TransferToID
=
"rlbAllowedStations"
Height
=
"200px"
Skin
=
"Web20"
SelectionMode
=
"Multiple"
Sort
=
"Ascending"
DataKeyField
=
"station_id"
AutoPostBackOnTransfer
=
"true"
Width
=
"250px"
OnClientTransferring
=
"onClientTransferring"
OnTransferred
=
"rlbStations_Transferred"
><
ButtonSettings
ShowDelete
=
"False"
ShowReorder
=
"False"
/> </
telerik:RadListBox
>
<
asp:Button
Text
=
"Undo"
runat
=
"server"
OnClientClick
=
"undoChanges()"
/><
telerik:RadListBox
ID
=
"rlbAllowedStations"
runat
=
"server"
Height
=
"200px"
Width
=
"250px"
Skin
=
"Web20"
> </
telerik:RadListBox
>
<
MasterTableView
ClientDataKeyNames
=
"ID,Name,Path"
runat
=
"server"
>
<
Columns
>
<
telerik:GridButtonColumn
UniqueName
=
"headerDelete"
CommandName
=
"Delete"
runat
=
"server"
ButtonType
=
"ImageButton"
ImageUrl
=
"~/CommonUI/Images/delete.png"
HeaderTooltip
=
"hhhh"
ItemStyle-Width
=
"40px"
ItemStyle-HorizontalAlign
=
"Center"
HeaderStyle-Width
=
"40px"
HeaderStyle-HorizontalAlign
=
"Center"
Text
=
"Delete"
/>
</
Columns
>
</
MasterTableView
>
telerik:GridButtonColumn
using OnRowDataBound event in javascript because i am filling this grid from another The issue is happening in a load balanced environment. Firefox 11 and Chrome 18 (doesn’t happen in IE and Safari) are splitting the request for one large into small packets and sending them as different requests (It is not our code. May be it’s the way Telerik works). Because of the load balancing these requests are going to multiple WFE servers. Since, we have the Temp folder as a local path these small packets are getting saved to multiple web front ends. So, finally when it gets copied to the Target folder it is copying only the last packet.
The solution to the problem is to have a Shared UNC Path for the Temp location. We tried changing the temp location to a UNC Path but it didn’t work as Impersonation was turned on in web.config for all our web applications. We turned off the impersonation and then tried uploading a large file from Firefox and it worked fine. We were able to upload a 12MB file successfully and the Size is displaying correctly on the Confirmation screen as well. But turning impersonation off may not the correct approach as it could impact the whole web application.
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. |
|