
Hello,
We currently own the full suite of your ASP.NET AJAX and need assistance choosing which control would be best for one of the pages in our site given our scenario.
We have a typical e-commerce website built using VS.NET 2005/C# running on .NET 2.0, which uses various controls from the Telerik suite including the AJAX functionality.
We have a page where the user completes their purchase by entering their payment information, after which they click the “Process Your Order” button to complete the purchase (screen shot attached) which validates their payment information and writes it to our db. During this process, the user is left waiting for without any indication as to why. We’d like to provide a message to the user indicating processing is occurring and also prevent them from pressing the button multiple times. Finally, upon successful validation and db writing, we need to send them to the next “confirmation” page.
I have provided detailed information below regarding how we need the suggested control to function along screen shot of the page.
Expected control behavior
Upon the user pressing the “Process Your Order” the following should occur:
· The page’s current validation ensures that required fields aren’t left blank, and the expiration date hasn’t passed (using CustomValidator logic).
· If validation succeeds, then:
o A control would display a custom message to the user indicating to the user the site is processing their order. This message must be displayed centered within their browser and it prevents them from interacting with the page (modal).
o If their payment information successfully processes, they’re sent to the next page (Response.Redirect() ).
o If they’ve given invalid payment information, the control disappears, they’re once again allowed to use the page to correct their information as indicated by the validators’ error message(s), and they do not proceed to the next page.
· If validation fails, then no message is displayed by the control (other than the validators’ error messages), and the user correct their errors.
We appreciation your assistance in this matter and look forward to any direction you provide.
| <telerik:RadAjaxManager ID="AJAXManager" runat="server" EnableAJAX="true"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="btnSaveNow"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="StatusImage" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="lblStatustxt"/> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnSaveNow" /> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnSaveLater" /> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnRefreshCommand" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="btnSaveLater"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="StatusImage" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="lblStatustxt"/> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnSaveNow" /> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnSaveLater" /> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnRefreshCommand" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="btnRefreshCommand"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="StatusImage" LoadingPanelID="RadAjaxLoadingPanel1"/> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="lblStatustxt"/> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnSaveNow" /> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnSaveLater" /> |
| </UpdatedControls> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnRefreshCommand" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
foreach
(GridDataItem item in Radgrid1.MasterTableView.Items)
{
foreach (GridColumn col in Radgrid1.MasterTableView.RenderColumns)
{
}
}
This will loop through all the items in the MasterTable. Waht's the solution for DetailTable.
I have one detail table and I want to loop through this detail table.
Thanks.
Jo.
| RadGrid gridFileView = new RadGrid(); |
| gridFileView.ID = gridFileViewID; |
| gridFileView.Skin = "Vista"; |
| gridFileView.AllowPaging = true; |
| gridFileView.PageSize = 20; |
| gridFileView.AllowSorting = true; |
| gridFileView.ClientSettings.AllowRowsDragDrop = true; |
| gridFileView.ClientSettings.Selecting.AllowRowSelect = true; |
| pnlFileView.Controls.Add(gridFileView); |
| AddExistingFiles(gridFileView, docs); |
| private static void AddExistingFiles(RadGrid gridFileView, ExternalDocuments docs) |
| { |
| // Bind files to grid |
| gridFileView.DataSource = docs; |
| gridFileView.AutoGenerateColumns = false; |
| gridFileView.MasterTableView.DataKeyNames = new string[] { "Guid" }; |
| AddGridRow(gridFileView); |
| gridFileView.DataBind(); |
| } |
| private static void AddGridRow(RadGrid gridFileView) |
| { |
| GridBoundColumn boundColumn; |
| boundColumn = new GridBoundColumn(); |
| boundColumn.DataField = "DocumentType"; |
| boundColumn.HeaderText = "Type"; |
| gridFileView.MasterTableView.Columns.Add(boundColumn); |
| boundColumn = new GridBoundColumn(); |
| boundColumn.DataField = "Uploaded"; |
| boundColumn.HeaderText = "Date added"; |
| gridFileView.MasterTableView.Columns.Add(boundColumn); |
| boundColumn = new GridBoundColumn(); |
| boundColumn.DataField = "Title"; |
| boundColumn.HeaderText = "Title"; |
| gridFileView.MasterTableView.Columns.Add(boundColumn); |
| boundColumn = new GridBoundColumn(); |
| boundColumn.DataField = "Filename"; |
| boundColumn.HeaderText = "File"; |
| gridFileView.MasterTableView.Columns.Add(boundColumn); |
| boundColumn = new GridBoundColumn(); |
| boundColumn.DataField = "Description"; |
| boundColumn.HeaderText = "Description"; |
| boundColumn.AllowSorting = false; |
| gridFileView.MasterTableView.Columns.Add(boundColumn); |
| boundColumn = new GridBoundColumn(); |
| boundColumn.DataField = "FileSize"; |
| boundColumn.HeaderText = "File size"; |
| boundColumn.AllowSorting = false; |
| gridFileView.MasterTableView.Columns.Add(boundColumn); |
| } |
RadDock dockableObject = new RadDock();
dockableObject.Visible = true;
dockableObject.Style["margin-top"] = "5px";
DockCommand cmdWebPart = new DockCommand();
DockCloseCommand cmdCloseCommand = new DockCloseCommand();
DockExpandCollapseCommand cmdExpandCollapse = new DockExpandCollapseCommand();
cmdWebPart.Text = "View Information";
dockableObject.Commands.Add(cmdWebPart);
dockableObject.Commands.Add(cmdCloseCommand);
dockableObject.Commands.Add(cmdExpandCollapse);
cmdCloseCommand.AutoPostBack = true;
Whenever i add commands dynamically, command buttons are not showing up correctly even if im using default skins.
Your response is truly appreciated.
Thanks,
Rex