Hi everyone,
It is possible to create a button in the same kind of "save as" ? In fact, in want a button that, once clicked, will open a radWindow that will allow the client to choose a path and will return the path once closed (Just the path, without the name of the file. Ex : C:\User\Joblo\Desktop\). It this any tool that can allow such a thing ?
Thank you,
David
<asp:ImageMap ID="EntarnceImage" hotspotmode="PostBack" onclick="RegionMap_Clicked" runat="server" > </asp:ImageMap>protected void RegionMap_Clicked(Object sender, ImageMapEventArgs e) { excuteWindowClose.Text = "<script type='text/javascript'>CloseAndNavigate('../../HomePage.aspx')</" + "script>"; }<telerik:GridButtonColumn CommandName="Delete" Text="Delete"></telerik:GridButtonColumn><%@ Control Language="vb" AutoEventWireup="false" CodeBehind="GroupMaintenance.ascx.vb" Inherits="abc.GroupMaintenance" %><%@ Register Assembly="Telerik.OpenAccess.Web, Version=2011.2.713.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342" Namespace="Telerik.OpenAccess" TagPrefix="telerik" %><div> <div> <h2> Group Maintenance </h2> <p id="divMsgs" runat="server"> <asp:Label ID="Label1" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#FF8080"></asp:Label> <asp:Label ID="Label2" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#00C000"></asp:Label> </p> </div> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function ShowGroupMaintEditForm(id, rowIndex) { var grid = $find("<%= RadGridGroupMaint.ClientID %>"); var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element(); grid.get_masterTableView().selectItem(rowControl, true); window.radopen("GroupMaintenanceEdit.aspx?ListId=" + id, "GroupMaintDialog"); return false; } function ShowGroupMaintInsertForm() { window.radopen("GroupMaintenanceEdit.aspx", "GroupMaintDialog"); return false; } function refreshGroupMainGrid(arg) { if (!arg) { $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("Rebind"); } else { $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("RebindAndNavigate"); } } </script> </telerik:RadCodeBlock> <telerik:RadGrid ID="RadGridGroupMaint" runat="server" Skin="Office2007" AllowPaging="True" Width="100%" OnItemCreated="RadGridGroupMaint_ItemCreated" DataSourceID="SqlDataSource_List" AllowAutomaticDeletes="True" AutoGenerateDeleteColumn="False" CellSpacing="0" GridLines="None" Font-Size="7px" PageSize="20" OnItemCommand="RadGridGroupMaint_ItemCommand" OnItemDataBound="RadGridGroupMaint_ItemDataBound" ShowStatusBar="True" AutoGenerateColumns="False"> <PagerStyle Mode="NumericPages" /> <MasterTableView AutoGenerateColumns="false" DataKeyNames="ListId" Width="100%" CommandItemDisplay="Top" PageSize="16"> <Columns> <telerik:GridTemplateColumn UniqueName="TemplateEditColumn"> <ItemTemplate> <asp:HyperLink ID="EditLink" runat="server" Text="Edit"> </asp:HyperLink> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="ListCode" HeaderText="List Code" ReadOnly="true" SortExpression="ListCode" UniqueName="ListCode"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" UniqueName="Name"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" UniqueName="Description"> </telerik:GridBoundColumn> <telerik:GridDropDownColumn DataField="ListType" DataSourceID="SqlDataSource_ListType" HeaderText="List Type" ListTextField="Description" ListValueField="ListType" UniqueName="ListType" DropDownControlType="DropDownList"> </telerik:GridDropDownColumn> <telerik:GridBoundColumn DataField="EffectiveDate" HeaderText="Effective Date" SortExpression="EffectiveDate" UniqueName="EffectiveDate" DataFormatString="{0:d}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ExpirationDate" HeaderText="Expiration Date" SortExpression="ExpirationDate" UniqueName="ExpirationDate" DataFormatString="{0:d}"> </telerik:GridBoundColumn> <telerik:GridDropDownColumn DataField="ParentListId" DataSourceID="SqlDataSource_ListID" HeaderText="Parent List" ListTextField="Description" ListValueField="ListId" UniqueName="ListId" DropDownControlType="DropDownList"> </telerik:GridDropDownColumn> <telerik:GridBoundColumn DataField="OwnerId" HeaderText="Owner Id" SortExpression="OwnerId" UniqueName="OwnerId"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="WebAccessType" HeaderText="Web Access Type" SortExpression="WebAccessType" UniqueName="WebAccessType"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="MembersModifiedDate" HeaderText="Members Modified Date" SortExpression="MembersModifiedDate" UniqueName="MembersModifiedDate" DataFormatString="{0:d}"> </telerik:GridBoundColumn> <telerik:GridButtonColumn CommandName="Delete" Text="Delete"> </telerik:GridButtonColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> <CommandItemTemplate> <a href="#" onclick="return ShowGroupMaintInsertForm();">Add New Group</a> </CommandItemTemplate> </MasterTableView> <ClientSettings> <Selecting AllowRowSelect="true" /> </ClientSettings> <FilterMenu EnableImageSprites="False"> </FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007"> </HeaderContextMenu> </telerik:RadGrid> <telerik:RadWindowManager ID="RadWindowManagerGroupMaint" runat="server" Skin="Office2007" Behaviors="Close,Move"> <Windows> <telerik:RadWindow Skin="Office2007" ID="GroupMaintDialog" runat="server" Title="Group Maintenance" Height="730px" Width="590px" Left="150px" ReloadOnShow="true" Modal="true" /> </Windows> </telerik:RadWindowManager> <asp:SqlDataSource ID="SqlDataSource_List" runat="server" ConnectionString="<%$ ConnectionStrings:myListConnectionString %>" SelectCommand="SELECT * FROM dev.myList ORDER BY [ListCode]" DeleteCommand="DELETE FROM dev.myList WHERE [ListID] = @ListID"> <DeleteParameters> <asp:Parameter Name="ListID" Type="Int32" /> </DeleteParameters> </asp:SqlDataSource> <asp:SqlDataSource ID="SqlDataSource_ListID" runat="server" ConnectionString="<%$ ConnectionStrings:myListIDConnectionString %>" SelectCommand="SELECT * FROM dev.myList ORDER BY [ListCode]" DeleteCommand="DELETE FROM dev.myList WHERE [ListID] = @ListID"> <DeleteParameters> <asp:Parameter Name="ListID" Type="Int32" /> </DeleteParameters> </asp:SqlDataSource> </div><telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGridGroupMaint"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGridGroupMaint" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadWindowManagerGroupMaint"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGridGroupMaint" /> <telerik:AjaxUpdatedControl ControlID="RadWindowManagerGroupMaint" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy>RadScriptManager
RadAjaxManager (with only the settings for the buttons in the page, e.g the button that prints a pdf file of the page)
Control_B(with the button)
RadAjaxLoadingPanel
RadAjaxManagerProxy
XmlControl
Button
UserControl
UserControl
UserControl,ecc..(other user controls)
when I click the Button inside Control_B all the user controls are refreshed and the postback isn't be setted to true, so the page is all recreated and the Initial requests are remaked(and this is not correct)
what can I do to refresh only control_A and Control_B?With which radajax configuration can I do what I want?
For Each obj_hit As hit In hits If Month(hit.date_created) = 1 Then 'jan ElseIf Month(hit.date_created) = 2 Then 'feb ElseIf Month(hit.date_created) = 3 Then 'march ElseIf Month(hit.date_created) = 4 Then '.. ElseIf Month(hit.date_created) = 5 Then ElseIf Month(hit.date_created) = 6 Then ElseIf Month(hit.date_created) = 7 Then ElseIf Month(hit.date_created) = 8 Then ElseIf Month(hit.date_created) = 9 Then ElseIf Month(hit.date_created) = 10 Then ElseIf Month(hit.date_created) = 11 Then ElseIf Month(hit.date_created) = 12 Then End IfNext<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frame.aspx.vb" Inherits="Maintenance_frame" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <iframe src="http://rome/mypage.aspx" width="100%" style="overflow:hidden;overflow-y:hidden;overflow-x:hidden" height="500px" scrolling="no">Your browser does not suppport frames.</iframe> </div> </form> </body> </html><telerik:RadGrid ID="rgVendor" runat="server" AllowSorting="True" AutoGenerateColumns="False" GridLines="None" PageSize="5" Skin="WebBlue" Width="100%" AllowFilteringByColumn="True" CellSpacing="0"> <FilterMenu EnableImageSprites="False"> </FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default" EnableImageSprites="True"> </HeaderContextMenu> <MasterTableView ClientDataKeyNames="vnd_code" TableLayout="Fixed" CommandItemDisplay="Top"> <CommandItemSettings ExportToPdfText="Export to PDF" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> </ExpandCollapseColumn> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> <CommandItemTemplate> <table border="0" cellpadding="2" cellspacing="2" width="100%"> <tr> <td nowrap style="width: 75px; text-align: left;"> <asp:LinkButton ID="lnkAdd" runat="server" OnClientClick="add_onclick();return false;" Font-Underline="false" ToolTip="Add New Vendor Master" TabIndex="1"><img src="../Images/form-addnew.png" border="0" /> Add New</asp:LinkButton> </td> <td class="labelnorm" style="width: 80%; text-align: center; font-weight: bold"> Vendor Master Entry </td> <td nowrap style="width: 40px"> <asp:LinkButton ID="lnkClear" runat="server" CommandName="RemoveFilters" OnClientClick="javascript:$find('txtCode').set_value('');" Font-Underline="false" ToolTip="Clear Filters" TabIndex="1"><img src="../Images/form-clear.png" border="0" /> Clear</asp:LinkButton> </td> <td nowrap style="width: 5px;"> - </td> <td nowrap style="width: 50px"> <asp:LinkButton ID="lnkRefresh" runat="server" CommandName="RebindGrid" Font-Underline="false" ToolTip="Refresh Organization List" TabIndex="1"><img src="../Images/form-refresh.png" border="0" /> Refresh</asp:LinkButton> </td> <td nowrap style="width: 5px"> - </td> <td nowrap style="width: 50px"> <asp:LinkButton ID="lnkExcel" runat="server" CommandName="ExportToExcel" CssClass="clink" Font-Underline="false" ToolTip="Click To Export List To Excel" TabIndex="1"><img src="../Images/form-excel.png" border="0" /> XLS</asp:LinkButton> </td> <td nowrap style="width: 5px"> - </td> <td nowrap style="width: 50px"> <asp:LinkButton ID="lnkCSV" runat="server" CommandName="ExportToCSV" CssClass="clink" Font-Underline="false" ToolTip="Click To Export List To CSV" TabIndex="1"><img src="../Images/form-csv-export.png" border="0" /> CSV</asp:LinkButton> </td> <td nowrap style="width: 5px"> - </td> <td nowrap style="width: 50px"> <asp:HyperLink ID="lnkClose" runat="server" Font-Underline="false" ToolTip="Click To Close This Menu" TabIndex="1" Target="_top"><img src="../Images/form-close.png" border="0" /> Close</asp:HyperLink> </td> </tr> </table> </CommandItemTemplate> <Columns> <telerik:GridTemplateColumn UniqueName="TemplateColumn" AllowFiltering="false"> <HeaderStyle Width="70px" /> <ItemStyle Wrap="false" HorizontalAlign="Center" /> <ItemTemplate> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="vnd_code" HeaderText="Vendor Code" ReadOnly="True" SortExpression="vnd_code" UniqueName="vnd_code"> <HeaderStyle Font-Bold="True" HorizontalAlign="Left" Width="80px" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="vnd_description" HeaderText="Description" SortExpression="vnd_description" UniqueName="vnd_description"> <HeaderStyle Font-Bold="True" HorizontalAlign="Left" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="vnd_email" HeaderText="Email" SortExpression="vnd_email" UniqueName="vnd_email"> <HeaderStyle Font-Bold="True" HorizontalAlign="Left" Width="200px" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="vnd_file_format" HeaderText="File Format" SortExpression="vnd_file_format" UniqueName="vnd_file_format"> <HeaderStyle Font-Bold="True" HorizontalAlign="Center" Width="90px" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> <Selecting AllowRowSelect="True" /> <Resizing AllowColumnResize="True" AllowResizeToFit="True" EnableRealTimeResize="True" /> </ClientSettings> </telerik:RadGrid>