Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
215 views
I am using RC Q2 2010 Net 4

I am using a combobox as a lookup that automatically fills with data from a SQL Table so that when a user begins typing in the box the data filters. Everything works great as long as the user SELECTS the item from the dropdown list. However, if the user types the exact item in the box and the dropdown filters to the exact text and the user hits the enter key and does not select the item from the list, the box queries all items in the table and not just the item that was typed.

For example, the CB we are using lists data from a user table with a field called LastName.

When the user starts typing 'bro' the box filters the list and shows all users that have a last name that begins with 'bro'

brown
browning
brownly

If the user selects browning from the list, the correct user data is queried and returned.

However, if the user types the entire name browning and hits the enter key instead of selecting it from the dropdown list, all users are returned.

Here is the ASPX code for my ComboBox:
<telerik:RadComboBox ID="rcb_Users" Runat="server" AutoPostBack="True"
DataSourceID="sds_UserList" DataTextField="UserName"
DataValueField="UserName" EmptyMessage="Select User" Height="150px"
Skin="WebBlue" EnableAutomaticLoadOnDemand="True" EnableVirtualScrolling="True"
ItemsPerRequest="10" ShowMoreResultsBox="True">
</telerik:RadComboBox>

Is there a way to alow the use of the enter key?
RvdGrint
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
184 views
I have Sql Database and I want to bind it through LINQ from code-behind programmatically in C#.NET. How can I do that?

I have the following code written:

public void populatetree()
    {

        using (DataClasses1DataContext db = new DataClasses1DataContext())
        {
            MsgType mt=new MsgType();
            RadTreeView1.DataFieldParentID = mt.ParentID.ToString();
            RadTreeView1.DataFieldID = mt.ID.ToString();
            RadTreeView1.DataValueField = mt.ID.ToString();
            RadTreeView1.DataTextField = mt.Name;
            RadTreeView1.ToolTip = mt.Description;
           RadTreeView1.DataSource= ?
   
            RadTreeView1.DataBind();
            
        }
    }
what shud I do for the datasource?
Richard
Top achievements
Rank 1
 answered on 31 Jan 2012
2 answers
545 views
Hi guys

I want to call buttonClick event from javascript

 <telerik:RadToolBar ID="_rtooMenu" runat="server" Width="100%" dir="rtl">
            <Items>
                <telerik:RadToolBarButton runat="server" Text="Save" Value="Save" Owner="_rtooMenu" PostBack="true">
                </telerik:RadToolBarButton>
            </Items>
</telerik:RadToolBar>

<script type="text/javascript">
         function FunctionFoundByJavascriptThroughLayersAndLayersOfControls() {
__dopostback ????
         }
    </script>

 Protected Sub _rtooMenu_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles _rtooMenu.ButtonClick
'I want FunctionFoundByJavascriptThroughLayersAndLayersOfControls to get here

end sub
Bill Togkas
Top achievements
Rank 2
 answered on 31 Jan 2012
4 answers
352 views

Hello all

if i put this code into the head section of my master page,
items are 10 pix height as expected, but only on vstudio2008 webdevserver, not on production server (w2k3).

<style type="text/css">
.RadListBox span.rlbText  { padding:0; line-height:10px; }
</style>

the only differences in ie8 sourcetext compare are things like this: <link href="/WebResource.axd?d=Xv_vuQIqd...blabla
Maybe there is a better way to set the line height of my listbox items, the default height is much too big for my taste.
i am a bit lost...
Any ideas?

Jean-Francois Lussier
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
56 views
Hi there. First, sorry about my english.

We have a project on Visual Studio 2010 and we had implement the demo of the MDI application and works great but when we implement an ajax request to get the url of the window to be open, everything go fine until the tabstrip call the repaint method and because of this, the minimize window doesn't work. The question is How can a fix this situation??



Thanks in Advance
Oscar
Top achievements
Rank 1
 answered on 31 Jan 2012
3 answers
53 views
How do I switch between showing a Listview with pictures to a more grid0like view. It must use JavaScript and/or Ajax not repaint the whole screen.
Andrey
Telerik team
 answered on 31 Jan 2012
1 answer
48 views

Hello,

I am using radgrid in my web appliaction i want to disable the radgrid on certain conditions,so i am using radgrid.enable=false at server side. It is working fine in IE but in mozilla and safari its not disabled its still enabled.

How to make radgrid disabled in mozilla and safari? please help me....

Richard
Top achievements
Rank 1
 answered on 31 Jan 2012
9 answers
157 views
I have following test code and I cannot get the Active Region to work, any help would be highly appreciated

<telerik:RadChart ID="RadChart3" runat="server" Skin="Mac" Width="900" Height="500"
            <Series> 
                <telerik:ChartSeries ActiveRegionUrl="javascript:alert('123')" Name="testSeries" Type="Line" > 
                    <Items> 
                        <telerik:ChartSeriesItem ActiveRegion-Url="javascript:alert('item1')" XValue="1" YValue="12"></telerik:ChartSeriesItem>  
                        <telerik:ChartSeriesItem ActiveRegion-Url="javascript:alert('item2')" XValue="2" YValue="15"></telerik:ChartSeriesItem>  
                        <telerik:ChartSeriesItem ActiveRegion-Url="javascript:alert('item3')" XValue="3" YValue="20"></telerik:ChartSeriesItem>  
                    </Items> 
                </telerik:ChartSeries> 
            </Series> 
            <PlotArea> 
               <XAxis LayoutMode="Inside" AutoScale="false" LabelStep="10" > 
                    <Appearance ValueFormat="Number" MajorGridLines-Visible="false"
                        <LabelAppearance RotationAngle="45" Position-AlignedPosition="Top"
                        </LabelAppearance> 
                    </Appearance> 
                </XAxis> 
                <YAxis IsZeroBased="true"
                </YAxis> 
            </PlotArea> 
    </telerik:RadChart> 
 
Ves
Telerik team
 answered on 31 Jan 2012
3 answers
46 views
Hello,

I have a textbox control in raddock content and click on it to give it the focus. When I click the collapse command button, the content area is hidden (including the textbox) but the blinking caret still visible. Even typing will go into the textbox even though the caret does not move at all.

This is observed only under IE9. In other browsers, the textbox will lose the focus when clicking the collapse button so the above behaviour does not occur.
Slav
Telerik team
 answered on 31 Jan 2012
1 answer
61 views
I have a RadColorPicker (Telerik) inside of a HTML tablecell. The HTML table is within a RadPane that is vertically scrollabe. As soon as the user starts scrolling, the RadColorPicker stays at the same position and is thus 'floating' up and down the screen. I have inserted javascript to stop the colorpalette from floating, thats not the issue.

Any ideas as to how I can make the colorpicker move with the rest of the elements?

The problem happens only on IE 9.0.4.

Thanks
Slav
Telerik team
 answered on 31 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?