Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
280 views
Hello,

I've noticed an issue recently with a web application where some of the RadDatePickers' DatePopUp Buttons are no longer displaying, and in the buttons place, the Button Tooltip is displayed as a link which reads - "Open the Calendar popup." This RadDatePicker is on a user control that is used as the Edit form for a RadGrid. That same RadGrid also has a GridDateTimeColumn which allows filtering. The same issue is occurring with the RadDatePicker for the filter of that column.

I use RadDatePickers on other pages in the application, however, they are displaying properly.

Here is the definition of the RadDatePicker:
<telerik:RadDatePicker ID="rdpReceivedDt" runat="server" OnPreRender="rdpReceivedDt_PreRender">
</telerik:RadDatePicker>

I've tried specifying a Skin, and changing settings for the DatePopUpButton properties, all of which have not fixed the issue. In the PreRender I am only checking to see if the grid is in Edit or Insert mode and then setting the selected value of the RadDatePicker.

I would really appreciate any ideas as to why this is happening... I'm using version 2010.3.1317.35 of the controls.

Also, I've attached a screenshot of the issue.

Thanks!
Casey
Maria Ilieva
Telerik team
 answered on 11 Sep 2015
3 answers
150 views

A client of mine is looking for a grid that acts like excel, using the BatchEdit feature. The problem i'm running into is dynamically binding a ​RadComboBox based off data from ​within that row. i.e. Below, based off the DivisionID that is selected in the row i'm editing, i need to pull all teams that are in that division and databind the RadComboBox. any thoughts?:

 

<telerik:RadGrid ID="gridData" runat="server" Skin="Telerik" OnNeedDataSource="NeedDataSource_Football"
    AutoGenerateColumns="false" AllowSorting="true" AllowFilteringByColumn="true" ShowHeader="true" ShowFooter="true" Width="100%"
     OnFilterCheckListItemsRequested="RadGrid1_FilterCheckListItemsRequested" FilterType="CheckList" GridLines="Both" AllowPaging="false">
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView DataKeyNames="ID" CommandItemDisplay="Top" EditMode="Batch">
        <BatchEditingSettings EditType="Row" />
        <Columns>
            <telerik:GridBoundColumn DataField="FullName" SortExpression="FullName" HeaderText="Name" FilterCheckListEnableLoadOnDemand="true" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DivisionID" HeaderText="Division" FilterCheckListEnableLoadOnDemand="true"></telerik:GridBoundColumn>
            <telerik:GridTemplateColumn DataField="TeamID" HeaderText="Team" FilterCheckListEnableLoadOnDemand="true"
                AllowFiltering="true" SortExpression="TeamID" AutoPostBackOnFilter="true" UniqueName="TeamID">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem, "TeamName") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadComboBox ID="ddlTeams" runat="server" DataValueField="TeamID" DataTextField="TeamName"></telerik:RadComboBox>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Konstantin Dikov
Telerik team
 answered on 11 Sep 2015
1 answer
103 views

Hello,

 is it possible to have a RadTileList with input controls (see sample below) and open the browsers' standard context menu on right click? We cannot figure out how to make it work. 

<telerik:RadTileList runat="server" ID="RadTileList1" TileRows="4" CssClass="myTileList" SelectionMode="None" EnableDragAndDrop="True" Width="100%">
        <Groups>
            <telerik:TileGroup>
                <telerik:RadContentTemplateTile ID="RadContentTemplateTile1" runat="server" Shape="Wide" Width="250px" Name="RadContentTemplateTile1">
                    <ContentTemplate>
                        <div>
                            <table style="width:100%;">
                                <tr>
                                    <td>
                                        <asp:Label ID="​lblExample" ​Text="Example" runat="server"></asp:Label>
                                    </td>
                                    <td style="text-align: right;">
                                        <telerik:RadTextBox ID="​txtExample" runat="server" Width="470px" Resize="None"></telerik:RadTextBox>                                                                              </telerik:RadComboBox>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </ContentTemplate>
                </telerik:RadContentTemplateTile>

            </telerik:TileGroup>
        </Groups>
    </telerik:RadTileList>​

And the javascript:

        function canceljQueryEventBubbling(evt) {
            //prevent the event from bubbling, i.e., reaching the Tile element where it will initiate dragging
            switch (evt.which) {
            case 1:
                evt.stopPropagation();
                break;
                case 3:
                    alert('bla');
            default:
                break;
            }
        }
        function disableTileDragOnChildElems() {
            //a selector for all input elements in the tile. Useful, for example, for buttons
            $telerik.$(".RadContentTemplateTile input").mousedown(canceljQueryEventBubbling);

            //Sys.Application.remove_load(disableTileDragOnChildElems);
        }
        Sys.Application.add_load(disableTileDragOnChildElems);

 

Any help will be appreciated!

Marin Bratanov
Telerik team
 answered on 11 Sep 2015
3 answers
190 views

Radbutton as a radio button does not work (you cannot toggle a set of radio buttons within a group) when placed in an editform template in radgrid.

They work outside of the radgrid but I need them to work in the radgrid

Is there something special that needs to be done when inside a template editform in radgrid.

 

Danail Vasilev
Telerik team
 answered on 11 Sep 2015
9 answers
499 views

Dear Telerik Experts,

I am using Telerik UI for ASP.NET AJAX 2014 Q1, I am experiencing some issues which I could not explain. Basically I use a grid and want to export it to PDF, I simply call RadGrid1.MasterTableView.ExportToPdf(); to do ​so. The grid contains some chinese characters. It works fine in local debug, but when I deploy the website to Azure, the produced pdf with all characters showing as boxes. Initially I thought it was font not available issue but looks like the font indeed is available and it can be seen in acrobat reader, but it shows different code than the one that generated locally. The font used is called "楷体" which is a chinese font. The one that generated locally which works fine showing as 1DACA5+楷体 and 200101+楷体, the one generated from Azure website showing as 8A7FA8+楷体 and D66FD6+楷体. I attached the two files generated from my local machine and azure website for reference.

PDF generated locally:

http://videoconference.blob.core.chinacloudapi.cn/public/Good.pdf

PDF generated from azure website:

http://videoconference.blob.core.chinacloudapi.cn/public/Bad.pdf

Could you please give some suggestions how I could possibly resolve this issue? I tried several things including try use different fonts and encode the page with different encoding(UTF-8, GB2312) but none of those works. I noticed even numbers are not showing properly in azure generated pdf. Unforturnately the suggested font "Arial Unicode MS" is not available in Azure website.

 

Any suggestions would be really appreciated!

 Thanks in advance!

Kostadin
Telerik team
 answered on 11 Sep 2015
1 answer
111 views
Are any 3D charts available for AJAX?
Marin Bratanov
Telerik team
 answered on 11 Sep 2015
3 answers
133 views

I need to have a drop zone for each node of a RadTreeView.  I have added a RadAsyncUpload control in the NodeTemplate section.  Are there any examples/demos for this scenario?

I followed the current demo structure. But in my case, the files are getting dropped for every upload control and not the specific one.

 

 

Hristo Valyavicharski
Telerik team
 answered on 11 Sep 2015
6 answers
800 views
Hi,

When I was browsing the DOM elements in the radWindow, I discovered a hidden textbox called ctl00_phMaster_radWindowTest_ClientState. My colleague received a report that at one point this hidden textbox (..._ClientState) had a value in it.

I would like to know:
- what is the role/function of the ClientState?
- under what conditions do the ClientState get populated?
- what values does the ClientState contain?

I use the radWindow in a secure site and don't want ClientState exposing any sensitive information.

Thank you,
Arie


AMITA
Top achievements
Rank 1
 answered on 10 Sep 2015
2 answers
107 views

I have a RadGrid:

<telerik:RadGrid ID="radgridMachines" runat="server"
    AllowSorting="True"
    AllowMultiRowSelection="true"
    AutoGenerateColumns="False"
    OnNeedDataSource="radgridMachines_NeedDataSource"
    OnItemDataBound="radgridMachines_ItemDataBound"
    EnableViewState="false">
    <ClientSettings EnablePostBackOnRowClick="false">
        <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />
        <ClientEvents OnGridCreated="SelectAndResizeAllRows" OnRowSelected="TogglePrintControls" OnRowDeselected="TogglePrintControls" />
    </ClientSettings>
    <GroupingSettings CaseSensitive="false" />
    <SortingSettings />
    <MasterTableView DataKeyNames="CustomerID, CustomerName, PlantNumber, Route, MachineNumber, PlantName, MachineName, CustomerEquipmentID, TestPackage, PointID, Lubricant"
        ClientDataKeyNames=""
        AllowMultiColumnSorting="true">
        <Columns>
            <%--Fit to Contents--%>
            <telerik:GridBoundColumn UniqueName="CustomerNumber" DataField="CustomerID" DataType="System.Int32" HeaderText="Cust #" HeaderStyle-Width="60px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="PlantNumber" DataField="PlantNumber" DataType="System.Int32" HeaderText="Plant #" HeaderStyle-Width="60px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="MachineNumber" DataField="MachineNumber" DataType="System.Int32" HeaderText="Mach #"HeaderStyle-Width="60px"></telerik:GridBoundColumn>
            <telerik:GridClientSelectColumn UniqueName="SelectColumn" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"HeaderStyle-Width="60px" />
            <%--Fit to Contents--%>
 
            <telerik:GridBoundColumn UniqueName="RouteNumber" DataField="Route" HeaderText="Route" ItemStyle-HorizontalAlign="Center"HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="PlantName" DataField="PlantName" HeaderText="Plant Name" ItemStyle-HorizontalAlign="Center"HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="MachineName" DataField="MachineName" HeaderText="Machine Name" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="CustomerEquipmentID" DataField="CustomerEquipmentID" HeaderText="Machine ID" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="TestPackage" DataField="TestPackage" HeaderText="Test Package" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
 
            <telerik:GridBoundColumn DataField="PointID" Visible="false"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

When I load 2600 rows, the browser gives me the following error:

"A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.  Script: http://localhost:50820/ScriptR…8-VKUfdnFfZq18eaxA2&t=7c776dc1:652"

The OnGridCreated event looks like this:

function SelectAndResizeAllRows(sender, eventArgs) {
    var rows = $find('<%= radgridMachines.ClientID%>').get_masterTableView().get_dataItems();
 
    for (var i = 0; i < rows.length; i++) {
        rows[i].set_selected(true);
    }
 
    var grid = $find("<%= radgridMachines.ClientID %>");
    var columns = grid.get_masterTableView().get_columns();
    for (var i = 0; i < 4; i++) { //columns.length
        columns[i].resizeToFit(false, true);
    }
} 


If I remove the first for loop, the grid loads properly.  But I need to support selecting all rows.  Is there another way to accomplish this?  Why can't the grid handle this?

Thanks

Zach
Top achievements
Rank 1
 answered on 10 Sep 2015
0 answers
177 views
        <head>
        <script>
            
                var xhr = new XMLHttpRequest();
                xhr.onreadystatechange = function () {
                    if (xhr.readyState === 4) {
                        document.getElementById("para").innerHTML =xhr.responseText;
    
                    }
                };
                xhr.open('GET', 'Intro.html', true);
                xhr.send();
            
        </script>
    </head>
    <body >
        <div id="Para"></div>
    
    </body>


I get this Error

**Uncaught TypeError:** Cannot set property 'innerHTML' of nullxhr.onreadystatechange @ index.html:11
Zubair
Top achievements
Rank 1
 asked on 10 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?