Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
Hello,
I have a peculiar problem and I wonder how to best solve it.

We have data that is segmented in different levels. What I want to display is a list of all "top" levels with aggregated data for that level.
When the user expands/selects a row I want to query the database for the detail rows. The data has the exact same columns for all rows, so I don't want a nested view or table to screw up my alignements.

As an example: I have two regions, when I first look at the grid, I want to show the total number of products sold per region.
Then I select the southern region.
New rows are queried and inserted under the selection, showing for each outlet the specific number of the same products sold.
The same happens if I select the northern region.

I've attached four pictures to illustrate what I mean.

I tried getting it done using grouping, but the information per row is just a text, I would like it to display the same cells as the rows below.

Please advise how best to do this.
Anders
Top achievements
Rank 1
 answered on 03 Feb 2012
1 answer
50 views
Hi,

I am trying to open popup using 'RadWindowManager'.I am able to open popup window in IE8 successfully.But same code does not work in IE9.In IE9, no popup is displayed.I am using Visual studio 2008 and Telerik.Web.UI (2011.3.1305.35).Please see the code below.

Please suggest what changes i need to make to open popup in IE9 as well.

Thanks,
Sanjeeb 


Code:
-----------------------------------------
 <script language="javascript" type="text/javascript">
        function openWin() {
            var oWnd = radopen("EditItem.aspx", "RadWindow1");
            oWnd.setSize(630, 465); 
            oWnd.center();
            oWnd.SetActive();
            oWnd.set_modal(true);
            //oWnd.set_visibleTitlebar(false);
            oWnd.set_visibleOnPageLoad(true);
            oWnd.set_reloadOnShow(true);
        }
  </script>

<telerik:RadScriptManager ID="MainRadScriptManager" runat="server" EnablePageMethods="true">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManagerProxy ID="RadAjaxManager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="CreateGroupRadAjaxPanel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="CreateGroupRadAjaxPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="100%"
        Width="75px" HorizontalAlign="Center" Skin="Vista">
    </telerik:RadAjaxLoadingPanel>
    
  <asp:UpdatePanel ID="AddGroupUpdatePanel2" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnAddItem" EventName="Click" />
     </Triggers>
 </asp:UpdatePanel>
<asp:Button ID="btnAddItem" CssClass="button" Text="Add Item" 
    Font-Bold="true" runat="server" Style="float: RIGHT; width: 90px;" 
        OnClientClick="openWin();return false;" />


Richard
Top achievements
Rank 1
 answered on 02 Feb 2012
2 answers
716 views
I am trying to use the radWindow to represent equipment.  I don't know if it will work or what other control might work.  What I need to do is add a panel to the radWindow and then show controls (other panels, images, and text) inside the panel based on locations inside the panel.  I can get the initial panel to display properly, but when I try to add controls to the panel they display based on 'static' positioning.  If I try to set the positioning to 'absolute', the entire panel draws over top of the radWindow.  I assume this is due to the rendering of the radWindow itself.  Is this even possible?  Is there a better rad control to use?

Browser = Chrome 16.0.
OS = Windows 7.
Target = .Net 3.5
Language = C#
Charles Reid
Top achievements
Rank 1
 answered on 02 Feb 2012
5 answers
125 views
hi all,
I want to open a new default.aspx with a radgrid in it, can somebody help me?

I open the window with a click in my panelbar, with this code :

string url = "Default2.aspx";
string testurl = "window.open(' "+url+" ','_blank','height=800,width=1000,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,titlebar=no');";
ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", testurl, true);

Is it possible to define a radgrid with datasource in this code?

thanks in advance,
esmyy
Richard
Top achievements
Rank 1
 answered on 02 Feb 2012
4 answers
70 views
I have a RastreeView... such as:


Every node has an attribute
Folders has attribute["Type"] = "F"
and documents has attribute["Type"] = "D"

When create a TV for every node assign ContextMenu
Document has --> document Context Menu
Folder has --> Folder Context Menu

I NEED change contextMenu if user do:
-- click on Documents and Folders --> Change to COMMON MENU

I do this in RastreeView ClickNode event , but does not work if I selected every node with Control+click or shift+click

Where I can catch all selected nodes and change on runtime ContextMenu??

regards
July
Top achievements
Rank 2
 answered on 02 Feb 2012
1 answer
46 views
Hi,

I need to add our own tag using paragraph dropdown.
so, i added the code like
<Paragraphs>
      <telerik:EditorParagraph Title="Normal" Tag="<p>" />
      
       <telerik:EditorParagraph Title="<H4 >Add xref<H4>" Tag="<xref>" />
         </Paragraphs>
so, i apply style to content , it add the tag between the content. like <xref> testing sample </xref>


i need to add multiple tags and attributes of tag like
 <xref id="" sctid=""> testing sample </xref>

Is there any way to get this.

How to add attributes of tag.

Thanks,
Uma
Rumen
Telerik team
 answered on 02 Feb 2012
3 answers
357 views
I have a RadWindow, has a download button, on the download button

On download_click does below.

Response.AddHeader("Content-Disposition", "attachment;filename=" + MyFileInfo.FullName);
  
Response.WriteFile(FullPath, StartPos, FileSize);
  
Response.End();

Then pop up the window download screen, you can click save or open, if I click "save", it downloads file perfectly. If I click "Open", the file displays in the html parent window instead of the Radwindow. If there anyway that the "Open" displays html in the Radwindow instead of the parent window?

Thanks!
Marin Bratanov
Telerik team
 answered on 02 Feb 2012
1 answer
51 views
I have two tables, customers and addresses.  Each customer may have many addresses, with one default address. Simplifed a bit they contain the following fields:

Customers table - Name, CustomerID, DefaultAddressID
Addresses table - Address, AddressID, CustomerID

I am using a RadGrid to edit customers, and I would like to add a function to select the default address using a GridDropDownColumn. Currently, this is listing all the addresses, not just the ones for that customer.

How can I restrict the dropdown box to only list addresses for that customer?

Kind Regards, Richard Jonas
Tsvetina
Telerik team
 answered on 02 Feb 2012
4 answers
205 views
I'm attempting to change the focus on a RadConfirm popup form to be on the cancel button as opposed to the OK button as is set by default. In order to do this, I've added a ConfirmTemplate to my WindowManager as follows:

<div class="rwDialogPopup radconfirm">   
                <div class="rwDialogText">
                    {1}    
                </div>   
                <script type="text/javascript">
                    function radwindowprompt_setfocus() {                        
                        var container = document.getElementById("buttonContainer");
                        var but = container.getElementsByTagName("A")[1];                                             
                        but.focus();                                               
                    }  
                </script>   
                <div id="buttonContainer">                    
                    <a onclick="$find('{0}').close(true);"  class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a>                    
                    <a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a>
                    
                </div>
            </div>

I've also set the OnClientShow event to run adwindowprompt_setfocus when the window is shown.

This only seems to work when I set a breakpoint in Firebug and step through. When I just run it, this doesn't seem to work at all.

Any suggestions?
Marin Bratanov
Telerik team
 answered on 02 Feb 2012
0 answers
51 views
Loading Panel image does not show up on Internet Explorer 7 when I set a transparency property to the AjaxLoadingPanel.  I referred to this forum post:
 http://www.telerik.com/community/forums/aspnet-ajax/ajax/loading-panel-image-doesn-t-show-up-on-internet-explorer-7.aspx
From reading this post I understand that IE7 does not support animated images placed inside an element with a filter style applied (the transparency in IE is produced with such a style).  Also, I read from the forum post that you can create a custom skin for RadAjaxLoadingPanel and use the desired loading image there.  The only problem is that I have an older version of the rad controls(2006) and I do not have an option to set a skin property.  Is there any other possible workaround to this issue.  I need to add a transparency to the panel that works with IE7.  Please let me know.
Aret
Top achievements
Rank 1
 asked on 02 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?