Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
When is the service pack targeted for release for 2014 Q1 ??
Helen
Telerik team
 answered on 24 Mar 2014
2 answers
88 views
Hi all, I just updated one of our applications to the latest version of Telerik ASP.NET AJAX (v2014.1.225.35). After doing this, the RadEditor toolbar in the application is no longer wrapping. We set the toolbar using the ToolsFile.xml (see below). Is there something else I need to do to get the toolbar to wrap?

<root>
<tools>
<tool name="FindAndReplace"/>
<tool name="Print"/>
<tool separator="true"/>
<tool name="Cut"/>
<tool name="Copy"/>
<tool name="Paste"/>
<tool name="PasteFromWord"/>
<tool name="PastePlainText"/>
<tool separator="true"/>
<tool name="Undo"/>
<tool name="Redo"/>
<tool separator="true"/>
<tool name="InsertTable"/>
<tool separator="true"/>
<tool name="InsertLink"/>
<tool name="Unlink"/>
<tool name="InsertSymbol"/>
<tool separator="true"/>
<tool name="Bold"/>
<tool name="Italic"/>
<tool name="Underline"/>
<tool name="ForeColor"/>
<tool name="BackColor"/>
<tool name="FormatBlock"/>
<tool name="FontName" />
</tools>
<tools name="MainToolbar" enabled="true">
<tool name="RealFontSize" />
</tools>
<tools>
<tool separator="true"/>
<tool name="JustifyLeft"/>
<tool name="JustifyCenter"/>
<tool name="JustifyRight"/>
<tool name="JustifyFull"/>
<tool separator="true"/>
<tool name="InsertOrderedList"/>
<tool name="InsertUnorderedList"/>
<tool name="Outdent"/>
<tool name="Indent"/>
<tool separator="true"/>
<tool name="StrikeThrough"/>
<tool name="Subscript"/>
<tool name="Superscript"/>
<tool separator="true"/>
<tool name="AjaxSpellCheck"/>
</tools>
<fontNames>
<item name="Arial" />
<item name="Calibri" />
</fontNames>
<realFontSizes>
<item value="12pt"></item>
<item value="14pt"></item>
<item value="16pt"></item>
<item value="18pt"></item>
<item value="20pt"></item>
<item value="22pt"></item>
</realFontSizes>
</root>
Ianko
Telerik team
 answered on 24 Mar 2014
3 answers
228 views
Hi,

I could not close Visual Studio 2010 after the latest update. I updated on 11/12/2013
Everytime I tried to close VS2010, VS stopped me with below error msg (img attached)
"Could not load file or assembly 'Telerik.VSX.ErrorReporting.2013.2.925.0, Version=2013.2.925.0, .."

I am using: VS 2010 Version 10.0.40219.1 SP1 Rel

Could you please advise?
Petar
Telerik team
 answered on 24 Mar 2014
22 answers
891 views
I'm trying to use RadEditor to have the ability to display object/embed code, such as an "embed link" from youtube.  But having a few issues with it.  If I were to add the embed code in HTML view, and then go to Design View, the video will show up fine... however if I were to switch back to HTML view, all of the code disappears.

That is issue #1, Issue #2 seems to be have the same result, however happens when I go to save the content of the Editor to the DB.  The code disappears and the video embed is not displayed.

Does this happen for anyone else?  Is there a fix?

Thanks,
Travis
Ianko
Telerik team
 answered on 24 Mar 2014
1 answer
147 views
I am trying to do a print preview.  I see the feature in windows pivot grid.-  RadpivotGrod1.PrintPreview().  Is this feature there in Ajax pivot grid.


Thanks,
Kalyani
Maria Ilieva
Telerik team
 answered on 24 Mar 2014
2 answers
105 views
Hi,

Following an update to 2014 Q1 release (base build and the 318 build) I have found that the control below is not firing the OnClientItemChecked event, given that the event seems to work on the demo site I assume that this issue is caused by my use of a checkbox within the ItemTemplate.  This works just fine on earlier 2013 releases.  Anyone know of a work around on this?  

Regards

Jon

                                       
<telerik:RadListBox ID="uxOperativeListBox" runat="server" Height="330" Width="380" OnItemDataBound="uxOperativeListBox_ItemDataBound" OnClientItemChecked="OperativeListBoxClicked">
    <ItemTemplate>
        <div>
            <asp:CheckBox runat="server" ID="uxCheckbox" Checked='false' style="vertical-align:middle;" />
            <asp:Image runat="server" ID="uxOperativeStatus" ImageUrl="~/Images/Icons/16/ok.png" style="vertical-align:middle;" />
            <asp:Label runat="server" ID="uxOperative" AssociatedControlID="uxCheckbox" style="vertical-align:middle;"></asp:Label>
        </div>
    </ItemTemplate>
</telerik:RadListBox>
Jon
Top achievements
Rank 1
 answered on 24 Mar 2014
10 answers
1.1K+ 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
72 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
165 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
166 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
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?