Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
153 views
To Telerik..................

This item may be closed and deleted, please and thank you.  I kept working on this and discovered an erroneous .select earlier in the page load event that was setting the selected item to an incorrect item.

Sorry to kluge up the works with a useless forum entry.

I have a combo box (current version) that I am populating at Page Load.  The combo box definition is:

<telerik:RadComboBox
    ID="SearchCountry"
    MarkFirstMatch="True"
    TabIndex="5"
    style="z-index: 9000;"
    Width="200px"
    EnableEmbeddedSkins="true"
    Skin="Sitefinity"
    runat="server"
    Height="150px"
    OnClientSelectedIndexChanging="aLoadSearchStateProv"
>

The code used to populate the combo box is:
Dim reader As SqlDataReader = cmd.ExecuteReader()
Do While reader.Read()
    RCBI = New RadComboBoxItem()
    RCBI.Text = Convert.ToString(reader(sFieldToPopulate))
    RCBI.Value = reader("CodeList")
    If oValueToMatch = RCBI.Value Then
        RCBI.Selected = True
    End If
    RadComboBox1.Items.Add(RCBI)
Loop
reader.Close()
reader = Nothing

Here are the pertinent facts:
(1) The combo box is being populated correctly as far as the total entries are concerned.  See attached graphic.
(2) I have stepped through the code and the "RCBI.Selected = True" line of code is being executed ONCE during page load and it is being executed for the correct RCBI.Value (key value of 128).  But the first item in the list is showing (the one saying "Select from this list").  Refer to the second uploaded graphic.

Why isn't the item selected (actually the record for key value 128, United States) being displayed in the combo box display area after page load?

Thanks in advance for your assistance?  Let me know if you need additional information and I will happily comply!

Lynn
Lynn
Top achievements
Rank 2
 asked on 12 May 2011
2 answers
91 views
Hello everybody,

When I am using radtooltip 100% width on the left and right appear smaller spaces, which can not occupy the entire width of the page. How do I remove these spaces?

Thanks
Klayton Fratoni
Top achievements
Rank 1
 answered on 12 May 2011
2 answers
129 views
Hey guys,

By default, when I enable check boxes on the RadTreeView, I'd like the cursor to show up as a hand ( 'pointer' ). I'd like to just make that the default style, but can't seem to find the right thing to target the check boxes. Any help would be appreciated.
Developer Developer
Top achievements
Rank 1
 answered on 12 May 2011
4 answers
170 views
Hi,

I'm using rotator to slideshow and my images get visible slowly  , its okey but i want to do it when images are changing.

I mean images have to disappear slowly ,  fading out.

Thank you 
Niko
Telerik team
 answered on 12 May 2011
4 answers
252 views
Hello there

I am trying to disable button in ribbon bar in client-side script. After building pretty complex script to get reference to button item I called set_enabled(false) and nothing happened. I think problem is in set_enabled function in:
set_enabled: function (c) {
		if (this._element) {
			return;
		} if (c) {
			b(this._element).attr("disabled""disabled");
		} else {
			b(this._element).removeAttr("disabled");
		}
	}

if this._element is set, return is called. I think it should be opossite. Or am I doing something wrong?
I was able to disable the button with hard-code hacks in js. But disabled image is not used.

Another problem is that when I disable button even from server-side, button text looks like disabled and
button frame is not shown. But I am still able to click the button and I am redirected to '#'.





BTW:




How can I easily find reference to button item in js?

Thank you very much.

Kind regards
Andrej

Andrej
Top achievements
Rank 1
 answered on 12 May 2011
3 answers
73 views
This is the C# code I tried to convert:

var usaOrders = from od in OrderDetails
where od.Order.Customer.Country == "USA"
select new {
    Company = od.Order.Customer.CompanyName,
    OrderDate = od.Order.OrderDate,
    OrderID = od.OrderID,
    Product = od.Product.ProductName,
    UnitPrice = od.UnitPrice,
    Quantity = od.Quantity,
    Discount = od.Discount,
    Extended = od.UnitPrice * od.Quantity * ( 1M - (decimal)od.Discount )
};


and this is what I got:
Dim usaOrders = _
    Where od.Order.Customer.Country = "USA"
 
'=======================================================
'Service provided by Telerik (www.telerik.com)
'Conversion powered by NRefactory.
'Twitter: @telerik, @toddanglin
'Facebook: facebook.com/telerik
'=======================================================

I expected to have something like:
Dim usaOrders = from od in OrderDetails _
    Where od.Order.Customer.Country = "USA" _
    select  _
        Company = od.Order.Customer.CompanyName, _
        OrderDate = od.Order.OrderDate, _
        OrderID = od.OrderID, _
        Product = od.Product.ProductName, _
        UnitPrice = od.UnitPrice, _
        Quantity = od.Quantity, _
        Discount = od.Discount, _
        Extended = od.UnitPrice * od.Quantity * ( 1 - od.Discount )

Todd Anglin
Top achievements
Rank 2
 answered on 12 May 2011
2 answers
60 views
I've seen one or two posts on this, but I'm not quite there yet.  I looked at this post:

http://www.telerik.com/help/aspnet-ajax/ajax-show-loadingpanel-on-initial-pageload.html

I think the main difference with my project is that I'm using a Masterpage/content page scenario and I'm not sure how to call the Ajax Manager on the Masterpage using the Proxy on the content page.  Basically, I have about 10 drop down lists to load and as soon as the page starts loading, I would like to show the Ajax Panel while it finishes.

Help?

thanks

mark
Maria Ilieva
Telerik team
 answered on 12 May 2011
2 answers
80 views
Hey, it seems like once I'm opening a RadWindow and then moving it around a bit, the focus is now only in the RadWindow, and no more on the background page. How can I give the focus back to my background page ? So that when I click on an image something happen immediatly ?

Thanks in advance,
Francis.
Francis
Top achievements
Rank 1
 answered on 12 May 2011
1 answer
65 views
I have a RadWindow set to autosize. Initially, it sizes correctly. However, when I close and reopen the window (window.close() then window.show()), the window is resized incorrectly. The width is way too narrow, but the height stays the same. I get similar behavior for any AutoSizeBehaviors value and any DestroyOnClose value. I do not have the resize problem in FireFox.
Marin Bratanov
Telerik team
 answered on 12 May 2011
1 answer
268 views
Hi guys,

We try to decide which product to use in our next project. (We do not have a chance to use Silverlight/WPF, it will be ASP.Net Ajax controls)

- In each page we will have charts and grids. In this case,  what do you think the best way of exporting RadChart and RadGrid into the same Excel sheet and PDF is? I know I can't use ExporttoPDF, ExporttoExcel methods with charts/graphs.

- I've already tried to put charts into grid and export to PDF, it works but I really don't prefer to do that. I can't put all of my charts into grids... (And export to excel does not work in this way I guess...)

- I don't prefer to use third party ( itextsharp etc.) products either. BUT if it works with RadGrid/RadChart and makes the export much easier, in  that case, I can switch to that...

I am new to Telerik and really need your thoughts...

Waiting your replies, thanks,
Ervin
Daniel
Telerik team
 answered on 12 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?