Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
611 views
Dear All!

I have a RadGrid. In it I have more different dropdown type columns. I want to do to bind them to different datasources in Edit state.
I have custom collections: List<One>,List<Two>,List<Three>

Can I bind them to dropdowns one-by-one in design time? like here:
<
telerik:GridDropDownColumn DataField="OrderID" ListTextField="ShipCountry" ListValueField="OrderID"  DataSourceID="SqlDataSource4" HeaderText="GridDropDownColumn <br /> with RadComboBox" DropDownControlType="RadComboBox" /> - just with my custom Collections.


How can I bind collections to dropdowns?

thanks
alsi
Princy
Top achievements
Rank 2
 answered on 12 Dec 2008
4 answers
927 views
Hi,
I'm new to Telerik controls and I'm quite enjoying it!

Right now, I'm facing a problem which I really hope someone could help me solve :)

I'm trying to use javascript to stop the postback when selecting an item in a RadComboBox whose AutoPostBack is true..., while still allowing the selected item in the combo box to change...

So from what I understood in the documentation, I can stop it using "return false" in ClientSelectedIndexChanging, but that is not working...

I wrote a test page to check whether the problem was specific to my application, but here also it does not work...

What am I doing wrong?

Thanking you before hand,
Cheers,
Â¥@$#.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Test Page</title> 
    <script type="text/javascript"> 
        function check(item) 
        { 
            alert('test'); 
            return false; 
        } 
    </script> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server"> 
        </asp:ScriptManager> 
        <telerik:RadComboBox ID="RadComboBox1" Runat="server"  
            onclientselectedindexchanging="check"  
            onselectedindexchanged="RadComboBox1_SelectedIndexChanged1"  
            AutoPostBack="True" > 
            <Items> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" Value="1" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" Value="2" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" Value="3" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4" Value="4" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem5" Value="5" /> 
            </Items> 
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </telerik:RadComboBox> 
        <br /> 
        <br /> 
        <br /> 
     
    </div> 
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
    </form> 
</body> 
</html> 
 

Simon
Telerik team
 answered on 12 Dec 2008
3 answers
512 views
Hi,
I'm trying to get a hold of the rowindex in javascript. I'm currently getting it by using code found in another post in this forum. However; when the grid has lots of rows, the code becomes very slow and sometimes even freezes the browser.
My current code:
function RowClick(sender, eventArgs) {  
    try {  
  
        sender.get_masterTableView().get_dataItems();  
        var selectedItem = sender.get_masterTableView().get_selectedItems()[0];  
        var index = selectedItem._itemIndexHierarchical;  
... 
Is there a better, more optimalized way to do this?
Daniel
Telerik team
 answered on 12 Dec 2008
4 answers
167 views
Hello there,

I want to use a customized skin of TabStrip in my application. My desired skin is somewhere close to Telerik skin except for size of tabs and their state dependant colors. For this I need to modify (or build new) images contained in the respective skin folder. I have gone through this thread

http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/how-to-skin-tabstripstates-gif-file.aspx

I have consulted my Graphic Designer on this issue. Modifying these sprite images is a headache as source files of these images are not available. Does anyone know some kind of tool or methodology which can be useful in this regard?

On the other hand if we build these images from scratch, I guess we would run into problems as the embedded javascript will be picking the images through their (x,y) coordinates.

Thanking in anticipation for your help.
Veselin Vasilev
Telerik team
 answered on 12 Dec 2008
3 answers
125 views
Databound combobox, with autopostback set to true

When I change the value, the serverside event fires (places the selectedvalue into a textbox on the page)...then the combobox resets its value back to index 0 sometime after Pre-render

Any idea why?  There's really no code behind except for the event, and the datasource is in the markup
Veselin Vasilev
Telerik team
 answered on 12 Dec 2008
3 answers
138 views
The vertical scrollbar displays in the Insert Symbol dropdown menu.  It hides the right column of symbols.  There are only 20 symbols.  The scrollbar is not necessary.  I don't know if this is caused by our CSS or some known issue.
Stanimir
Telerik team
 answered on 12 Dec 2008
1 answer
71 views
Hi

I have a radGrid with a template column that contains a RadSlider. When i try to add a row in my grid i always receive an error message about the conversion from DbNull to Integer about the radSlider value !! How i can do to fix this, i think i already have read something about that but i cant find the post.

Thanks for yout help.
Yavor
Telerik team
 answered on 12 Dec 2008
1 answer
100 views
Hi!

I am using a splitter with two panes.  The top pane contains my own asp controls, the bottom is set to load an external URL.  For the most part this works as expected but some sites "break out of iFrames".  I really need to stop this from happening and have found resources online on how to stop this behavior for normal iFrames like here (http://kuza55.blogspot.com/2007/03/partially-stopping-sites-breaking-out.html).  I would appreciate any help at all on this as I am stumped!!!

Justin
Tsvetie
Telerik team
 answered on 12 Dec 2008
6 answers
184 views
Hi,
In my grid(s) the GridDropDownColumn is not shown in the available columns list. Is this by design or am I missing something?
staron
Top achievements
Rank 1
 answered on 12 Dec 2008
2 answers
155 views
Hi,
I have this regular RadAjaxLoadingPanel and I was wondering why does the image show duplicate when I run my application and the update panel shows up. Could not find a reason for that, or a setting.
Thank you.
Alexandru
Top achievements
Rank 1
 answered on 12 Dec 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?