Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
222 views
My asp.net ajax UI rad grid with telerik ui for Ajax Q1 2014 fails with an error stating "invalid XHTML. RadGrid has to render with correct HTML in order to export to PDF.  Parse error: Name cannot begin with the '=' character.  Do you have any advice?
Suad
Top achievements
Rank 1
 answered on 13 May 2018
0 answers
65 views

For RadDatePicker calendar control. I am trying to make the calendar popup control to be keyboard accessible by adding attributes: EnableKeyboardNavigation="true". Tabbing to the calendar and hitting spacebar or Enter key open up the calendar popup. This works well in navigating inside the popup calendar but if you don't change the existing date in the popup calendar and you hit spacebar or Enter key, the popup doesn't close or no window event was happening. It will close only if you change the date. I want the popup calendar to close even without updating the existing date.
Please help...I can't find a solutions from the internet....

Is this a known issues for Telerik RadDatePicker?  thanks.

German
Top achievements
Rank 1
 asked on 11 May 2018
8 answers
473 views
Hello,

I am using Telerik ver 2012.1.411.35. On a UI i have a RadDatePicker and a RadTimePicker. When I open the RadTimePicker's popup and then open RadDatePicker's popup, bot remain open.

To demonstrate I have created a fresh web app in VS and added both the controls on the UI. Please see the attachment. Is this a known behavior?

Thanks
Rohit
German
Top achievements
Rank 1
 answered on 11 May 2018
5 answers
2.7K+ views
where i can download sample demo app that located in 

http://demos.telerik.com/aspnet-ajax/
with source and project file

for offline use?
Marin Bratanov
Telerik team
 answered on 11 May 2018
4 answers
204 views

I have a filter column in my radgrid. Recently, I upgraded my telerik controls and the filter dropdown looks weird with a select word in it.

How can I remove the select word and show just the dropdown arrow.

Below is the rendered css from the developer tools:

<a id="ctl00_ctl00_MainContentPlaceHolderContent_ContentPlaceHolder1_rgDocumentManagement_ctl00_ctl02_ctl03_RadComboBoxPlanFilter_Arrow" style="overflow: hidden; display: block; position: relative;">select</a>
Vessy
Telerik team
 answered on 11 May 2018
1 answer
52 views
I built a web application which has a master and details page. In the master page, I added a grid. In the details page, I am performing some calculations and add the results into a textbox. I want to get the value of the textbox in the details page and show it on the main page as a row in the corresponding idea. Any ideas how to do that programmatically?
Attila Antal
Telerik team
 answered on 11 May 2018
3 answers
420 views

I want to add a custom header to each page of my pdf export.

My grid code has the following declaration.

1 - I have a left margin of 20px but my header does not align with the rest of the export. How can I add a padding to it.

2 - I also want to add a horizontal rule to each page just above the header. If I add it to the string below it just shows in the left cell and it also breaks my header into two separate pages.

string ExportTitle = "<b>ClientName</b><br />  " + " ReportName";
grid.ExportSettings.Pdf.PageHeader.LeftCell.Text = ExportTitle;
grid.ExportSettings.Pdf.PageHeader.LeftCell.TextAlign = GridPdfPageHeaderFooterCell.CellTextAlign.Left;                grid.ExportSettings.Pdf.PageLeftMargin = Unit.Pixel(20);
grid.ExportSettings.Pdf.PageRightMargin = Unit.Pixel(20);

 

Attila Antal
Telerik team
 answered on 11 May 2018
2 answers
221 views

Hi,

We are using latest RadGrid control with visual studio 2017. I have asp.net c# page with regular dropdownlist and RadGrid. Radgrid clientside binding should happen only when an item is selected in dropdownlist by passing selected value of dropdown to the webservice call. How can I do this binding on client side.

something like this:

protected void ddlDropdownList_SelectedIndexChanged(object sender, EventArgs e)
{   //clientside binding of grid should happen by passing ddlDropdownList.SelectedValue

}

Marin Bratanov
Telerik team
 answered on 11 May 2018
0 answers
168 views

We have a RadListBox where we are adding and removing items via client side code (sample add shown):

ListBox_AddItem = function (listbox, text, value) {
    var item = new Telerik.Web.UI.RadListBoxItem();
    item.set_value(value);
    item.set_text(text);
    var attributes = item.get_attributes();
    attributes.setAttribute("Name", text);
    attributes.setAttribute("ID", value);
    listbox.trackChanges();
    listbox.get_items().add(item);
    item.bindTemplate();
    listbox.commitChanges();

    return false;
}

<telerik:RadListBox runat="server" ID="RadListBox" ClientIDMode="AutoID"
                                        OnClientLoad="RadListBox_OnClientLoad">
                                        <ItemTemplate>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <%# Eval("Name") %>
                                                    </td>
                                                    <td id="DeleteColumn" style="float: right">
                                                        <a href="" onclick="return deleteRequestedBy('<%# Eval("id") %>')">
                                                            <img src="Images/deletered.png" width="20" height="20" alt="submit" />
                                                        </a>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                        <ClientItemTemplate>
                                            <table>
                                                <tr>
                                                    <td>
                                                        #= Attributes.Name#
                                                    </td >
                                                    <td id="DeleteColumn" style="float:right">
                                                        <a href="" onclick="return deleteRequestedBy('#= Attributes.ID#')">
                                                            <img src="Images/deletered.png" width="20" height="20" alt="submit" />
                                                        </a>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ClientItemTemplate>

                                    </telerik:RadListBox>

The ListBox is in a Tab on a RadTabStrip. When we add or remove items from the ListBox and then click on one of the other tabs we get an error:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

at System.Collections.ArrayList.get_Item(Int32 index)
at System.Web.UI.StateManagedCollection.System.Collections.IList.get_Item(Int32 index)
at Telerik.Web.UI.ControlItemCollection.get_Item(Int32 index)
at Telerik.Web.UI.ClientStateLogPlayer`1.Remove(ControlItemCollection items, Int32 index)
at Telerik.Web.UI.ClientStateLogPlayer`1.Play(ClientStateLogEntry entry)
at Telerik.Web.UI.ClientStateLogPlayer`1.Play(IEnumerable`1 clientStateLogEntry)
at Telerik.Web.UI.RadListBox.LoadLogEntries(RadListBoxClientState clientState)
at Telerik.Web.UI.RadListBox.LoadClientState(RadListBoxClientState clientState)
at Telerik.Web.UI.RadListBox.LoadPostData(String postDataKey, NameValueCollection postCollection)
at Telerik.Web.UI.RadDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I've tried the solutions suggested (along with some variations):

https://www.telerik.com/forums/transfer-throws-exception

https://docs.telerik.com/devtools/aspnet-ajax/controls/listbox/troubleshooting/index-out-of-range-on-item-transfer-

However, none of the suggestions worked and don't seem to quite apply in this scenario i.e. we are not transferring.

 

 

Kieran
Top achievements
Rank 1
 asked on 11 May 2018
8 answers
2.3K+ views
How can I force a textbox to make all letters uppercase?
Chamara
Top achievements
Rank 1
 answered on 11 May 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?