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

I apologize in advance if this post gets a bit long-winded. I'm just trying to get my head around a lot of things while also trying to make some decisions on where I need to go next. 

I have a fairly complex ASP.NET/AJAX Web Dashboard. It utilizes the following RadControls for AJAX:

  • RadSplitter/RadSlidingZone/RadPane/RadSlidingPane/RadSplitBar
  • RadListBox
  • RadTab/RadMultiPage (less so)
  • RadDock/RadDockZone/RadDockLayout

All except a handful of instances of the controls are completely dynamically created and restored through page-postback and session. The RadListBox uses drag-and-drop features to move RadListBoxItems to the page. Event handlers then take over the creating of RadDocks or RadSplitters and RadPanes. If it would help this discussion I am able to provide a working copy of my current solution. 

Now, I am 100% nubile to MVC aside from code I have inherited at my job. I have this dashboard working, using ASP.NET/AJAX controls, inside of the MVC solution -- but breaking MVC architecture to do so. My goal is to not break this architecture - I am not concerned at this point about whether I use RadControls for MVC, RadControls for AJAX, a mixture of the two, or pick-and-choose controls with outside support from jQuery patching up the edges. 

So, where do we stand? I played around with Telerik Controls for MVC and while I believe I could achieve the functionality I want out of some of these controls -- not everything has been fleshed out yet. Is mixing in controls from RadControls for AJAX going to be acceptable? I know, I know, I read that this is possible -- but I want to know if it's the best decision to be making.

For instance, does RadSplitter for MVC support dynamically creating new panes, nesting splitters and panes to an arbitrary depth?

Lets assume I am going to not use RadControls for MVC for my first iteration of integrating my project into MVC architecture. Is it POSSIBLE to achieve the same functionality as I have currently using RadControls for AJAX in MVC? A simple example I have is "I rely heavily on RadDockLayout's SaveDockLayout event, how can I emulate this behavior in MVC?"

The third solution, which I believe to be the answer (but do not want to jade anyone else into thinking that this is the only answer) is a mixing of Telerik Controls for AJAX and other jQuery libraries to patch the bridge. For instance, using jQuery docking functionality where I originally used RadDocking. 

Maybe this is all worth opening a ticket to discuss, but I thought it'd be best for other Telerik users to be able to see my thoughts and concerns. I have a long road ahead of me, and I'd love to not make it longer with some helpful insight from the Telerik team.

Kind regards,

Sean Anderson
Sebastian
Telerik team
 answered on 20 Jun 2011
2 answers
62 views
I am using the RadAjaxManager / RadAjaxProxyManager to update a datalist.  I have added a MinDisplayTime so the user has time to see the notification of the update.

However the RadAjaxLoadingPanel's height is set to the initial size / height of the datalist so there is an ugly transition as the datalist grows or shrinks underneath the LoadingPanel.

What is the best way to avoid this transition?  Can the LoadingPanel match the height of the element being updated?

Or is there a way to use something like jQuery to animate the transition of both elements?
Maria Ilieva
Telerik team
 answered on 20 Jun 2011
2 answers
221 views
Hello,
I have a grid with the GridDropDownColumn above :

<telerik:GridDropDownColumn HeaderStyle-Width="140" ItemStyle-Width="140" FooterStyle-Width="140"
              UniqueName="MCHAVER" DataField="MCHAVER" HeaderImageUrl="~/Skins/Gray/Grid/BursaMas.JPG" DropDownControlType="DropDownList"
                   ListTextField="Text" ListValueField="Key" AutoPostBackOnFilter="true"   />


I want to add AutoComplete  to this GridDropDownColumn.

How can i do it ?

Thanks,
Gerry
Gerry Polami
Top achievements
Rank 1
 answered on 20 Jun 2011
3 answers
124 views
Have a page with RadTabStrip and RadChart - localy it works fine, but when upload the page see some kind of AJAX errors, and no chart, whats the solution for that?
Ves
Telerik team
 answered on 20 Jun 2011
6 answers
86 views
Everything was working fine beforehand, we have upgraded our controls and they have stopped working. 

Once a window is closed, ajaxRequest is called client side.  I am certain of this I used firebug to step into the code.  However, it never connects with the server.  Does anyone know of any breaking changes that would cause this?  We upgraded our controls for one of our products (sorry thread says 2011 it's actually to 2010.3).
Tsvetina
Telerik team
 answered on 20 Jun 2011
3 answers
322 views
I have an issue where the contents and scrollbars overflow the pop-up window regardless of its height. It only overflows a couple of px, but its enough to be annoying. I attached a small image of what the window looks like.

Is there a way to fix this?

Tsvetina
Telerik team
 answered on 20 Jun 2011
7 answers
184 views
Hi,

We experience the following issue. We have RadEditor 5.7.1.

Steps to reproduce the error:

1. Open a Sharepoint publishing page in editmode
2. Scroll to the bottom of the text in the texteditor (make sure you have som text there from the start)
3. Place the cursor somewhere in the text (near the bottom)
4. The cursor now jumps to the top of the texteditor.

Thomas

Stanimir
Telerik team
 answered on 20 Jun 2011
1 answer
56 views
Hi,

I'm sure you have addressed this somewhere before, but I could not find it.

I am assigning a generic collection as the DataSource of a RadGrid control. The Items in the collection have one member which is also a generic collection which provide the children.

For Example:

public class WorkOrderDetails
{
    protected readonly IWorkOrder _workOrder;
    protected readonly List<ResourceRequirement> _resources = new List<ResourceRequirement>();
    public WorkOrderDetails(IWorkOrder wo)
    {
        _workOrder = wo;
        foreach (IWoResources res in wo.ResourcesChildren)
        {
            _resources.Add(new ResourceRequirement(res));
        }
    }
    public string WoNumber { get { return _workOrder.WoNumber; } }
    public string Title
    {
        get { return _workOrder.Description; }
    }
    public List<ResourceRequirement> Resources
    {
        get { return _resources; }
    }
}
public class ResourceRequirement
{
    private IResources _data;
    public ResourceRequirement(IResources res)
    {
        _data = res;
    }

      //
      // Summary
      //    The Unique ID of this ResourceRequiment (which is a "Skill").
      public string ID { get { return _data.ResourceId; } } 

    //
    // Summary:
    //     The property for the planned_hours column of the TabWare database wo_resources
    //     table.
    public decimal PlannedHours { get { return _data.PlannedHours; } }
    //
    // Summary:
    //     The property for the remaining_hours column of the TabWare database wo_resources
    //     table.
    public decimal RemainingHours { get { return _data.RemainingHours; } }
    //
    // Summary:
    //     The property for the workers column of the TabWare database wo_resources
    //     table.
    public int Workers { get { return _data.Workers; } }
}

The assignment looks something like this:

List<WorkOrderDetails> list = factory.GetWorkOrders();
RadGrid1.DataSource = list;

My goal is to display the Work Orders with the ResourceRequirement children grouped under each WorkOrderDetail line.
For Example:

WoNumber    Title
000010202    Repair light fixture
      ID             Planned Hrs           Remaining Hrs            Workers
      Electician      8.0                         8.0                            1
      Welder          8.0                         8.0                            1

I figured out how to get the headers defined, but I currently have no content showing up for the child rows. Here is my markup:

<telerik:RadGrid
    ID="rgPlannedWorkOrders" runat="server" 
    Width="480px" Height="392px"
    AutoGenerateColumns="False" AllowSorting="True"
    Skin="Sunset" GridLines="Vertical" CellSpacing="0" 
    AutoGenerateHierarchy="true">
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView Width="100%"
        HierarchyDefaultExpanded="True" HierarchyLoadMode="ServerBind">
        <Columns>
            <telerik:GridBoundColumn DataField="WoNumber" 
                FilterControlAltText="Filter WoNumber column" HeaderText="WoNumber" 
                ReadOnly="True" SortExpression="WoNumber" UniqueName="WoNumber">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Title" 
                FilterControlAltText="Filter Title column" HeaderText="Title" ReadOnly="True" 
                SortExpression="Title" UniqueName="Title">
            </telerik:GridBoundColumn>
        </Columns>
        <DetailTables>
            <telerik:GridTableView Name="SubLevel1" ShowHeadersWhenNoRecords="false"   AutoGenerateColumns="false">
                <%-- This level holds items of Type2 --%>
                <Columns>
                    <telerik:GridBoundColumn DataField="ID" 
                        FilterControlAltText="Filter ID column" HeaderText="ID" 
                        ReadOnly="True" SortExpression="ResourceId" UniqueName="ID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PlannedHours" DataType="System.Decimal"
                        FilterControlAltText="Filter PlannedHours column" HeaderText="Planned Hrs" ReadOnly="True" 
                        SortExpression="PlannedHours" UniqueName="PlannedHours">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="RemainingHours" DataType="System.Decimal"
                        FilterControlAltText="Filter RemainingHours column" HeaderText="Remaining Hrs" 
                        ReadOnly="True" SortExpression="RemainingHours" UniqueName="RemainingHours">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Workers" DataType="System.Int32" 
                        FilterControlAltText="Filter Workers column" 
                        HeaderText="# Workers" ReadOnly="True" SortExpression="Workers" 
                        UniqueName="Workers">
                    </telerik:GridBoundColumn>
                </Columns>
            </telerik:GridTableView>
            </DetailTables>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
        </EditFormSettings>
        <GroupHeaderItemStyle Height="32px" />
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
    </MasterTableView>
    <GroupingSettings GroupContinuesFormatString="" GroupContinuedFormatString=""></GroupingSettings>
    <FilterMenu EnableImageSprites="False"></FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Sunset"></HeaderContextMenu>
</telerik:RadGrid>


So, my question is: how do I tell the control to use the "Resources" property of the WorkOrderDetails item to fill the content of the second level of the heirarchy?

Marin
Telerik team
 answered on 20 Jun 2011
2 answers
88 views
HI Telerik Team,

I have button when clicked shows the Loading image on the Grid, which is correct and display rows accordingly...

If the same button is clicked by Enter button (from keyboard) the Loading image is not displayed but records are displayed correctly.

Please suggest solution for the above.

Code is as below:
<telerik:AjaxSetting AjaxControlID="button">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGridRecords" LoadingPanelID="RadAjaxLoadingPanel2" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
sudhakar
Top achievements
Rank 1
 answered on 20 Jun 2011
1 answer
66 views
I have a grid that is hidden when the page initially loads.  So, the tab order is correct when the grid is hidden.  The user clicks or presses a button and the grid appears with the results.  Now the tab order is set to the first heading of the grid, which is correct.  Then it tabs through the grid.  But, after the grid instead of going to the menu on the page, it goes to some links on the bottom of the screen, then it goes to the browser URL, then the browser menu, which is not what I want to happen.  Is there a way to keep the tab order the same when the grid is hidden or not?  I'm not sure why it's going to the browser menu after the grid when it appears.

Thanks.
Radoslav
Telerik team
 answered on 20 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?