Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
I have a RadComboBox that uses the SelectedIndexChanged event handler to set the value of another combo box on the page. I have a RadAjaxManagerProxy on the content control and an AjaxSetting for the combo box with the affected combo box specified as the updated control. Here's the code for the Ajax settings.

<telerik:RadAjaxManagerProxy id="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="cboPhysMunicipality">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="cboPhysDistrictOffice" LoadingPanelID="RadAjaxLoadingPanel1"/>
                <telerik:AjaxUpdatedControl ControlID="cboMailStateCountry" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>       
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

The Combo box calls the selected index changed event handler; but it doesn't use the Ajax Manager, it never shows the loading panel, and it clears out other combo boxes that shouldn't be affected. It think these are getting cleared because it's doing a full post back instead of an Ajax update.

Now, here's where it gets really wierd. If I type in the combo box until it highlights the desired item, and then press enter, it works perfectly. However, if I type until it highlights, then click on the desired item, it doesn't use the ajax loading panel, it just posts back.

One other thing, if I set AllowCustomText to false; everything works just like it should. But if I set AllowCustomText = true, this is what I end up with. Unfortunately, I have to have AllowCustomText set to true for this field.

Any ideas why AllowCustomText would stop the RadComboBox from doing an Ajax update?
Nencho
Telerik team
 answered on 21 Mar 2013
1 answer
192 views
Since the RadEditor doesn't have OnFocus or OnBlur ClientEvents, Is it possible to expand the height of a RadEditor when the focus is set and and reset it back to a specified height when leaving the focus of the control? 

If so, please provide an example on implementing this functionality.

Thank You!
Rumen
Telerik team
 answered on 21 Mar 2013
3 answers
82 views
Hi All,

       This is AKR. I am using Telerik radlistbox, when i click on item i facing an Popup Message With Title : Message from Web Page and With Message " Out of Memory at line :2 ". Please any one suggest me how to Solve this.

Thanks in advance.

AKR
Bozhidar
Telerik team
 answered on 21 Mar 2013
2 answers
215 views
I have a client side event handler for OnCommand. How can I get the index of the row that caused the OnCommand event to be fired. In my case I have a GridButtonColumn of type ImageButton. Clicking the image for an item in the row causes the OnCommand to fire. I need to know which row was clicked.
Diana
Top achievements
Rank 1
 answered on 21 Mar 2013
1 answer
82 views

Hello,

I'm completely new to telerik software and have been asked to add 2 new fields to our radhtml control.  Does anyone know how I go about this?

Thanks
Rumen
Telerik team
 answered on 21 Mar 2013
1 answer
84 views

I have the following scenario:

    1. Insert a table on the page http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

    2. Apply the “telerik-reTable-2” style from the Table Properties

    3. right-mouse-click on any cell of the table and select Insert Row Below (also, it may be above)

Result:

    The row has some style, but the style of the table in general becomes different from “telerik-reTable-2” (ActualResult.png attached).

Expected Result:

    The table has the style, that was previously selected – “telerik-reTable-2” (ExpectedResult.png attached).


Rumen
Telerik team
 answered on 21 Mar 2013
1 answer
88 views
So I'm trying to use a RadGrid for displaying an object with nested Lists as properties. I have it in a user control so I'm declaring RadGrid in code-behind. The object is passed in through the user control's constructor, all of the data is contained in the object, there is no need for any lazy loading. The object is retrieved from MongoDB so there are no identity fields at any of the levels in the hierarchy (other than the database _id at the very top). So when looking at the demo "Grid - Creating Hierarchy Programmatically", I get stuck at creating GridRelationFields because, as far as my data is concerned, relations aren't necessary.

Does the RadGrid have functionality for using reflection to display the full details of the object I'm trying to bind to it? Is there some way around having to create GridRelationFields? Or will I have to make wrapper objects and programmatically generate and assign ID fields to get this to work?
Radoslav
Telerik team
 answered on 21 Mar 2013
9 answers
528 views
Is there a way to get event on client side when RadGrid lost focus? I need inform client of finishing row edit/insert action.
Vasil
Telerik team
 answered on 21 Mar 2013
1 answer
130 views
Hi, everybody!
I have a problem. I want get value column header when I selected row.
<script type="text/javascript">
    var maNV = null;
    var tenDVI = null;
    function rowSelected(sender, args) {        
        var MasterTableView = sender.get_masterTableView();
        var row = MasterTableView.get_selectedItems()[0];          
        maNV = MasterTableView.getCellByColumnUniqueName(row, "MA_DV");            
        tenDVI = MasterTableView.getCellByColumnUniqueName(row, "TEN_DV");            
        var strMA_CTO = maNV.innerHTML; 
        var strTen_DVi = tenDVI.innerHTML;
         
        Service_Test.Web_SELECT_MADVIQLY(strMA_CTO,strTen_DVi);           
         <%Session["CHILD_MADVIQLY"] = "OK";%>
    }
}
 
<div>
<telerik:RadGrid ID="rgdBieu5" runat="server" GridLines="None" AutoGenerateColumns="False"
                    ShowFooter="true" AllowMultiRowSelection="True" OnItemCommand="rgdBieu5_ItemCommand">
                     
                    <MasterTableView ClientDataKeyNames="MA_DV" EnableNoRecordsTemplate="true">
                     <NoRecordsTemplate>
                                Không có dữ liệu
                    </NoRecordsTemplate>
                        <Columns>
                            <telerik:GridBoundColumn HeaderText="Mã đơn vị" DataField="MA_DV" UniqueName="MA_DV" FooterText="Tổng"
                                HeaderStyle-Width="10%">
                                <HeaderStyle Width="10%" HorizontalAlign="Center" Font-Bold="True"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"/>
                                <FooterStyle HorizontalAlign="Center" Font-Bold="true"/>
                            </telerik:GridBoundColumn>
                             <telerik:GridBoundColumn HeaderText="Tên đơn vị" DataField="TEN_DV" UniqueName="TEN_DV"
                                HeaderStyle-Width="20%">
                                <HeaderStyle Width="20%" HorizontalAlign="Center" Font-Bold="True"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Left" />
                               
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="3 pha điện tử" DataField="KH_3PD" UniqueName="KH_3PD"
                                DataFormatString="{0:### ### ### ### ### ##0}" Aggregate="Sum" HeaderStyle-Width="10%">
                                <HeaderStyle Width="10%" HorizontalAlign="Center" Font-Bold="True"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Right"/>
                                <FooterStyle HorizontalAlign="Right" Font-Bold="true" />
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="true" EnableRowHoverStyle="true"
                        EnablePostBackOnRowClick="false">
                        <Selecting AllowRowSelect="true" />                       
                        <Scrolling AllowScroll="false" UseStaticHeaders="true" />
                        <ClientEvents OnRowSelected="rowSelected"/>
                    </ClientSettings>
                </telerik:RadGrid>
</div>

Have you any ideas? Thank you very much!
Princy
Top achievements
Rank 2
 answered on 21 Mar 2013
1 answer
94 views
The object structure I'm trying to bind to TreeList has nested Lists as properties, but no ID fields. Can I bind to the TreeList control in such a way that its structure matches the structure of my object without the need for setting the key properties?
Radoslav
Telerik team
 answered on 21 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?