Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
223 views
Hi,

While accessing control which is present in item template, from “OnRowDataBound” client event, it seems that after returning 11th items, it could not able to find rest of the items.

I am wondering why It could not found control in item template after 11th items and started returning null.

I have attached sample project for your reference
Please refer the following function in sample project.

function onGridRowBound(sender, args) {
       cnt++; var btn = args.get_item().findElement("RadTextBox1");
 btn.value = args.get_dataItem().Text;
}

Once “cnt” is greater than 11, suddenly it stared returns null of "btn" reference.

I have add my code here,

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<script type="text/javascript">
function pageLoad() {
var data = [{ Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }, { Text: "TEXT" }];
var mtv = $find('<%=RadGrid1.ClientID %>').get_masterTableView();
mtv.set_dataSource(data);
mtv.dataBind();
}
function gridCommand(sender, args) {
//
}
var cnt = 0;
function onGridRowBound(sender, args) {
cnt++;

var btn = args.get_item().findElement("RadTextBox1");
btn.value = args.get_dataItem().Text;
}
</script>
<telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="false">
<MasterTableView>
<Columns>
<telerik:GridTemplateColumn DataField="Text">
<ItemTemplate>
<telerik:RadTextBox ID="RadTextBox1" runat="server"/>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<ClientEvents OnCommand="gridCommand" OnRowDataBound="onGridRowBound" />
</ClientSettings>
</telerik:RadGrid>
</form>
</body>
</html>


I would greatly appreciate any insight you could provide regarding the same

Thanks,
Chandan
Jayesh Goyani
Top achievements
Rank 2
 answered on 14 Apr 2014
1 answer
72 views
In hierarchial radgrid how to get the parent row index from child row in Item_created  method.
Princy
Top achievements
Rank 2
 answered on 14 Apr 2014
2 answers
121 views
Hi

I have a correspondence form that I am using a RadAutoCompleteBox for specifying recipients.  When the page initially loads I add the sender to the To RadAutoCompleteBox entries collection in the form of an AutoCompleteBoxEntry.  I'm using an email address for both the text and the value of the AutoCompleteBoxEntry.  If the email address has a single quote in it, the To RadAutoCompleteBox shows as empty.  However, if I then use the auto complete functionality I am able to successfully add the email with the single quote in it.  The RadAutoCompleteBox uses a webservice.

Any ideas?
Caleb Sandfort
Top achievements
Rank 1
 answered on 11 Apr 2014
2 answers
167 views
Hello,
I am having an issue with the RadMenu only showing the last item in the menu when I upgrade from version 2014.1.225 to version 2014.1.403.  In my example below there are 3 menu item which show when the menu is clicked using version 2014.1.225.  After updating to version 2014.1.403, only the last menu item is display when the menu is clicked (see attached screenshots).  Can you tell me why this happens in version 2014.1.403?


Here is the css of my divs:
#farright
{
    background: inherit;
    top: 0px;
    width: 200px;
    float:right;
    text-align:right;
    font-size: 10px;
}
 
#mysolutions
{
    position: absolute;
    background: inherit;
    top: 0px;
    right: 0px;
    width: 96px;
    float:right;
    text-align:right;
    font-size: 10px;
}


Here is the code to generate the menu: 
<div id="farright">
     <div id="mysolutions">
          <telerik:RadMenu ID="mnuProducts" runat="server" Skin="" DefaultGroupSettings-OffsetY="-1" ClickToOpen="true">
                            <Items>
                               <telerik:RadMenuItem ImageUrl = "~/Images/eProducts/solutions2.png" HoveredImageUrl = "~/Images/eProducts/solutions_hover2.png">
                                   <Items>
                                       <telerik:RadMenuItem NavigateUrl = "http:\\www.ecorpnet.com" Target="_blank" ImageUrl = "~/Images/eProducts/appealsmanager.png" HoveredImageUrl = "~/Images/eProducts/appealsmanager_hover.png"></telerik:RadMenuItem>
                                       <telerik:RadMenuItem NavigateUrl = "http:\\www.ecorpnet.com" Target="_blank" ImageUrl = "~/Images/eProducts/mvp.png" HoveredImageUrl = "~/Images/eProducts/mvp_hover.png"></telerik:RadMenuItem>
                                       <telerik:RadMenuItem NavigateUrl = "http:\\www.ecorpnet.com" Target="_blank" ImageUrl = "~/Images/eProducts/era.png" HoveredImageUrl = "~/Images/eProducts/era_hover.png"></telerik:RadMenuItem>
                                   </Items>
                               </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>
                        <br />
                        <br />
                        <br />
                        <br />
                        <asp:HyperLink ID="lnkLogout" runat="server" NavigateUrl="~/Logout.aspx" CssClass="toplist">Sign out</asp:HyperLink>
                        <asp:Label ID="lblHelpSpace" runat="server" Text="|" Visible="false"></asp:Label>
                        <asp:HyperLink ID="lnkHelp" runat="server" CssClass="toplist" NavigateUrl="javascript:ShowRadWindow('SelectHelp.aspx','rwnPopup');"  Visible="false">Help</asp:HyperLink>
                    </div>
                </div>

Bryan Smouse
Top achievements
Rank 1
 answered on 11 Apr 2014
3 answers
203 views
I am using Firebug to debug my application.  The Script window is filled with unreadable characters when I click on files or folder in the FileExplorer window.  For example,
vKRbWcp115O9Ai2IejVeFDu72S0JXgFIYwWxaBKlTf5cQ1M3igsUrKz5SbSzBwx2DZN6cJqhlMDQ={"count":5,"data":[{"Path":"

I cut the example short but It seems the explorer is injecting these characters and replacing my page's code.  The application runs without errors except it will not respond to functions that occur after selecting folders and files in the FileExplorer.  What could be the issue?  Thanks.
Vessy
Telerik team
 answered on 11 Apr 2014
1 answer
194 views
Hello,

I am about to start a project where I need to use the RadScheduler for the calendar and tasks. I will need to sync these with Outlook. In Outlook I can view the list and check a box to mark it as completed. Outlook puts a strike thru on the task to show it completed. My question is how can I do this from the RadSchedular? How can I mark it completed? I tried searching and could not find a way.

Also, once it is marked completed either through the RadScheduler or Outlook can this be synced to show it completed on both sides?

Thanks,

Warren
Boyan Dimitrov
Telerik team
 answered on 11 Apr 2014
1 answer
160 views
Our product has a dashboard tool that allows users to build charts. We've recently started using your colour picker control for selecting and storing user defined colour selections. Unfortunately we've run into a problem where we need to select transparent for some objects but we haven't found a workable solution using your control. When we select the 'empty' colour your control appears to default to white in the UI. If the page is posted back to the server, the transparent elements are all changed to white. All we are doing in code is updating the database with the currently selected colour of the control. At no stage do we set the colour to white in code.

Is there a workable solution you can suggest as this is a showstopper for us?
Slav
Telerik team
 answered on 11 Apr 2014
8 answers
1.0K+ views
Hi there,

I'm trying to implement batch edit in my RadGrid and got one problem I cannot resolve due to lack of info.
I call RadGrid.get_batchEditingManager().addNewRecord , in my radgrid I've got several template columns with radcombos there,
there are related and everything work perfect because I can use $telerik.findControl to refer any other cell's radcomboboxes control
while changing index of the current combo cell editing. Eventually, I have to change some Label control text value basing on chosen
selected Item in another combobox of another cell.  But how should I refer from some given editing cell to another template column's 
which has  ItemTemplate Label control only in order to change label's text value ?
I tried $telerik.findControl($find("<%= MyGrid.ClientID %>").get_element(), "myLabel") but it always gets null instead of label object.

Thanks in advance,
Nik
Nik
Top achievements
Rank 1
 answered on 11 Apr 2014
1 answer
151 views
Hi all,
I am trying to export empty data to excel.The style is not getting applied for Empty data or only Heading row.Please help
i have the below two eventhandlers to apply style:
 Protected Sub rgInbox_ExcelMLExportRowCreated(sender As Object, e As GridExcelBuilder.GridExportExcelMLRowCreatedArgs) Handles rgInbox.ExcelMLExportRowCreated
            If e.RowType = Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowType.HeaderRow Then
                For Index As Integer = 0 To e.Row.Cells.Count - 1
                    e.Row.Cells(Index).StyleValue = "normalHeaderStyle"
                Next

            End If
        End Sub

        Protected Sub rgInbox_ExcelMLExportStylesCreated(sender As Object, e As GridExcelBuilder.GridExportExcelMLStyleCreatedArgs) Handles rgInbox.ExcelMLExportStylesCreated
            Dim normalHeaderStyle As New GridExcelBuilder.StyleElement("normalHeaderStyle")
            normalHeaderStyle.FontStyle.Color = System.Drawing.Color.Black
            normalHeaderStyle.FontStyle.Bold = True
            normalHeaderStyle.FontStyle.FontName = "Calibri"
            normalHeaderStyle.FontStyle.Size = 10.0
            normalHeaderStyle.InteriorStyle.Pattern = GridExcelBuilder.InteriorPatternType.Solid
            normalHeaderStyle.InteriorStyle.Color = System.Drawing.Color.Gray
            e.Styles.Add(normalHeaderStyle)
        End Sub
Viktor Tachev
Telerik team
 answered on 11 Apr 2014
1 answer
96 views
i have sitemap like below:

<telerik:RadSiteMap ID="smKat" runat="server"
    DataFieldID="Id"
    DataFieldParentID="Parentid"
    DataSourceID="sqlKat"
    DataTextField="katText"
    DataValueField="Id"
    MaxDataBindDepth="2" >
    <DefaultLevelSettings   ListLayout-AlignRows="true" 
        ListLayout-RepeatDirection="Vertical" MaximumNodes="6" >
 
    </DefaultLevelSettings>
     
    <LevelSettings>
        <telerik:SiteMapLevelSetting MaximumNodes="6" Level="0">
            <ListLayout
                RepeatColumns="3"
                AlignRows="true"
                RepeatDirection="Vertical" ></ListLayout>
        </telerik:SiteMapLevelSetting>
        <telerik:SiteMapLevelSetting Level="1" MaximumNodes="6"   >
            <ListLayout
                RepeatColumns="2"
                AlignRows="true"
                RepeatDirection="Vertical" ></ListLayout>
        </telerik:SiteMapLevelSetting>
    </LevelSettings>
</telerik:RadSiteMap>

but MaximumNodes doenst work with ListLayout-RepeatColumns. it shows all data if added listlayout options.

Could you refer any approach to get MaximumNodes with  ListLayout-RepeatColumns .
Thank you.
Peter Filipov
Telerik team
 answered on 11 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?