Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
999 views
Hi Telerik,

I have some telerik RadComboBox controls in the template columns of the RadGrid. Let's say, if selecting the item from the RadComboBox and the length of the selected item is much longer than the width of that RadComboBox, how to show the full text for the selected item when user moving the mouse over the selected item of the RadComboBox?

Looking forward to your reply.

Nencho
Telerik team
 answered on 24 Mar 2014
1 answer
54 views
Is it possible to enable commenting without causing the change tracking feature to be enabled? I.e. the commenting demo at http://demos.telerik.com/aspnet-ajax/editor/examples/comments/defaultcs.aspx seems to have change tracking running.

Strangely though it only seems to be tracking a subset of changes, such as bolding or italicizing text. It doesn't seem to track edits to the actual content such adding, editing, or deleting text. 

Is there a way to fully disable change tracking, and just use the commenting feature? 
Ianko
Telerik team
 answered on 24 Mar 2014
1 answer
114 views
I need to implement client-side Select All functionality in a nested RadGrid, however, I cannot use the default Telerik select functionality. Following is the code. I am calling a JS method upon click of the checkbox in the header and want to select or deselect based on the state of the header checkbox.

<
telerik:RadGrid ID="Orders" AllowRowSelect="true" AllowCustomPaging="true" runat="server" OnItemCommand="Orders_ItemCommand"
    OnItemDataBound="Orders_ItemDataBound" OnNeedDataSource="Orders_NeedDataSource"
    AutoGenerateColumns="false" AllowSorting="false" GroupingSettings-CaseSensitive="false">
    <ClientSettings>
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnFilterMenuShowing="filterMenushowing" />
    </ClientSettings>
    <MasterTableView EditMode="InPlace" AllowFilteringByColumn="false">
        <Columns>
            <%--Some columns--%>
        </Columns>
        <NestedViewTemplate>
            <asp:Panel ID="pnlAsset" runat="server">
                <telerik:RadTabStrip runat="server" ID="AssetTabStrip" MultiPageID="MultiPage1" SelectedIndex="0" Skin="Windows7">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Something" PageViewID="RadPageView1"></telerik:RadTab>
                        <%--Some more tabs--%>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0">
                    <telerik:RadPageView runat="server" ID="RadPageView1">
                        <div id="divAsset">
                            <telerik:RadGrid ID="Assets" runat="server" AutoGenerateColumns="False" Skin="Windows7"
                                AllowSorting="false" CssClass="GridMargin" AllowPaging="true" PageSize="10" GroupingSettings-CaseSensitive="false"
                                GridLines="None" CellSpacing="0" OnItemDataBound="Assets_ItemDataBound" OnItemCommand="Assets_ItemCommand" OnNeedDataSource="Assets_NeedDataSource" AllowCustomPaging="true">
                                <ClientSettings>
                                    <Selecting AllowRowSelect="false" />
                                    <ClientEvents OnFilterMenuShowing="filterMenushowing" />
                                </ClientSettings>
                                <MasterTableView EditMode="InPlace" AllowFilteringByColumn="false">
                                    <Columns>
                                        <telerik:GridTemplateColumn UniqueName="move" AllowFiltering="false">
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="chkSelectAll" runat="Server" onclick="checkAssetGridAll(this);" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkSelect" runat="server" />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <%--Some columns--%>
                                    </Columns>
 
                                </MasterTableView>
                            </telerik:RadGrid>
                        </div>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </asp:Panel>
        </NestedViewTemplate>
    </MasterTableView>
</telerik:RadGrid>

I tried the following JS, but it keeps alerting length as 0.

var masterTable = $find("<%= Orders.ClientID %>").get_masterTableView();
var dataItems = masterTable.get_dataItems();
 
for (var i = 0; i < dataItems.length; i++) {
    alert(dataItems[i].get_nestedViews().length);
}

 How can I implement the same? 
Viktor Tachev
Telerik team
 answered on 24 Mar 2014
4 answers
132 views
I use RadGrid EditForm with UserControl like this sample Telerik Sample

    <telerik:RadGrid ID="personGrid" runat="server" AutoGenerateColumns="False" OnEditCommand="personGrid_EditCommand" OnUpdateCommand="personGrid_UpdateCommand">
            <MasterTableView DataKeyNames="ID" CommandItemDisplay="Top">
                <EditFormSettings UserControlName="PersonItemsUC.ascx" EditFormType="WebUserControl">
                </EditFormSettings>
                <Columns>
                    <telerik:GridBoundColumn UniqueName="ID" Display="false" HeaderText="ID" DataField="ID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Name" HeaderText="Name" DataField="Name">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Family" HeaderText="Family" DataField="Family">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Age" HeaderText="Age" DataField="Age">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="MobileNo" HeaderText="MobileNo" DataField="MobileNo">
                    </telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn EditText="Update" UniqueName="EditCommandColumn">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete">
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
    </telerik:RadGrid>


and I have UserControl like this (have Person Info data)
My UC Picture


I have method in My Usercontrol (GetDataFromControls)

        public Person GetDataFromControls()
        {
            var sKey = typeof(Person).FullName + "Keys";
            var p = new Person();
            p.ID = Convert.ToInt32(SessionManager.Instance[sKey]); // ID store in Session with personGrid_EditCommand method
            p.Name = txtName.Text;
            p.Family = txtFamily.Text;
            p.Age = Convert.ToInt32(txtAge.Text);
            p.MobileNo = txtMobileNo.Text;
            return p;
        }

 store Id in session for Updating
        protected void personGrid_EditCommand(object sender, GridCommandEventArgs e)
        {
            var sKey = typeof (Person).FullName + "Keys";
            var id = (int)((GridDataItem)e.Item).GetDataKeyValue("ID");
            SessionManager.Instance[sKey] = id;
        }

can get data from textboxes and other controls and set to Person instanse
OK now I want to update data so use this method in my page.aspx

       protected void personGrid_UpdateCommand(object sender, GridCommandEventArgs e)
       {
        var userControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) as PersonItemsUC;
        if (userControl != null)
        {
            var p = userControl.GetDataFromControls(); //HERE
            _personBusiness.Update(p);
        }
    }

first I found my usercontrol in UpdateCommand method and then call GetDataFromControls method but except ID that get from Session other data lost !!! all textboxes is empty

How can i call GetDataFromControls() method with valid data ?

Another solution that came to my mind saving GetDataFromControls to Session by this property


        public Person CurrentEntity
        {
            get
            {
                var key = typeof(Person).FullName;
                return SessionManager.Instance[key] as Person;
            }
            set
            {
                var key = typeof(Person).FullName;
                SessionManager.Instance.Add(key, value);
            }
        }

and then call CurrentEntity instead of GetDataFromControls()

        protected void personGrid_UpdateCommand(object sender, GridCommandEventArgs e)
        {
            var userControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) as PersonItemsUC;
            if (userControl != null)
            {
                var p = userControl.CurrentEntity; //HERE
                _personBusiness.Update(p);
            }
        }

but I dont know when fill CurrentEntity in which event into my UserControl ?

    CurrentEntity = GetDataFromControls(); // When assign method to CurrentEntity in My UserControl ???


Can anyone suggest good solution for calling GetDataFromControls from UserControl in Page.aspx without lost data ???
Jayesh Goyani
Top achievements
Rank 2
 answered on 24 Mar 2014
3 answers
101 views
Hello,

it 'll be great if telerik can create a component , to export or update a web app by ftp

We click right on the file and the context menu show export or update on the web server.

Same for the bin , and possibilites on the web server to get a telerik dll on download.

thanks
Olivier,
Slav
Telerik team
 answered on 24 Mar 2014
1 answer
141 views
I have an issue pasting data from Word or Excel inside the radEditor control when using IE8.
I was able to reproduce the issue on the demo page: ​http://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx

I erased the contents of the radeditor (ctrl-A Del), while staying in design view.
Paste a chunk of Excel or tabular Word data inside the radEditor (still in design view).
Problem 1: At first, I thought it didn't paste any data, but it seems the data is pasted after a lot of top whitespace, so you have to scroll down to see it.
Problem 2: Switch to HTML view (not noticing any HTML tags to justify the whitespace), and back to design view. Now the data is placed at the top of the editor, but it seems the cells of the original tabular data are expanded.

My browser is IE8.0 on Windows XP (but same issue happens on Windows 7 according to our client )
Ianko
Telerik team
 answered on 24 Mar 2014
1 answer
68 views
Hi.
How to have filtering avoid cases? I dont want to match cases on filtering.
Princy
Top achievements
Rank 2
 answered on 24 Mar 2014
1 answer
38 views
Hi,

i am using sharepoint foundation 2010,and trying to use sharepoint .
--my site uses telerik control but in that page i am not having single telerik control,i tried to added the register directive in page,
--but while modifying webpart i am getting telerik error.
--also attched screenshot
Thanks
Slav
Telerik team
 answered on 24 Mar 2014
3 answers
104 views
I am very green with using the Telerik Controls and AJAX as a whole.

I am taking over coding a Project that was first developed with Visual Studio 2003, .NET 1.1 and Rad Controls.

I am now trying to upgrade the whole Project to Visual Studio 2010, .NET 4.5 and the Latest Telerik Web UI Controls (2014.1 225).

Everything seems to be working ok now but I have this error in IE8

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Mon, 17 Mar 2014 12:05:26 UTC


Message: 'length' is null or not an object
Line: 1982
Char: 1
Code: 0
URI: http://localhost/PolsDev/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=EmployeeDetails1_ctlAjax_ScriptManager0_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.3.1324.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a597c6a37-3447-4509-ba46-0faaa25cf6f9%3a16e4e7cd%3aed16cbdc%3af7645509%3a88144a7a%3a24ee1bba%3af46195d3%3a2003d0b8%3a1e771326%3aaa288e2d.

The page seems to load but at the bottom is this error.

Any help is appreciated.


























Angel Petrov
Telerik team
 answered on 24 Mar 2014
3 answers
709 views

What I am trying to do is set the color of the inside of the radwindow.  The skin I have set as Web20, but for what resides on the inside of the radwindow i want the color to the antiqueWhite.  I have tried applying a css style but it does not take even if I put important.

<telerik:RadWindowManager ID="rwManager" runat="server" CenterIfModal="true" Modal="true" Animation="FlyIn" Behaviors="Close" Skin="Web20" VisibleStatusbar="false" >
                <Windows>
 
                    <telerik:RadWindow ID="rwdelete" runat="server" NavigateUrl="~/MAC/Delete.aspx" Width="600px" Height="300px" ShowContentDuringLoad="false" CssClass="rwDelete"></telerik:RadWindow>
 
                    <telerik:RadWindow ID="rwChange" runat="server" NavigateUrl="~/MAC/Change.aspx" Width="800px" Height="600px" ShowContentDuringLoad="false"></telerik:RadWindow>
                    <telerik:RadWindow ID="rwNew" runat="server" NavigateUrl="~/MAC/NewUser.aspx"></telerik:RadWindow>
                </Windows>
            </telerik:RadWindowManager>
 
 
.rwDelete {
    background-color:antiquewhite !important;
}


I applied to the div that sits on the inside of the window and this works but it does not fill the whole inside of the radwindow.














Princy
Top achievements
Rank 2
 answered on 24 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?