Hi,
We use an incredibly old version of your ASP.NET Controls for AJAX: 2013.2.717.40 (we took over this website and it is huge and we haven't wanted to upgrade your controls because of the testing effort involved).
A previous developer is displaying (and hiding) a RadWindow during postbacks, with VisibleOnPageLoad = true (and false to hide it). I know, that should NOT be done.
To make this even worse, he had it wrapped in a RadWindowManager and the ascx control where the RadWindow is located, is wrapped in other controls that are all wrapped in RadAjaxPanels (or ajaxed in code-behind). I've removed the RadWindowManager...
I can NOT remove the RadAjax from this scenario, because of how complicated it is.
MY ISSUE: The RadWindow is being used as a Content Container, but none of the controls (asp linkbuttons) are displayed when the radwindow is displayed.
I know the reason for that, based on Telerik documentation I've read. Basically, in the scenario I've given, a separate html block is created for the RadWindow and there are no controls in that one. The other html block is also in the html source of the page and that one does have the buttons in it, but that isn't the one that is being used.
MY QUESTION: I've tried to add the linkbutton controls to the RadWindow ContentContainer in code, but they still don't show up in the RadWindow when it is displayed. Is that again because of how the developer is doing this, with VisibleOnPageLoad and the fact that it is wrapped in an ajax panel? Or should the controls have been added and displayed? The only place they were added, was in the html markup that is inside the ajax panel (the radwindow that doesn't get displayed) My code was this:
protected void Page_Init(object sender, System.EventArgs e)
{
var btn1 = new LinkButton();
var lbl = new Label();
lbl.Text = "label added";
btn1.Text = "button added";
btn1.PostBackUrl = _viewCartUrl;
PopupWindow.ContentContainer.Controls.Add(lbl);
PopupWindow.ContentContainer.Controls.Add(btn1);
}
The next thing I will try is to show the button with client-side script as you've documented in other examples, like this code that I'll run from a server side button click:
string script = "function f(){$find(\"" + PopupWindow.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
System.Web.UI.ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
Again though, my main question for now is: Should the controls that I add dynamically to a RadWindow, display when that RadWindow is shown by using the VisibleOnPageLoad property, when that radwindow is in a control that is wrapped in RadAjax?
Thanks,
Brent
Hello,
I have a whitespace issue for when you click the filter options button when trying to filter integer type columns as well as for date type columns. There is empty whitespace for options that do not apply to integer or date type columns such as contains etc.I would like there to be no whitespace and EqualTo right under NoFilter as well as IsNull right under LessThanOrEqualTo. The whitespace does not look good at all. Please see the attached photo to see the issue. Thanks in advance.
Hi,
I have the following code (simplified to show the issue) with three ComboBoxes. Two of them are populated using an Ajax call. There is also a table with client-side click events:
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadComboBox1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadComboBox1" /> <telerik:AjaxUpdatedControl ControlID="RadComboBox2" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadComboBox2"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadComboBox2" /> <telerik:AjaxUpdatedControl ControlID="RadComboBox3" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><table cellspacing="10"> <tr height="100"> <td style="width:100px;background-color:aquamarine;" onclick="alert('clicked');"></td> <td style="width:100px;background-color:burlywood" onclick="alert('clicked');"></td> <td style="width:100px;background-color:darkgreen" onclick="alert('clicked');"></td> <td style="width:100px;background-color:lightsteelblue" onclick="alert('clicked');"></td> </tr></table><telerik:RadComboBox ID="RadComboBox1" AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" runat="server"> <Items> <telerik:RadComboBoxItem Value="0" Text="[Select]" /> <telerik:RadComboBoxItem Value="1" Text="AAA" /> <telerik:RadComboBoxItem Value="2" Text="BBB" /> <telerik:RadComboBoxItem Value="3" Text="CCC" /> </Items> </telerik:RadComboBox><br /><telerik:RadComboBox ID="RadComboBox2" AutoPostBack="true" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged" runat="server" /><br /><telerik:RadComboBox ID="RadComboBox3" runat="server" />Code behind:
protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e){ RadComboBox2.Items.Clear(); for(int i = 1; i<10; ++i) { RadComboBoxItem item = new RadComboBoxItem(); item.Text = "AAA-" + i.ToString(); item.Value = i.ToString(); RadComboBox2.Items.Add(item); } RadComboBox2.SelectedIndex = 0;}protected void RadComboBox2_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e){ RadComboBox3.Items.Clear(); for (int i = 1; i < 10; ++i) { RadComboBoxItem item = new RadComboBoxItem(); item.Text = "BBB-" + i.ToString(); item.Value = i.ToString(); RadComboBox3.Items.Add(item); } RadComboBox3.SelectedIndex = 0;}
This is how to replicate the problem:
1. Select a value from RadComboBox1. This populates RadComboBox2 using Ajax.
2. Select a value from RadComboBox2. This populates RadComboBox3 using Ajax.
3. Click any of the table cells. The click event is "lost" (nothing happens).
4. Click another table cell. This time the click event is fired.
Why is that? Am I doing something wrong in the code?
Thanks,
Leszek
Hi,
I am using Kendo UI File Upload to upload files,it's working fine.
Now I need to add functionality to view(open) those uploaded file without download them.
For example: I have uploaded file 'test.pdf', when I click on button that file should open in view mode.
If 'test1.doc' then that file should be open in word format.
If Image file then it should be open in image format.
File download is working fine but I want to open those files without downloading.
Please help me to solve this.
I spent lot of time on that but didn't get any solution.
Thanks & Regards,
Bhavika
I cannot see a list of supported formats in ImageEditor documentation.
https://docs.telerik.com/devtools/aspnet-ajax/controls/imageeditor/overview
Which image formats are supported?
Is TIFF supported?
Thanks
Jason
I have a form with a set of fields including 1 captcha. I noticed Page.IsValid is always false if RadCaptcha1.IsValid is false even if all other validators for the other fields are passed.
Is it possible for the Page.IsValid to be true so that it is possible of me to find out if the other fields are really valid without I having to do one-by-one server validation check on individual fields?
Hi,
I am facing issue to getting GridDataItem on ItemRequested Event. My scenario is
In RadGrid, EditItemTemplate has one RadComboBox "rcbEmployee" and this RadComboBox bind on rcbEmployee_ItemsRequested event by calling one method "GetEmployee" that fatch the employee list to bind RadComboBox.
But "GetEmployee" method needed some parameter those can be get by GridDataItem.
So How can I access GridDataItem on "rcbEmployee_ItemsRequested" event or is there any work around ?
<telerik:RadGrid ID="RadGrid12" runat="server" MasterTableView-DataKeyNames="iIndex,pEmployee,FirstName" MasterTableView-ClientDataKeyNames="iIndex,pEmployee,FirstName" EnableLinqExpressions="false" ClientSettings-EnableRowHoverStyle="true" Width="100%" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" OnNeedDataSource="RadGrid1_NeedDataSource" AllowMultiRowSelection="true" AllowAutomaticUpdates="True" AutoGenerateColumns="False" > <MasterTableView GridLines="Both" HeaderStyle-HorizontalAlign="Center" AutoGenerateColumns="false" CommandItemDisplay="None" HorizontalAlign="NotSet"> <Columns> <telerik:GridTemplateColumn DataField="FirstName" ItemStyle-Width="200px" HeaderStyle-Width="200px" HeaderText="Name" UniqueName="FirstName"> <ItemTemplate> <asp:Label ID="lblFirstName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FirstName")%>'></asp:Label> </ItemTemplate> <EditItemTemplate> <telerik:RadComboBox runat="server" ID="rcbEmployee" EnableLoadOnDemand="True" DataTextField="Name" DataValueField="iIndex" OnItemsRequested="rcbEmployee_ItemsRequested" AutoPostBack="false" HighlightTemplatedItems="true" Height="300px" Width="180px" DropDownWidth="180px"> <ItemTemplate> <%# DataBinder.Eval(Container, "Text")%> </ItemTemplate> </telerik:RadComboBox> </EditItemTemplate> <FilterTemplate></FilterTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> </telerik:RadGrid>
Please help.
Thanks,
Sachin