Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Rotator not working properly..... when mouse over the slide it gets shake and rotating.
Slav
Telerik team
 answered on 03 Oct 2014
6 answers
164 views
Hi,

I have a page with multi XmlhttpPanels, including a parent panel and a number of children panels which are placed inside an asp repeater. The error happens when run set_value() for any children panel. I have set the script manager to the standard asp script manager on the page, and the EnableClientScriptEvaluation is set to true in the parent panel. Not sure if xmlhttppanel supports nesting. All works fine if I remove the parent panel.  

The below is the error screenshot and the code. Any help would be much appreciated.

<telerik:RadXmlHttpPanel runat="server" ID="pnlRoom" OnServiceRequest="pnlRoom_ServiceRequest"
    EnableClientScriptEvaluation="true" LoadingPanelID="RadAjaxLoadingPanel1" RenderMode="Block">
    <asp:Repeater runat="server" ID="rptGroups" OnItemDataBound="rptGroups_ItemDataBound"
        ClientIDMode="AutoID">
        <ItemTemplate>
            <fieldset class="fieldsetBlock1">
                <div class="fieldsetTitle">
                    <%# Eval("GROUP_NAME")%>   
                </div>
                <telerik:RadXmlHttpPanel runat="server" ID="pnlGroup" OnServiceRequest="pnlGroup_ServiceRequest"
                    RenderMode="Block">
                    <asp:Repeater ID="rptItems" runat="server" EnableViewState="false" ClientIDMode="AutoID">
                        <HeaderTemplate>
                            <table width="574px" class="hor-minimalist-b">
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td style="padding: 12px 8px;">
                                    <a href="javascript:;" onclick='<%# string.Format("openItem(this,{0},0);", Eval("JOB_ITEM_ID")) %>'
                                        class="a-job-item">
                                        <%# Eval("ItemSummary") %></a>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody> </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <div class="divAddNewLinkButton">
                        <a href="javascript:;" onclick='<%# string.Format("openItem(this,0,{0});", Eval("JOB_ITEM_GROUP_ID")) %>'>
                            <span>✚</span>  New Item</a></div>
                </telerik:RadXmlHttpPanel>
            </fieldset>
        </ItemTemplate>
        <SeparatorTemplate>
            <br />
        </SeparatorTemplate>
    </asp:Repeater>
</telerik:RadXmlHttpPanel>
Slav
Telerik team
 answered on 03 Oct 2014
1 answer
264 views
I have configured my RadGrid to call a client side function and call an AJAX script to insert records into my dB. 
I am successful at calling my Client Side JS function by utilizing the <clientevents onrowclick=RowClick> event.

<ClientEvents OnRowClick="RowClick" />  *** This works but it is not my ideal solution

 I would like to call this function by the execution of the onblur event from a textbox control.

I have tried the code below but I am not having any luck:
<telerik:GridTemplateColumn HeaderText="Qty" AllowFiltering="false" UniqueName="Column2">
<ItemTemplate>
<telerik:RadTextBox ID="qty" runat="server" AutoPostBack="True">
<ClientEvents OnBlur="function(sender,args){RowClick(sender,args)}" />
</telerik:RadTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>

However, when I execute the Onblur event I get this error:   

JavaScript runtime error: Object doesn't support property or method 'get_id'

I assume that this is due to the fact that it doesn't know the ROW id when inside of the textbox?

Any help is appreciated!
Viktor Tachev
Telerik team
 answered on 03 Oct 2014
1 answer
112 views
I would like to confirm if Rad Compression can be used in a Load Balancer and Web Farm environment . Can this be done and/or are there any known issues when doing this?
Angel Petrov
Telerik team
 answered on 03 Oct 2014
10 answers
222 views
We have a pivotgrid that isn't working correctly. The data comes from a stored procedure that de-normalizes a bunch of data, so that users can do ad-hoc querying on the results. The table can run into several hundred thousand rows.

This used to work correctly, but recently (perhaps with the q2 2014 update?) we've noticed issues. Drag a column into the row columns group, wheel spins, eventually the original table returns with no column breakdown. Sometimes (not consistently) we can get it to work by right-clicking, selecting 'Move to COLUMN field', generate, then right-click and move to row field.

We were using Ajax on the grid, tried removing that with no change. We've tried deferring the layout update, no difference. It seems the columns that cause the issue are usually text columns, but there is no error thrown and nothing reported on screen, just no column breakdown.

The frustrating thing is this used to work, and neither code or data has changed. Here's the code used to generate the pivot. The data source is an objectdatasource, using a query running against SQL Server.

<telerik:RadPivotGrid ID="pivotData" runat="server" AggregatesLevel="-1" AggregatesPosition="Columns"
        DataSourceID="dsExpenditures"
        ShowColumnHeaderZone="False" ShowDataHeaderZone="False" ShowRowHeaderZone="False" EnableConfigurationPanel="true"
        Skin="Metro">
        <Fields>
            <telerik:PivotGridAggregateField Caption="Total Spend" DataField="TotalSpend" UniqueName="TotalSpend"
                DataFormatString="{0:n2}">
            </telerik:PivotGridAggregateField>
        </Fields>
        <ConfigurationPanelSettings LayoutType="OneByFour" Position="Left" DefaultDeferedLayoutUpdate="true">
        </ConfigurationPanelSettings>
    </telerik:RadPivotGrid>
Maria Ilieva
Telerik team
 answered on 03 Oct 2014
1 answer
118 views
Hello,
i want to implement the OnDataBound event of a RadGrid in the client side but the sender is always returning null. Also i tried $find("<%GridId.ClientID%>") but also  not working .
i can't find the reason of this problem and how can i resolve it. Any help please??
Konstantin Dikov
Telerik team
 answered on 03 Oct 2014
0 answers
116 views
I am trying to follow the ajax tutorial at wschools.com. However when I copy and paste this code it does not work:

<!DOCTYPE html>
<html>
<head>
<script>
function loadXMLDoc()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","ajax_info.txt",true);
xmlhttp.send();
}
</script>
</head>
<body>

<div id="myDiv"><h2>Let AJAX change this text</h2></div>
<button type="button" onclick="loadXMLDoc()">Change Content</button>

</body>
</html>





Martin
Top achievements
Rank 1
 asked on 03 Oct 2014
1 answer
59 views
Hi,

I am using radgrid with multiple headers. The headers are added in run time like as below

Dim header As GridItem() = rdgrid1.MasterTableView.GetItems(GridItemType.Header)
' Get the current THead element
Dim head As GridTHead = CType(header(0).Parent.Controls(0).Parent, GridTHead)

Dim additionalHeaderItem As GridHeaderItem
head.Controls.Add(additionalHeaderItem)

The changes are displayed.  But, while export the grid, its only exporting only one header with data. The newly added header item is not exported. Kinly any one help to resolve this issue

Thanks in Advance,

By,
G.Senthilraja
Kostadin
Telerik team
 answered on 03 Oct 2014
2 answers
77 views
I'm having mostly success using the navigator, but my selection hint always looks white/blank.  The area seems to change size if I change the DataFormatString, which would seem to indicate the text is there ( I have not looked at source or browser debugger to verify), but I can't find any information about changing this text color.

Any insight or help would be appreciated.

Thanks,

-Rick
Danail Vasilev
Telerik team
 answered on 03 Oct 2014
3 answers
170 views
When I use the Paste Plain text pop-up (associated with the non IE browsers), Although the Paste Plain text popup will appear directly over the RadEditor, the browser will jump UP to the top of the page and you will need to scroll back down to where the RADeditor is loaded to continue editing. This only happens the first time when pasting into the Radeditor and only from the non IE browsers.

Its not apparent on pages that are not tall, or where the RadEditor is at the top of the page. But in instances where the RadEditor appears low on the page it's quite annoying. Is there anything that can be done to prevent this jump?
Ianko
Telerik team
 answered on 03 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?