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

I have inherited from the previous developer, a large project that uses the Rad Classic .Net Controls.

I have installed the new Ajax .Net controls and I am trying to restore all functionality to the site.

I have changed the code that uses RadComboBox to use the new properties according to the documentation on doing this.

The code now compiles cleanly, but the ItemsRequested event is not firing, so the RadComboBox does not populate. Other events, such as Load and Init, do fire, just not ItemsRequsted.

I tried a simple example in a separate project and the RadComboBox works as expected. However, if I cut and paste the control from that project into my project, the event does not fire on it either.

I would consider using the web service interface instead, but I am having trouble getting that to work as well and that is a different story. For now, I would rather just use the existing code if I can get it to work and I am baffled why the event will not fire.

The code is below. The Load and Init events fire as expected. But when I type in the combobox, the ItemsRequested event does not.

This User Control (ASCX) is used by an ASPX file, which uses a master page, which puts a script manager onto the page... in case any of that matters.

In ASCX file:  
 
<rad:RadComboBox ID="RadComboBox2"   
  EnableLoadOnDemand="true" 
  Skin="Vista" 
  Width="250px" 
  runat="server"   
  OnItemsRequested="RadComboBox2_ItemsRequested"   
  oninit="RadComboBox2_Init"   
  onload="RadComboBox2_Load">              
</rad:RadComboBox>   
 
In CodeBehind:  
 
    protected void RadComboBox2_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)  
    {  
        // Never gets here.
        for (int i = 1; i < 10; i++)  
        {  
            RadComboBoxItem item = new RadComboBoxItem();  
            item.Text = "Item " + i.ToString() + " added from ItemsRequested event";  
            RadComboBox2.Items.Add(item);  
        }  
    }  
 
    protected void RadComboBox2_Load(object sender, EventArgs e)  
    {  
         // This event fires.
    }  
 
    protected void RadComboBox2_Init(object sender, EventArgs e)  
    {  
         // This event fires.
    }  
 

Any idea why the event won't fire?

Rick.
Atanas Korchev
Telerik team
 answered on 10 Feb 2009
1 answer
146 views
Hi,
I tried to search but not able to find it. I am not able to make it work when putting tooltip control inside of radajaxpanel. Please suggest - thanks!

   
Structure is showing below
<AjaxPanel>
        <Button>
           <Panel>Dynamic Tooltip added from code behind
</AjaxPanel>


Sampe code

<telerik:RadAjaxPanel ID="test1" runat="server">
<
asp:Panel ID="pl" runat="server">   

 

 

<asp:Button ID="Button2" runat="server" Text="Show Login Form" CssClass="button" />       

 

 

/asp:Panel>   

</telerik:RadAjaxPanel>   

 


Code behind
Partial

 

Class test5

 

Inherits System.Web.UI.Page

 

 

 

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click

        ShowPopupMessage(

 

            "adfadsf")

 

   End Sub

 

 

 


    Public
Sub ShowPopupMessage(ByVal message As String)

 

 

        Dim popupMessage As New Telerik.Web.UI.RadToolTip

        SetPopupControlProperties(popupMessage)

        popupMessage.Text = message

     

   Me.Form.Controls.Add(popupMessage)

 

 

 

    End Sub

 
        Private
Sub SetPopupControlProperties(ByRef control As Telerik.Web.UI.RadToolTip, Optional ByVal isModal As Boolean = False)

 

 

 

 

            With control

            .Position = Telerik.Web.UI.ToolTipPosition.Center

            .RelativeTo = Telerik.Web.UI.ToolTipRelativeDisplay.BrowserWindow

            .Animation = Telerik.Web.UI.ToolTipAnimation.FlyIn

            .ManualClose =

False

 

 

 

 

 

            .Modal = isModal

 

 

            .VisibleOnPageLoad =

 

True

 

 

 

 

            If isModal Then

                .ManualClose =

True

 

 

            Else

 

                .ManualClose =

 

False

 

 

 

 

 

 

 

 

 

            End If

 

 

          End With

 

 

 

 

 

 

 

 

End Sub

 

 

End

 

 

Class

 

 

 

 

 

 

Tsvetie
Telerik team
 answered on 10 Feb 2009
1 answer
133 views
hi

i am using clientShow to intercept the display of a tooltip, I am extracting data from a js array help on the page to create a details tooltip - it is required to display x number of columns of data - thee dats must be aligned as you would see in a table or grid. I acheieved the required look in FF3 using divs with display:inline-block however Ie doesn't recognise this so now  have to create tabels on the fly and pass this text to set_text. this works fine however getting very flaky results when attempting to apply styles to the table

Style is

.hint
{
  background-color : blue;!important;
  border-bottom: 1px solid gray; !important;
  margin: 5px;!important;
}

However while the bottom border is picked up neight the color or margin is being picked - am i missing something?  The style is applied to each cell - I attempted to apply a style to each element ie
table.hint
table.hint.tr
table.hint.td
only the row style was being picked up

thanks
Kieran


 


Tervel
Telerik team
 answered on 10 Feb 2009
1 answer
421 views

We need a way to stop end users uploading images through the image manager that have certain characters in the file name. If a user uploads a file named with spaces or special characters it's a nightmare for our application to deal with it, so we want to prevent the problem at the root cause.

Is there a way to do this? Can the file browser filter out these files or is there some validation event we can use before the upload begins?

I think the FileBrowserContentProvider *may* be want  but I only need to override the default behaviour in one place rather than do a completely custom implementation.

Any advice much appreciated.

Thanks,
James.




Rumen
Telerik team
 answered on 10 Feb 2009
1 answer
122 views
Hi,

I am using popupcontrolextender in my aspx page. i am opening this page from one of my contentpage.
when this pages pops up i see a java script error say 'null' is null or not an object on page load and when i try to debug this it redirects me on debug page and code where the error occured is

function() {var fn = function() {$get('ctl00_ScriptManager1_HiddenField').value += ';;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35:en-US:0d787d5c-3903-4814-ad72-296cea810318:52817a7d:67c678a8;Telerik.Web.UI, Version=2008.2.1001.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4:en-US:9638cb27-0c96-4947-a8f4-d97afe664a61:393f5085:34f9d57d:9703c1f0:a3f85c94:f2a57eb7:526d426:80c4ad6d:527acb41:a9723048:39249aa4:577694e5:665c7bcf:c6335cbd;AjaxControlToolkit, Version=1.0.10123.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e:en-US:16d938d8-51f5-4794-8714-fcfbd6996217:e2e86ef9:c59c074c:1df13a87:c4c00916:ba594826:c76f1358';Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);})();



even though i set EnablePartialRendering='false' it shows same error
same is working on my contentpage where my radscriptmanager is on my masterpage without this error.
Radscriptmanager code on masterpage is as below

<telerik:RadScriptManager ID="ScriptManager1" Runat="server"
          EnableTheming="True" OutputCompression="AutoDetect" EnablePageMethods="true" >
         </telerik:RadScriptManager>

and the same is on my new aspx page that i am calling from a contentpage and facing jscript error is
<telerik:RadScriptManager ID="ScriptManager2" Runat="server" EnableTheming="True"
            OutputCompression="AutoDetect" EnablePageMethods="true" EnablePartialRendering="false">
         </telerik:RadScriptManager>
<telerik:RadScriptManager ID="ScriptManager1" Runat="server"
          EnableTheming="True" OutputCompression="AutoDetect" EnablePageMethods="true" >
         </telerik:RadScriptManager>

please help me to resolve this issue.
Thanks in advance.

Hrushikesh
Atanas Korchev
Telerik team
 answered on 10 Feb 2009
3 answers
130 views
hi

I have a table with field A,B,C,D,E,F. Field A is the PK.

In my grid it display only A,B,C, but when click on the Add New Record, i want the insert form to show all fields for insertion in in-Form edit mode.


Can it be done?
Princy
Top achievements
Rank 2
 answered on 10 Feb 2009
0 answers
95 views
Hi,
Is it possible to use arrow key to select and move a node up and down ?
HSLaw
Top achievements
Rank 1
 asked on 10 Feb 2009
1 answer
136 views
So I have Radcontrols for ASP.Net Q2 2007 - I am using the RadMenu control and attempting to apply one of the skins that are shown in the online tutorials as available skins (CssBlue).  Anyway -- this never works -- every time I change the skin property of the RadMenu control all styling / skinning goes away. 

I have also even tried copying the CssBlue folder from under the Program Files \ Telerik to the RadControls \ Menu \ Skins folder I created in by project directory and this still does not work.  Please advise what I am doing wrong.
Yana
Telerik team
 answered on 10 Feb 2009
3 answers
205 views

Hello Telerik!

In my project I use RadWindow component. I have a next problem under Mozilla FireFox 3.0.6:

When I close pop-up Window internal page doesn't rise onunload event. I have prepared test project to reproduce this issue. How can I send the sample to suport team?

Fiko
Telerik team
 answered on 10 Feb 2009
1 answer
67 views
Hi Svetlina ,

I have a page Default.aspx where the RadwindowManager is there
where a window will open containing abc.aspx

but i want to open another radwindow to open from that window with containing same abc.aspx

but the second window is opened inside the parent window
but my requirement is be open independent window as that of parent window
 I already go through the example
http://www.telerik.com/help/aspnet-ajax/window_programmingopeningfromwithin.html

but its not helping me as i have implemented but the error thoown was  -- Object expected




Fiko
Telerik team
 answered on 10 Feb 2009
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?