Greetings,
I have an web app in VB.net 2005 with the ASP.NET AJAX Q2 2010.
I am using RadAjaxManager to configure the call for the page – there are no Update Panels etc…
The partial postback thing working fine on (Localhost) However when I publish it out
to the test server I lose all AJAXfication and I get a full post back.
When the user clicks the ASP:Button I add a set of GUI elements programmatically to the page:
Dim rmtb As RadMaskedTextBox = New RadMaskedTextBox()
With rmtb
.Mask = "###.###.###.###"
.PromptChar = ""
.Width = "120"
.SelectionOnFocus = SelectionOnFocus.CaretToBeginning
.ID = "rtbIPAddress_2"
End With
daPlaceHolder.Controls.Add(rmtb)
And we get a partial post back – localhost
On the server we get a full postback – resetting other input fields in GUI.
Is there an issue with inserting the controls into PlaceHolder and not a ASP Panel (or Div).
Is ASP: PlaceHolder a bad thing here.. – I read something about to this effect at Telerik.com
Has anyone else experinced this issue and how did they debugg and or solve it?
Thanks!
David Gilden MCSD / Web Developer
function TemplateSelected2() {
if (window.opener != null && window.opener.StartNewLineItem != null) {
// Call the parent window function to create a new line item
if (templateID != "") {
window.opener.StartNewLineItem(templateID);
}
window.close();
}
}
Back on the main form, StartNewLineItem is meant to invoke the insert mode of the RadGrid
function StartNewLineItem(templateID) {
alert("start new line item");
alert(templateID);
// Start a new line item
var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
tableView.IsItemInserted = true;
tableView.rebind();
// Copy values from the selected template into the new line item
// <TODO>
alert("after insert mode");
}
The code runs without error, but does not put the RadGrid in Insert mode.
Is there a particular setting needed besides setting IsItemInserted=true and calling rebind() ?
Thanks.
<asp:ImageButton ID="btnPrintAll" runat="server" ImageUrl = "~/Images/NewDesign/btn-print-selected-dasr.png" CssClass="top" OnClientClick="MyPrint(); return false;" />
<telerik:ReportViewer ID="ReportViewer1" runat="server" style="display
:none">
</telerik:ReportViewer
>
http://www.telerik.com/help/reporting/faq-print-client.html
Hi,
I have a scenario, where i need to show a confirm msg box, for user. i.e.
Please find the sample code for yout reference.
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <div> |
| <asp:Label ID="Label1" runat="server" ForeColor="Red" Visible="false"></asp:Label> |
| <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None" |
| InputSize="34" Width="225px" ReadOnlyFileInputs="true" AllowedFileExtensions=".xls" |
| EnableFileInputSkinning="false"> |
| <Localization Select="Browse" /> |
| </telerik:RadUpload> |
| <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" OnClientClick="window.confirm('This will replace the current file. Do you want to continue?');" /> |
| </div> |
| </form> |
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| Label1.Visible = true; |
| if (RadUpload1.UploadedFiles.Count > 0) |
| { |
| //Code to save the file |
| Label1.Text = "File uploaded successfully"; |
| } |
| else |
| { |
| Label1.Text = "Select a file to upload"; |
| } |
| } |