
if (setRequestHeaderMethodExists) { xmlRequest.onreadystatechange = WebForm_CallbackComplete; callback.xmlRequest = xmlRequest;>>>>>>>>xmlRequest.open("POST", theForm.action, true); xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"); xmlRequest.send(postData); return; }
A linkButton onClientClick starts a new page and loads user control. In the user control I have radgrid and button those I have placed in ajaxpanel.
<asp:UpdatePanel runat="server" ID="ajaxPanel"> <ContentTemplate> <telerik:RadGrid ID="RadGrid1" Width="97%" PageSize="15" runat="server" AllowSorting="True" AllowFilteringByColumn="True" GridLines="None" CellSpacing="0" > <MasterTableView Width="100%" AutoGenerateColumns="False" DataKeyNames="GrowerId"> <Columns> <telerik:GridTemplateColumn UniqueName="TemplateColumn" SortExpression="CompanyName"> <HeaderTemplate> <asp:CheckBox id="headerChkbox" OnCheckedChanged="chkHeader_CheckedChanged" AutoPostBack="true" runat="server" Text="Select All" ></asp:CheckBox> </HeaderTemplate> <ItemTemplate> <asp:checkbox ID="chkGrowerId" runat="server" /> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" UniqueName="FirstName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LastName" HeaderText="LastName" SortExpression="LastName" UniqueName="LastName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="AddressLine" HeaderText="AddressLine" SortExpression="AddressLine" UniqueName="AddressLine"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" UniqueName="City"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="StateCode" HeaderText="StateCode" SortExpression="StateCode" UniqueName="StateCode"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ZipCode" HeaderText="ZipCode" SortExpression="ZipCode" UniqueName="ZipCode"> </telerik:GridBoundColumn> </Columns> </MasterTableView> <PagerStyle Mode="NextPrevAndNumeric" /> <FilterMenu EnableTheming="True"> <CollapseAnimation Duration="200" Type="OutQuint" /> </FilterMenu> </telerik:RadGrid> <asp:Button ID="btnCreateCsv" runat="server" Text ="Create Mailing List" OnClick="btnCreate_Click" /> </ContentTemplate> </asp:UpdatePanel>
User control loaded without any problem. But when I clicked the checkbox or button the checkedchanged/click event is not firing. Help please….
</asp:UpdatePanel>
tab="Home"), but they should appear in own "section" (name="Links"). As 'section' I mean something like name="Clipboard" in the sample below.<tools name="Clipboard" tab="Home"> <tool name="PasteStrip" size="large"/> <tool name="Cut" size="medium"/> <tool name="Copy" size="medium" shortcut="CTRL+C"/> <tool name="Print" size="medium" shortcut="CTRL+P"/> </tools>if (!IsPostBack){ //add a new Toolbar dynamically EditorToolGroup dynamicToolbar = new EditorToolGroup(); txtHTMLContent.Tools.Add(dynamicToolbar); //add a custom dropdown and set its items and dimension attributes EditorDropDown ddn = new EditorDropDown("CustomLinks1"); ddn.Text = "Links 1"; //Set the popup width and height ddn.Attributes["width"] = "90px"; ddn.Attributes["popupwidth"] = "180px"; ddn.Attributes["popupheight"] = "260px"; ///Add items ddn.Items.Add("a", "a"); // from DataBase ddn.Items.Add("b", "b"); //Add tool to toolbar dynamicToolbar.Tools.Add(ddn); //add a new Toolbar dynamically EditorToolGroup dynamicToolbar2 = new EditorToolGroup(); txtHTMLContent.Tools.Add(dynamicToolbar2); //add a custom dropdown and set its items and dimension attributes EditorDropDown ddn2 = new EditorDropDown("CustomLinks2"); ddn2.Text = "Links 2"; //Set the popup width and height ddn2.Attributes["width"] = "90px"; ddn2.Attributes["popupwidth"] = "180px"; ddn2.Attributes["popupheight"] = "70px"; //Add items ddn2.Items.Add("c", "c"); // from DataBase ddn2.Items.Add("d", "d"); //Add tool to toolbar dynamicToolbar2.Tools.Add(ddn2);}<telerik:RadGrid ID="RadGrid6" runat="server" DataSourceID="PictureDB" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" PageSize="5" GridLines="None" ShowGroupPanel="True" CellSpacing="0" AllowFilteringByColumn="True"> <ClientSettings> <Selecting CellSelectionMode="None"></Selecting> </ClientSettings> <MasterTableView DataKeyNames="PictureID" DataSourceID="PictureDB" AllowFilteringByColumn="False"> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="PictureID" DataType="System.Int32" FilterControlAltText="Filter PictureID column" HeaderText="PictureID" SortExpression="PictureID" UniqueName="PictureID" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Extension" FilterControlAltText="Filter Extension column" HeaderText="Extension" SortExpression="Extension" UniqueName="Extension"> </telerik:GridBoundColumn> <telerik:GridCheckBoxColumn DataField="IsNew" DataType="System.Boolean" FilterControlAltText="Filter IsNew column" HeaderText="IsNew" SortExpression="IsNew" UniqueName="IsNew"> </telerik:GridCheckBoxColumn> <telerik:GridBoundColumn DataField="SKU" FilterControlAltText="Filter SKU column" HeaderText="SKU" SortExpression="SKU" UniqueName="SKU"> </telerik:GridBoundColumn> </Columns> <Columns> <telerik:GridBinaryImageColumn DataField="PictureBinary"></telerik:GridBinaryImageColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"></FilterMenu></telerik:RadGrid><telerik:RadGrid ID="RadGrid1" DataSourceID="DataSourceMP" runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" PageSize="5" GridLines="None" ShowGroupPanel="True" CellSpacing="0" AllowFilteringByColumn="True"> <PagerStyle Mode="NumericPages"></PagerStyle> <MasterTableView DataSourceID="DataSourceMP" AllowMultiColumnSorting="True" GroupLoadMode="Server"> <NestedViewTemplate> <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0"> <Tabs> <telerik:RadTab runat="server" Text="Pricing" PageViewID="PageView1"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Online Detail" PageViewID="PageView2"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Images" PageViewID="PageView3"> </telerik:RadTab> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false"> <telerik:RadPageView runat="server" ID="PageView1"> <%--this an a master table--%> <%--this an a master table End--%> </telerik:RadPageView> <telerik:RadPageView runat="server" ID="PageView2" Width="460px"> <%--this an a master table--%> <%--this an a master table End--%> </telerik:RadPageView> <telerik:RadPageView runat="server" ID="PageView3"> <%--this an a master table--%> <asp:Label ID="Label3" Font-Bold="true" Font-Italic="true" Text='<%# Eval("Item_Number") %>' Visible="false" runat="server"></asp:Label> <telerik:RadGrid ID="RadGrid5" runat="server" DataSourceID="PictureDB" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" PageSize="5" GridLines="None" ShowGroupPanel="True" CellSpacing="0" AllowFilteringByColumn="True"> <ClientSettings> <Selecting CellSelectionMode="None"></Selecting> </ClientSettings> <MasterTableView DataKeyNames="PictureID" DataSourceID="PictureDB" AllowFilteringByColumn="False"> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="PictureID" DataType="System.Int32" FilterControlAltText="Filter PictureID column" HeaderText="PictureID" SortExpression="PictureID" UniqueName="PictureID" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Extension" FilterControlAltText="Filter Extension column" HeaderText="Extension" SortExpression="Extension" UniqueName="Extension"> </telerik:GridBoundColumn> <telerik:GridCheckBoxColumn DataField="IsNew" DataType="System.Boolean" FilterControlAltText="Filter IsNew column" HeaderText="IsNew" SortExpression="IsNew" UniqueName="IsNew"> </telerik:GridCheckBoxColumn> <telerik:GridBoundColumn DataField="SKU" FilterControlAltText="Filter SKU column" HeaderText="SKU" SortExpression="SKU" UniqueName="SKU"> </telerik:GridBoundColumn> </Columns> <Columns> <telerik:GridBinaryImageColumn DataField="PictureBinary"></telerik:GridBinaryImageColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"></FilterMenu> </telerik:RadGrid> <%--this an a master table End--%> </telerik:RadPageView> </telerik:RadMultiPage> </NestedViewTemplate> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn> </MasterTableView> <ClientSettings AllowDragToGroup="false"> <Selecting CellSelectionMode="None"></Selecting> </ClientSettings> <FilterMenu EnableImageSprites="False"></FilterMenu></telerik:RadGrid>
Hi:
My radgrid have a text column with values 1/2, LARGE, MEDIUM..etc
When I export the grid to excel or csv the value LARGE, MEDIUM show up fine..
BUT
1/2 values are exported as 2-Jan and if you click in the actual cell the value showed is 1/1/2012
I try setting the column to datatype to System.String, but same results.
Jose
<
CommandItemSettings AddNewRecordText="Add New Quote Item" />
When I click on Add New Quote Item it inserts a row in grid, now I want to save the previous insert item, if click Add New Quote Item again. i.e. click Add. inserts a row in grid, type in text for each columns and then when I click Add agian it should save my previouly inserted row and then insert a new row in grid.
Or Grid should allow me to add multiple rows without saving them.
Please suggest.
Thanks,
Aditi
Hello Telerik Team,
I have one problem with Rad AJAX.
In my application I am using Master Page. And there is a label to print the name of the member selected.
Now, member is selected from a User control on each page having the above master pages. So accoriding to the member selected from the User Control,
the label Text at the top of Master page should be changed. But it is not happening.
Can you tell me what could be the problem??
The sceneraio is like this
<MASTER [Member Name]>
<ASPX PAGE>
<USER CONTROL>
<Member Name>
</ USER CONTROL>
</ ASPX PAGE>
</ MASTER>
So when the Member name changes in user control, the Member name (ie Label) should also change. This is done when the whole page is refreshed, but as I am using AJAX in my ASPX page, the page is not getting refreshed.
How can I solve this?