Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views

I currently have a context menu linked to a tree-view component which displays fine when I right-click on a branch.
Is there any way to get the same menu displayed when I left-click on a tree-view branch?
Peter
Telerik team
 answered on 10 Oct 2008
0 answers
102 views
Hi all!

I have inserted a RadTreeView in a standard AJAX UpdatePanel, then I have created an handler for the NodeClick event. However, when this event fires, the entire page is posted back. What is the problem?

Thanks in advance for the attention.
--
Marco Minerva [MCPD], marco.minerva@gmail.com
http://blogs.ugidotnet.org/marcom
Marco Minerva
Top achievements
Rank 1
 asked on 10 Oct 2008
5 answers
213 views
Hello,

We would like to implement a load on demand for the combobox in combination with a webservice to ease the dataload on the  page. We are wondering if you can provide us with an example with the following features:

  • combobox => initially empty
  • load items from webservice when clicked or when typing in the textbox (we understand that allowcustomtext cannot be turned off? )
  • display multiple columns in the dropdown
  • when an item is selected trigger another combobox to load items from a webservice

We would really appreciate your help. Thanks in advance.

Rosi
Telerik team
 answered on 10 Oct 2008
3 answers
145 views
Hi -

I've been testing the Rad Upload control.  On my localhost (Vista) and on my old test server (IIS 6) the control displays and works exactly as expected.  On a new server I'm starting on, however, the control simply does not display, and no error messages is provided.  The new machine is Win 2008/IIS 7.  Have you run across this symptom before?

Thanks,

Rod

Helen
Telerik team
 answered on 10 Oct 2008
1 answer
116 views
Hi

I am using rad dock for a portal site I created but have problems when adding a html image (using rad editor) on the dock itself the image displays but gets squashed to a very small size when i add the image (by default it gets added without setting the width and height constraints) but if i manually go and set the width and height in the html code the image displays correctly.

heres the code that creates my rad dock object

public RadDock CreateDockWidget(Control cont, string title, bool showTitleBar, Guid widgetId, int? height, int? width, string nonadminHandle)  
    {  
        RadDock dock = new RadDock();          
 
        dock.Width = Unit.Percentage(100);  
        dock.Skin = "Telerik";  
        dock.UniqueName = widgetId.ToString();  
        dock.ID = "dock(" + widgetId.ToString() + ")";  
        dock.BackColor = System.Drawing.Color.Transparent;  
        dock.Style["background-color"] = "transparent !important";  
         
 
        dock.Commands.Add(new DockExpandCollapseCommand());          
        dock.Title = title;  
        if (height.HasValue)  
        {  
            dock.Height = Unit.Pixel(int.Parse(height.ToString()));  
        }  
        if(width.HasValue)  
        {  
            dock.Width = Unit.Pixel(int.Parse(width.ToString()));  
             
        }  
        dock.ContentContainer.Controls.Add(cont);  
        dock.DockMode = DockMode.Docked;  
        if (adminEnabled)          
        {  
            dock.DockHandle = DockHandle.TitleBar;  
            dock.AutoPostBack = true;  
        }  
        else 
        {  
            dock.BorderStyle = BorderStyle.None;  
            dock.Style["border-style"] = "none !important";  
            dock.BorderWidth = Unit.Pixel(0);  
            if (nonadminHandle != null)  
            {  
                if (nonadminHandle.Equals("Title"))  
                {  
                    dock.DockHandle = DockHandle.TitleBar;  
                }  
                else if (nonadminHandle.Equals("Grip"))  
                {  
                    dock.DockHandle = DockHandle.Grip;  
                }  
                else 
                {  
                    dock.DockHandle = DockHandle.None;  
                }  
            }  
            else 
            {  
                dock.DockHandle = DockHandle.None;  
            }  
            dock.EnableDrag = false;              
        }  
 
        dock.DockPositionChanged += new DockPositionChangedEventHandler(dock_DockPositionChanged);  
        return dock;  
    } 
but i beleve the quick solution will be if you can mabe provide me with code that will manipilate the editor code to automatically put in the width and height on the img tag then the image is inserted.

Thanx
Stuart
Top achievements
Rank 1
 answered on 10 Oct 2008
2 answers
137 views
Hi,

I am using the example LoadOnDemand as an example and wanted to know how to do that function that I can use, so that after informing the value, size and quantity update on the screen, a TextBox the total request as soon as the screen's tooltip is closed .

I put a line in Page_Load however is not appearing, only after updating the screen.

When I put a label to receive the value of the Session [ "product"], for example, that I created in demonstrating the value ProductDetails.ascx this, when I debug, though but not shown anything on the screen.
Svetlina Anati
Telerik team
 answered on 10 Oct 2008
4 answers
109 views
Hello,


I'm using a treeview on a page that also has a form decorator on it. I have a problem with the CheckedNodes property: no matter how many nodes I check, on postback the collection is empty. If the form decorator is removed, everything works fine. Is there any solution to this?


Thank you,

Adrian Petcu
AdrianP
Top achievements
Rank 2
 answered on 10 Oct 2008
2 answers
122 views
Using the folowing code in the OnLoad function for the body of my page I get a null for my datepicker object:

var datepicker = $find("<%= DatePicker.ClientID %>");
datepicker.get_dateInput().disable();

I am trying to have a datepicker object enabled or disabled depending on the value of another field in my page when the screen is loaded.  Is there a better way to do this?  I would prefer to have it on the client side if at all possible.
Jim
Top achievements
Rank 1
 answered on 10 Oct 2008
1 answer
205 views
Hi,

I have been using the following Javascript to get the current values from a Combox for a while now.  Have recently updated to VS2008 and I now get a warning squiggle which says "Expected Expression".

var
ProjectsCombo = <%=ddlProject.ClientID %>;

Everything still seems to work OK, but I was just wondering whether I should be using a different syntax here to avoid the warning?

I am using the RadControls for ASP.NET Ajax Q2 2008 with latest service pack.

David Penny

 

Yana
Telerik team
 answered on 10 Oct 2008
2 answers
192 views

Hi ,

  I am trying to use the Rad Menu for shwoing as a Context Menu.

 

I am using

1 ) RadMenu.Net2

2 ) Telerik.WebControls

 

Now I have solution it for using Telerik.Web.UI,but now it is not possible me to change it (to newer) so I want to continue with Telerik.WebControls.

 

My Reuirement is,

  I have to show the Context Menu on Rad Grid Columns Header to show and hide the columns

 

If possible please send me Sample Code with Telerik.WebControls &  RadMenu.Net2

 

 

 

<script type="text/javascript">

                 var activeTable;

                 var colIndex;

                

                 function ColumnContextMenu(sender, eventArgs)

                 {

                    activeTable = sender.get_masterTableView();

                    colIndex = GetRealCellIndex(sender.get_masterTableView(), eventArgs.get_gridColumn().get_element());

                    

                 }

                 function GetRealCellIndex(tableView, cell)

                 {

                     for(var i = 0; i < tableView.get_columns().length; i++)

                     {

                         if(tableView.get_columns()[i].get_element()== cell)

                         {

                             return i;

                         }

                     }

                 }

                 function ClientItemClicked(sender, eventArgs)

                 {

                    switch(eventArgs.get_item().get_text())

                    {

                        case "CustomerID":

                           activeTable.showColumn(0);

                          break;  

                        case "CompanyName":

                          activeTable.showColumn(1);

                          break;

                        case "ContactName":

                           activeTable.showColumn(2);

                          break;  

                        case "ContactTitle":

                          activeTable.showColumn(3);

                          break;   

                        case "Address":

                          activeTable.showColumn(4);

                          break;

                        case "PostalCode":

                          activeTable.showColumn(5);

                          break

                        case "Hide column":

                          activeTable.hideColumn(colIndex);

                          break;  

                        default:

                         break;

                    } 

                    

                 }

                 function RestoreColumns()

                 {

                    var grid = $find("<%=rdCompanyList.ClientID %>");

                   

                    for(i = 0; i < grid.get_masterTableView().get_columns().length; i++)

                    {

                      grid.get_masterTableView().showColumn(i);

                    }

                 }

                </script>

 

 

 

 

<radM:RadMenu ID="RadMenu1" IsContext="True" runat="server" Skin="Outlook" ContextMenuElementID="rdCompanyList" OnClientClick="ClientItemClicked">

         <RootGroupPersistable>

            <radM:MenuItem ID="MenuItem1" runat="server" Text="Show Columns" Value="TIN">

            <ChildGroupPersistable>

                <radM:MenuItem ID="itemTIN" runat="server" Text="TIN" Value="TIN">

                </radM:MenuItem>

                <radM:MenuItem ID="itemDefaultCountry" runat="server" Text="Default Country" Value="DefaultCountry">

                </radM:MenuItem>

                <radM:MenuItem ID="itemRoundingLevel" runat="server" Text="Rounding Level" Value="RoundingLevel">

                </radM:MenuItem>

                <radM:MenuItem ID="itemSSTPID" runat="server" Text="SSTP ID" Value="SSTPID">

                </radM:MenuItem>

                <radM:MenuItem ID="itemSSTEDate" runat="server" Text="SST Effective Date" Value="SSTEDate">

                </radM:MenuItem>

            </ChildGroupPersistable>

            </radM:MenuItem>

        </RootGroupPersistable>

      </radM:RadMenu>

 

 

<radG:RadGrid  ID="rdCompanyList" runat="server">

<ClientSettings AllowColumnHide="true">

           <ClientEvents OnColumnContextMenu="ColumnContextMenu" />

</ClientSettings

>

 

 

</telerik

:

RadGrid

>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hemant
Top achievements
Rank 1
 answered on 10 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?