javascript:__doPostBack
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="pnlTest">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlTest" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<br />
<br />
<asp:panel ID="pnlTest" runat="server">
<asp:PlaceHolder runat="server" ID="ph1"></asp:PlaceHolder>
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</asp:panel>
in page load event
Dim h As New HyperLink
h.NavigateUrl =
"javascript:__doPostBack('x','y')"
ph1.Controls.Add(h)
RadAjaxManager1.AjaxSettings.AddAjaxSetting(h, pnlTest)
label1.text = now()| <telerik:RadToolBar ID="tbTopPage" runat="server" Skin="Office2007" Width="100%"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| <Items> |
| <telerik:RadToolBarButton runat="server" Text="Collapse All"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Seperator1"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarSplitButton runat="server" Text="Relation" |
| EnableDefaultButton="False"> |
| <Buttons> |
| <telerik:RadToolBarButton runat="server" CheckOnClick="True" |
| Text="With Relation" ValidationGroup="Relation"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton runat="server" CheckOnClick="True" |
| Text="Without Relation" Checked="True" ValidationGroup="Relation"> |
| </telerik:RadToolBarButton> |
| </Buttons> |
| </telerik:RadToolBarSplitButton> |
| <telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Seperator2"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarDropDown runat="server" Text="View"> |
| <Buttons> |
| <telerik:RadToolBarButton runat="server" CheckOnClick="True" Group="View" |
| Text="Summary"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton runat="server" CheckOnClick="True" Group="View" |
| Text="Detail"> |
| </telerik:RadToolBarButton> |
| </Buttons> |
| </telerik:RadToolBarDropDown> |
| <telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Seperator3"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarSplitButton runat="server" Text="Actions" |
| EnableDefaultButton="False"> |
| <Buttons> |
| <telerik:RadToolBarButton runat="server" CheckOnClick="True" |
| Text="Add to Basket"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton runat="server" CheckOnClick="True" |
| Text="Maintenance Update"> |
| </telerik:RadToolBarButton> |
| </Buttons> |
| </telerik:RadToolBarSplitButton> |
| </Items> |
| </telerik:RadToolBar> |
<
asp:Button runat = "server" ID = "btnPsuedoButton" Visible="true" OnClick="btnPsuedoButton_Click" />
In the RowDatabound event of the gridview, I do
string
eventHandler = this.GetPostBackEventReference(this.btnPsuedoButton, "");
txtDescription.Attributes.Add(
"OnBlur", eventHandler);
My problems are
1. If I make the button btnPsuedoButton invisible, I get error on page
2. How do I make the postback ajaxified.
3. How to call a javascript before the btnPsuedoButton_Click event
Hi to all,
it is not possible for me to make a GridTemplateColumn sortable with a LinkButton - control inside?
For my RadGrid i have set the attributes AllowMultiColumnSorting="true" and have define a <SortExpressions> Tag for a default sortexpression.
I don´t know if this information is important for problem solving?
| <telerik:RadGrid ID="rdgWI" |
| runat="server" |
| AutoGenerateColumns="False" |
| GridLines="None" |
| onneeddatasource="rdgWI_NeedDataSource" |
| PageSize="8" |
| AllowSorting="True" |
| Width="100%"> |
| <HeaderContextMenu> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </HeaderContextMenu> |
| <ClientSettings> |
| <Scrolling AllowScroll="True" UseStaticHeaders="true" /> |
| <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> |
| </ClientSettings> |
| <MasterTableView ClientDataKeyNames="WRhText, WiRhTask, WId, WText" ShowHeadersWhenNoRecords="true" AllowMultiColumnSorting="true" ShowHeader="true" runat="server" Width="99%"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <SortExpressions> |
| <telerik:GridSortExpression FieldName="WRhText" SortOrder="Ascending" /> |
| </SortExpressions> |
| <Columns> |
| <telerik:GridBoundColumn DataField="WId" UniqueName="WId" Visible="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn HeaderText="Category" SortExpression="WRhText" |
| UniqueName="WCategory" DataField="WRhText" Visible="false"> |
| <ItemTemplate> |
| <asp:Label ID="lblWCategory" runat="server" CssClass="DefaultText" |
| Text='<%# GetWorklistTypText(Eval("WRhTask")) %>' /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn HeaderText="Description" SortExpression="WText" |
| UniqueName="WText" > |
| <ItemTemplate> |
| <asp:LinkButton ID="lbWText" runat="server" |
| CommandArgument='<%# Eval("WId") %>' |
| CommandName="ShowDetails" |
| Text='<%# Eval("WText") %>' OnCommand="btnShowDetails"> |
| </asp:LinkButton> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| <FilterMenu> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |