This is a migrated thread and some comments may be shown as answers.

[Solved] WebUserControl EditFormType and RadToolbar

1 Answer 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ashalan
Top achievements
Rank 1
ashalan asked on 19 Feb 2010, 02:56 PM
Using a RadGrid that has 'WebUserControl' as EditFormType:

<EditFormSettings EditFormType="WebUserControl" UserControlName="UserControls/NewsAddUpdate.ascx"
    <EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
</EditFormSettings> 

In the WebUserControl I would love to use a RadToolbar to issue commands. That is instead of
<asp:Button ID="buttonAddUpdate" Text='<%# DataItem is Telerik.Web.UI.GridInsertionObject ? "Insert" : "Update" %>' runat="server" CommandName='<%# DataItem is Telerik.Web.UI.GridInsertionObject ? "PerformInsert" : "Update"%>' /> 
<asp:Button ID="buttonCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" /> 
 

I want to use
<telerik:RadToolBar runat="server" ID="toolbarCommands" Skin="Office2007"  > 
    <Items> 
        <telerik:RadToolBarButton runat="server" Text="Cancel" CommandName="Cancel" CausesValidation="false" /> 
        <telerik:RadToolBarButton runat="server" CommandName="Update" /> 
        <telerik:RadToolBarButton runat="server" CommandName="PerformInsert" /> 
    </Items> 
</telerik:RadToolBar> 

However, clicking the RadToolBarButtons has no effect.
What am I missing

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Feb 2010, 05:35 AM
Hi Ashalan,

Try setting the AutoPostBack property of RadToolBar to True.

All the best,
Shinu.
Tags
Grid
Asked by
ashalan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or