Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
227 views
I have an ajaxified RadGrid with a RadTreeList in the <NestedViewTemplate>.  The data for both comes back as it should.  Expanding an item on the RadGrid works fine and reveals the RadTreeList with the correct number of rows/data; however, when attempting to expand one of the nodes on the RadTreeList, the RadGrid collapses.  On re-expanding the RadGrid, the RadTreeList node is displayed expanded.  How may I prevent the RadGrid from collapsing during the RadTreeList node expansion/collapse?

Thanks for the help!
Carlos
Top achievements
Rank 1
 answered on 21 Mar 2013
3 answers
538 views
Here's the layout code for a simple RadGrid I've put in my web page:

<telerik:RadGrid ID="radGridSummary" runat="server" AutoGenerateColumns="false" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1" Width="587px"
                 CellPadding="0" GridLines="Both" Font-Size="11px" OnItemDataBound="radGridSummary_ItemDataBound" OnItemCommand="radGridSummary_ItemCommand">
  <HeaderStyle Font-Bold="true" ForeColor="#031d5b" VerticalAlign="Middle" Height="20" CssClass="pointerOnly headerGridRB" />
  <ItemStyle CssClass="radGridItem" />
  <AlternatingItemStyle CssClass="radGridAltItem" />
  <ClientSettings EnablePostBackOnRowClick="true" EnableRowHoverStyle="true" Scrolling-UseStaticHeaders="true" Scrolling-AllowScroll="true" Scrolling-ScrollHeight="200px" />
 
  <MasterTableView BorderWidth="0" DataKeyNames="TaskID, TaskLevel, TaskActivity">
    <Columns>
      <telerik:GridBoundColumn DataField="TaskDescription" HeaderText="Description" SortExpression="TaskDescription">
        <HeaderStyle HorizontalAlign="Left" />
        <ItemStyle HorizontalAlign="Left" />
      </telerik:GridBoundColumn>
 
      <telerik:GridTemplateColumn HeaderText="Level">
        <HeaderStyle HorizontalAlign="Center" Width="70px" />
        <ItemStyle HorizontalAlign="Center" />
        <ItemTemplate>
          <%-- Note: This needs to remain as a Label, as it's accessed by code in 'IndicateRowDeletion' --%>
          <asp:Label ID="labelLevelName" runat="server" Text='<%# GetLevelDescription(Convert.ToInt32(Eval("TaskLevel"))) %>' />
        </ItemTemplate>
      </telerik:GridTemplateColumn>
 
      <telerik:GridBoundColumn DataField="ActivityMajTask" HeaderText="Activity" SortExpression="ActivityMajTask">
        <HeaderStyle HorizontalAlign="Center"  />  <%-- Note: Removed Width restriction to allow this one to expand as needed --%>
        <ItemStyle HorizontalAlign="Center" />
      </telerik:GridBoundColumn>
 
      <telerik:GridBoundColumn DataField="TaskStdHours" HeaderText="Std Hours" SortExpression="TaskStdHours" DataFormatString="{0:F2}">
        <HeaderStyle HorizontalAlign="Center" Width="70px" />
        <ItemStyle HorizontalAlign="Right" CssClass="indentRight20" />
      </telerik:GridBoundColumn>
 
      <telerik:GridTemplateColumn HeaderText="Completed">
        <HeaderStyle HorizontalAlign="Center" Width="70px" />
        <ItemStyle HorizontalAlign="Center" />
        <ItemTemplate>
          <%-- Note: This needs to remain as a Label, as it's accessed by code in 'IndicateRowDeletion' --%>
          <asp:Label ID="labelCompleted" runat="server" Text='<%# Convert.ToBoolean(Eval("TaskStatus")) ? "Yes" : "No" %>' />
        </ItemTemplate>
      </telerik:GridTemplateColumn>
    </Columns>
  </MasterTableView>
</telerik:RadGrid>

The alignment seemed to be working fine until I enabled AutoScrolling.  Now, as you can see, the alignment is all messed up.

If you could tell me what to do with the Level and Activity columns then I think I could figure out the others.

Robert
Robert
Top achievements
Rank 1
 answered on 21 Mar 2013
1 answer
89 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
181 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
214 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
81 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
76 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
520 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
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?