Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
I'm creating a very simple page that calls radconfirm.  Basically, when the page loads, it is supposed to display a confirm box.  Here is the code for the page:

<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">  
        </telerik:RadScriptManager> 
        <div> 
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="Default" 
                InitialBehavior="None" Left="" Skin="Vista" Top="">  
            </telerik:RadWindowManager> 
            <script language="javascript" type="text/javascript">  
            radconfirm('Hello', test, 330, 100);  
            function test(arg) {  
               alert('test' + arg);  
            }  
            </script> 
        </div> 
    </form> 
</body> 
</html> 

Unfortunately, the above errors out on the following line in the Telerik AXD reference:

var _e=_d._getStandardPopup("confirm",_7); 

(line 4197)

I've used this method before with the older RadControls, but it does not seem to work with 2008 (Version: 2008.1.619.20).

Does anyone have any suggestions?  It is sort of critital that I resolve this quickly, as deadlines are looming.

Thanks in advance,
Alex Tushinsky

Georgi Tunev
Telerik team
 answered on 24 Jul 2008
1 answer
115 views
I have have several charts placed in a raddock. Each of them has been resized as

chart.Appearance.Dimensions.Width = 900;

chart.Appearance.Dimensions.Height = 100;

Now for some reason, there is a huge white space between the bottom of the first chart on the doc and the one after it. And this behavior is repeated from one chart to the other. How do i rectify this and close the white space between the charts so that the charts will be stacked on to of each other.
Please let me know how i could send u a screen shot incase this is not clear and u need a vitual material. thanks.

Ves
Telerik team
 answered on 24 Jul 2008
2 answers
336 views
I am having trouble with on client close.  I am trying to get it so that when the radwindow is closed the parent page refreshes.  The only problem is when i try to do this, when i first load the parent page, without even opening the radwindow the parent page seems to get stuck in some kind of loop, it constantly refreshes.  I don't understand how it can happen if the radwindow has not even been opened yet.

Thanks in advance

Ian
Ian
Top achievements
Rank 1
 answered on 24 Jul 2008
1 answer
151 views

The following example with the Default tools file shows some of the advanced paste options in a vertical list

(Paste, Paste from word, Paste from Word, Strip Font, Paste Plain Text, Paste As Html)

 

Can someone suggest how to declare this button in the tools file.  

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/Default/DefaultCS.aspx

FYI: Hyperlink Manager not functioning properly on forum submit editor control




Rumen
Telerik team
 answered on 24 Jul 2008
1 answer
168 views
I could use a control that would allow me do drag and drop operations in an easy manner that would be fully templated. Ajax Control Toolkit has a ReorderList that comes very close, but unfortunately it has very little client side support and I found a bug with it when I have nested ReorderLists. The TreeView comes very close to the functionality that I'm looking for, but it restricts me a lot as far as layout. If made flexible enough I can see a ton of uses for it, but it has to have very few layout (html) restrictions.

My 2 cents, thanks...
Peter.
Sebastian
Telerik team
 answered on 24 Jul 2008
2 answers
160 views
1. The context menu stays open when I use the arrow keys to navigate the tree. How can I close the context menu once the user is no longer on the node that they opened the menu for.

2.  In the Rad controls for ASP.NET the "Enter Key" worked to expand/contact a node, but it does not work the same way in Prometheus. Did you change this design or am I missing something.

3. Can I use the escape key to close the context menu?

Thanks for the help.

Som
Vishal
Top achievements
Rank 1
 answered on 24 Jul 2008
5 answers
426 views
I need a grid  that has a drop down in each row. When you change the drop down it grabs the ID for that row as well as the changed drop down value. I don't want the user to have to hit an edit button then a save button. I've got the look I want below but I'm struggling getting the datakey value of that row. Please help.

    <telerik:RadGrid ID="RadGrid2"   
        OnNeedDataSource="RadGrid2_NeedDataSource"   
        OnItemCommand="Lead_Click"   
        Skin="Mac"   
        Width="97%"   
        AllowSorting="True"   
        PageSize="30"   
        AllowPaging="True"   
        runat="server"   
        Gridlines="None">  
        <MasterTableView Width="100%" Summary="RadGrid table" DataKeyNames="Link_ID" AutoGenerateColumns="false">  
        <Columns> 
            <telerik:GridBoundColumn DataField="Company_Name" HeaderText="Company Name"></telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="City" HeaderText="City"></telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="State" HeaderText="State"></telerik:GridBoundColumn> 
            <telerik:GridTemplateColumn UniqueName="StageTemplate" HeaderText="Stage">  
                <ItemTemplate> 
                    <telerik:RadComboBox ID="Stage" runat="server" DataValueField="Stage_Definition" Skin="Office2007" OnInit="ddStageBound" OnSelectedIndexChanged="buttonChangeLead_Click" AutoPostBack="true">  
                        <Items> 
                            <telerik:RadComboBoxItem Value="1" Text="Pre-Approach" /> 
                            <telerik:RadComboBoxItem Value="2" Text="Approach" /> 
                            <telerik:RadComboBoxItem Value="3" Text="Presentation" /> 
                            <telerik:RadComboBoxItem Value="4" Text="Close" /> 
                            <telerik:RadComboBoxItem Value="5" Text="Completed" /> 
                        </Items> 
                    </telerik:RadComboBox> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
        </Columns> 
        </MasterTableView>     
        <PagerStyle Mode="NextPrevAndNumeric" /> 
        <ClientSettings   
            EnablePostBackOnRowClick="true" 
            AllowColumnsReorder="true" 
            ReorderColumnsOnClient="true"   
            EnableRowHoverStyle="true" > 
            <Selecting AllowRowSelect="true" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
 

        protected void buttonChangeLead_Click(object source, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)  
        {  
            string StageID = e.Value;  
            //Need the parent grids datakeynames "Link_ID" of the row that i changed  
        }  
 
Princy
Top achievements
Rank 2
 answered on 24 Jul 2008
1 answer
218 views
I use a GridNumericColumn to display an amount of money.  If the amount of money is negative, i want to change the font color to red.  Is there is any property allowing me to do so?

thanks
Shinu
Top achievements
Rank 2
 answered on 24 Jul 2008
1 answer
165 views
Hi,

I have a grid with 3 detail tables hierarchy.  I wonder if anyone can show me how to collapse and expand a detail table based on a drop down list click.  In each of the row or item in my grid, I have a "Yes/No" drop down list. If a user select "yes", then I want to expand the detail table.  If they select "no", then I want to collapse the table. 

Thanks again.
Princy
Top achievements
Rank 2
 answered on 24 Jul 2008
2 answers
119 views
These seems like it should be simple, but for some reason I can not figure out how to do it.  I am handling the ItemCommand event of a hierachial self-referening grid.

I simply need to get the key of the item where the add new record button was clicked.

For example

Item 1
    Add new Record
    Sub Item 1
       Add new Record
Item 3
    Add new record
    Sub Item 2
       Add New Record


If I click on the Add new record button under Item 1, I need to get the key/value of Item 1.

If I click on Add new record under Sub Item 1, I need to get the key/value for Sub Item 1.

Seems like a simple thing, but I can't seem to get it.
Shinu
Top achievements
Rank 2
 answered on 24 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?