Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Self-Paced Tutorial > Tutorial: Combobox..
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Tutorial: Combobox..

Feed from this thread
  • Posted on May 4, 2007 (permalink)

    continuing on with notes from the tutorial:

    Combobox

    ***general note: when using the IDE to create any event handler, do not copy and paste the tutorial code entirely, copy only the body of the text, as the Handler keywords will be lost. (VB)
     
    p.91.. After playing with various widths for the combo dropdown, the wisdom of the 8 pixel differential is not apparent.. unless of course i am just dense.

    p.94: wrong project in image, although it makes no difference.

    p.95: import System.Data is also needed to reference "DataTable" in code..

    p.97: filename should be CountryPicker.ascx not CountryPicker.aspx



     

  • Posted on May 4, 2007 (permalink)

    .97: "..but this comes with a caveat: the OnItemsRequested handler can not be a method of a user control, it has to be a method of a page."
            
    ** can this be explained in more detail? This seems like a major disruption to creating usercontrols, although i can see that we can coordinate all streamer efforts together.. it just feels very clunky.

  • surfer Master avatar

    Posted on May 4, 2007 (permalink)

    Does not seem right to me either. I even created a sample project to test that, and ItemsRequested event handler inside .ascx User Control code-behind was working just fine.

    ItemsRequested appears to be a standard ASP.NET event and can be wired in the same way you can wire any event (using the On{EventName} declarative syntax) and the += programmatic syntax (C#) or AddHandler (VB.NET)

  • Posted on May 6, 2007 (permalink)

    ^^ perhaps the falafel folks can enlighten us on that one


    **p.105: the VB code is wrong! : should read LoadModels(e.Text) rather than LoadModels(e.Value). While trivial, this was a bugger to track down as i assumed something more complex, and didn't stop to compare to the C# code.

  • Posted on May 6, 2007 (permalink)

    a brief note on a note of mine from earlier: regarding adding the Handles clause to a function signature. Take care with this as in some cases, if your aspx sets the hook already, and you add the Handles clause as is required in other areas, you will be calling the fn() twice. I encountered this with the cascade example.. hth, drew..

  • Noel Rice avatar

    Posted on May 9, 2007 (permalink)

    Hi Drew: 
      We appreciate your feedback on the courseware.  We hope the quality of the material in general makes the effort worthwhile for you and apologize for any inconvenience. 
      Here are some specific responses to issues you brought up.  The updated PDF will be made available asap:  

    p.91.. After playing with various widths for the combo dropdown, the wisdom of the 8 pixel differential is not apparent.. unless of course i am just dense. Making the DropDownWidth slightly larger helps prevent unintended horizontal scrollbars from appearing.  We're adding a tutorial note to this effect.  "When there are more items than fit heightwise, vertical scroll bars appear, and those eat into the horizontal space, causing horizontal bars to appear as a side effect. If the width accommodates the vertical bars to start with, the horizontal ones don't show."

    p.94: wrong project in image, although it makes no difference. Reshot the image and updated the tutorial.

    p.95: import System.Data is also needed to reference "DataTable" in code. In the C# world, if you start a new asp.net project you get system.data by default.  There appears to be the similar behavior in VB.NET but I'm still checking this and will update the tutorial if there is a difference. 

    p.97: filename should be CountryPicker.ascx not CountryPicker.aspx
    This is now fixed in tutorial.

  • Noel Rice avatar

    Posted on May 9, 2007 (permalink)

    p.105: the VB code is wrong! : should read LoadModels(e.Text) rather than LoadModels(e.Value). While trivial, this was a bugger to track down as i assumed something more complex, and didn't stop to compare to the C# code.  This is now fixed in the tutorial.
    -Noel

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Self-Paced Tutorial > Tutorial: Combobox..