<rad
:RadToolbar ID="MainToolbar" runat="server" ButtonWidth="26px"
style="margin-bottom: 0px" ononclick="MainToolbar_OnClick"
AutoPostBack="True">
attchment of the client Side event handler:
window[userToolbar].attachEvent("OnClientClick","User_Toolbar_Click_Handler");
here is my Client Siode Javascript function:
var returnValue;
function User_Toolbar_Click_Handler(sender, e)
{
/// Toolbar Event handler of the user.aspx page.
switch(sender.CommandName)
{
case 'New':
window.radopen("DetailPages/UserDetails.aspx?isNew=true&userId=-1","PropertiesWindow");
return false;
break;
case 'ImportUsers':
doImportUsers();
return false;
break;
case 'Delete':
doDeleteUsers();
return returnValue;
break;
default :
radalert('Option not ready', '', 150,"Message");
return false;
}
return false;
}
function doImportUsers()
{
radconfirm('Are you sure you want to import Users from the LDAP store?', importUsersCallBack, 330, 100);
}
function doDeleteUsers()
{
radconfirm('Are you sure you want to Delete User?', deleteCallBack, 330, 100);
}
function deleteCallBack(arg)
{
returnValue = arg;
}
Question: either it does the client side code or it does ther server side code. never both together. what else is required to get the toolbar to work as we need it to?
<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="FullName"
FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Name"
UniqueName="FullName">
<HeaderStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn CurrentFilterFunction="NoFilter"
FilterListOptions="VaryByDataType" ForceExtractValue="None"
HeaderText="Vehicle" UniqueName="TemplateColumn">
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%# DataBinder.Eval(Container.DataItem, "VehicleYear") + " " + DataBinder.Eval(Container.DataItem, "MakeLabel") + " " + DataBinder.Eval(Container.DataItem, "Model") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Phone1"
FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Phone"
UniqueName="Phone1">
<HeaderStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="StepLabel"
FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Step"
UniqueName="StepLabel">
<HeaderStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
And have this in my code-behind....
RadGridCallList.DataBind();
RadGridCallList.ExportSettings.ExportOnlyData =
false;
RadGridCallList.ExportSettings.OpenInNewWindow =
false;
RadGridCallList.ExportSettings.IgnorePaging =
true;
RadGridCallList.MasterTableView.ExportToExcel();
Hi All,
I've discovered a bit of an issue with the RadGrid control, when it's used inside a RadSplitter. I'm using the latest version of the RadControls for ASP.NET AJAX (.NET 2.0).
The (very) basic layout of the page is as follows:
One RadSplitter comprising of two Panes, with the left most pane containing a RadSlidingZone and then two RadSlidingPanes inside that.
If I put a RadGrid (which uses EnableVirtualScrollPaging=True) inside one of the RadSlidingPanes, the scrolling functionality of the grid fails to work correctly - when the grid page changes the scrollbar resets to the top. I know that the grid works correctly outside of the RadSlidingPane and I have tested this in various scenarios with success.
Has anyone come across this before? Is there any known fix for this issue?
Cheers,
Aidan
<asp:ScriptManager ID="smManager" runat="server"></asp:ScriptManager>
<telerik:RadDatePicker ID="rdpDate" runat="server"></telerik:RadDatePicker>
Stanley
