Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
285 views
Hi everyone,
                I want to create a popup for a button.When I click the button the popup will open having some checkbox which is created in server dynamically.I am able to create the checkbox and popup.But the popup is visible in between i click the left click and click release.Can any one tell me how i will show the popup after the click event.

protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            create_Items();
        }
    }
 
    protected void RadButton1_Click(object sender, EventArgs e)
    {
        create_Items();              
    }
 
    private void create_Items()
    {
        panel1.Controls.Clear();
        int i;
        for (i = 0; i < 5; i++)
        {
            CheckBox cb = new CheckBox();
            cb.ID = "cb" + i.ToString();
            cb.Text = "Checkbox" + i.ToString();
            popcontrol1.TargetControlID = "RadButton1";
            popcontrol1.PopupControlID = "panel1";
            popcontrol1.Position = AjaxControlToolkit.PopupControlPopupPosition.Bottom;
            panel1.Controls.Add(cb);
        }
    }


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<
html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>   
    <form id="form1" runat="server">
    <asp:ScriptManager ID = "ScriptManager1" runat = "server"></asp:ScriptManager>
    <div>
    </div>
    <telerik:RadButton ID="RadButton1" runat="server" onclick="RadButton1_Click"
        Text="RadButton">
    </telerik:RadButton>
    <cc1:PopupControlExtender ID="popcontrol1" runat="server" TargetControlID="RadButton1"
        PopupControlID="panel1" Position="Bottom" />
             
     
    <asp:Panel ID="panel1" runat="server" BackColor="#ccffff" Height="182px" Width="211px">
    </asp:Panel>
            
             
        <telerik:RadButton ID="RadButton3" runat="server" Text="RadButton">
    </telerik:RadButton>
 
    </form>
</body>
</html>


with regards
bibhu.
Princy
Top achievements
Rank 2
 answered on 03 Feb 2012
1 answer
112 views
In the same browser, when I view a chart when deployed to an IIS7 Windows 2008 server, its looks different from what I see when I view in local  VS2010 debug mode.  The fonts inside the chart are different causing the deployed version to truncate the title and badly wrap the xaxis label.  The attached image is a side-by-side comparison of the two chart's screenshots. 
MARK
Top achievements
Rank 1
 answered on 03 Feb 2012
3 answers
181 views
i have a datagrid. i used to use autogeneratecolumns  = true

on the RadGrid1_ColumnCreated
i formatted the columns based upon the datatype (HorizontalAlign, $ formatting, ect)

to get the google-like filtering, i had to go away from that and do a foreach statement to load the columns..

none of the events i have hooked up to seem to help me format it.

if autogeneratecolumns   = false

what event do i hook up to?
Princy
Top achievements
Rank 2
 answered on 03 Feb 2012
2 answers
87 views
Please let me know if this is possible. I want to replace"more" link in month view with an image button. Please let me know if this is feasible. if not atleast how can I change the color of "more" link.
Pooja
Top achievements
Rank 1
 answered on 03 Feb 2012
1 answer
132 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
71 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
789 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
172 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
102 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
58 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?