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

Hello,

 I have a radcombobox control that gets filled with data on page load ( at code behind ) and I have a rad button on the page, that has a clientclicking event on it, inside this event, I read the selected value of the radcombobox , using jquery selector, and do some validation on it.

The problem is happening whenever I start typing (filtering) inside the radcombobox then pressing the enter key to select the item, it is clearing the selected value of the control, so whenever I read the selected value of the radcombobox after pressing the enter key to select the item, the value gets displayed as empty string. It is working fine if I select an item using a normal mouse click.

The markup for the radcombobox is:

<rad:RadComboBox ID="lstEntity" runat="server" Width="95">
</rad:RadComboBox>

The code used to fill the radcombobox is:

With lstEntity
       .Items.Clear()
       .DataSource = _Entities.EntityCodes.OrderBy(Function(o) o)
       .DataBind()
       .Items.Insert(0, New Telerik.Web.UI.RadComboBoxItem("- Select -", "0"))
End With

 
The code used in the rad button's ClientClicking event to read the selected value of the radcombobox is:
 

var selectedEntity = $find($("[id$='lstEntity']")[0].id).get_value();

Therefore, the selectedEntity is being filled  with an empty string, whenever I select an item from the radcombobox through an enter key. As a note, the get_text() function always returns the correct selected text, regardless of the way I use to select the item (mouse click or Enter key).

So I am not sure if this is an issue with the control itself, or it is in the way I am binding the data with control or even reading the selected value. I would appreciate it if someone can help me.
 
Regards

Aram
Top achievements
Rank 1
 asked on 07 Oct 2013
3 answers
120 views
I am looking for step by step procedure to add telerik to Global Application Cache in windows 7 home professional and visual studio 2008.

I cannot run the .net application using telerik in debug mode from visual studio on different PC other than it was developed on.

I know I have to add telerik controls to visual studio, but not sure how to do it.

Here is the error I get:
Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

TELERIK VERSION INSTALLED ON DEVELOPMENT COMPUTER IS DIFFERENT FROM MY TESTING COMPUTER.
Shevki
Top achievements
Rank 1
 answered on 05 Oct 2013
7 answers
242 views
Hello ,

I want to enable/disable rad ribbon applicationmenu items. I tried .Enabled property.but not working.
Please provide me a solution.

Thanks
Abhi
Abhilash
Top achievements
Rank 1
 answered on 05 Oct 2013
3 answers
1.0K+ views
When running my ASP.NET webforms app in the Visual Studio 2012 debugger using IIS Express and a localhost URL I'm getting the following error:

JavaScript runtime error: 'WebForm_InitCallback' is undefined

however when I deploy the app and run under IIS I do not get the error.  I've tried everything and can't resolve this.  Any suggestions?


Aniello
Top achievements
Rank 1
 answered on 05 Oct 2013
4 answers
107 views
Hiwhen I select a row, the columns change size.
Column Status is radcombobox.
I put two images before and after.

If
you have an idea.

Thank you very much ..
Sylvain Guay
Top achievements
Rank 1
 answered on 05 Oct 2013
6 answers
731 views
Hi,

I have several RadGrid in my application with lots of data in it. 

I wanted to know why the scrolling go back to the top of the grid after a postback from edit or cancel edit.

Example:

I click on a row to edit it. At this point, the scrolling is ok. But when I click on Update or Cancel, the scroll go back to the top of the grid after the postback. Is it possible to keep the scroll or set the scroll to the top of the page and instead of the grid?

Thanks,

Jocelyn
Jocelyn
Top achievements
Rank 1
 answered on 04 Oct 2013
2 answers
110 views
Hi,

I have a grid bound to a list and I want to disable the enter key when it is pressed anywhere in the grid.

I have already followed this article and it did not work. I also tried setting the form's default button to an invisible button that doesn't do anything, but it's still not working.


This grid is always in edit mode (multi row edit).

Any ideas?
Garrett
Top achievements
Rank 1
 answered on 04 Oct 2013
2 answers
98 views
I created a Hierarchy grid in my page with object data sources.. calling some static methods in the code behind..
When i run the code.. i see the little arrow indicating the rows are expandable.. but when i click on it .. it wont expands..
I did see the call being made to the selectmethod in ods2 (see below) with the proper parentid value..
(select method prototype is .. List<...> SelectDataForODS2(int ParentId) {} ).. there was even values returned .. but the rows wont expand.

What am i missing?

<telerik:RadGrid ID="....... DataSourceID="ods1">
<MasterTableView AutoGenerateColumns="False" DataSourceID="ods1" DataKeyNames="parentid"
                            EditMode="EditForms" AllowFilteringByColumn="False" AllowMultiColumnSorting="True">
            <DetailTables>
                                <telerik:GridTableView Name="..." runat="server" AutoGenerateColumns="False"
                                    DataKeyNames="childid" DataSourceID="ods2" Width="100%">
                                    <ParentTableRelation>
                                        <telerik:GridRelationFields DetailKeyField="parentid"
                                            MasterKeyField="parentid" />
                                    </ParentTableRelation>
                                    <Columns>........
........................................


Chris
Top achievements
Rank 1
 answered on 04 Oct 2013
0 answers
139 views
EDIT: Can close this issue. I found the troublesome css. For anyone else who was wondering, we had some input[textbox][disabled] css rules that were overriding the rcbInput settings.

Hello, we recently updated our Telerik controls to version Q2 2013. When we did so, the appearance of disabled RadComboBoxes changed across our entire application.

The issue is that you can see the outline of the input textbox even while the control is disabled. I've attached a screenshot to demonstrate.

I'm guessing it's a css issue, but I'm not sure how to set the styling for the internal textbox if it is.
Adam
Top achievements
Rank 1
 asked on 04 Oct 2013
2 answers
183 views
Hi,

I have a hierarchical  grid, which shows the list of Orders Closed for the Year > Month > Order Number fashion.
That is the first level grid will have the list of years which the orders are created in descending order. For e.g., 2013, 2012, 2011 etc
The second level grid will show the Months for the Orders created. For e.g., January, February, March etc..
The third level grid will show the Order Numbers. For e.g, 1000, 1001, 1002 etc. 
My grid ASPX code is as below:
<Telerik:RadGrid ID="rgYears" runat="server" AutoGenerateColumns="False" CellSpacing="0"
     Width="200px" GridLines="None" Skin="Office2007" Font-Names="Calibri,Arial" AllowSorting="true">
     <MasterTableView DataKeyNames="DateClosedYear" ShowHeader="false">
         <Columns>
             <Telerik:GridBoundColumn DataField="DateClosedYear" HeaderText="Year" UniqueName="DateClosedYear">
             </Telerik:GridBoundColumn>
         </Columns>
         <SortExpressions>
             <Telerik:GridSortExpression FieldName="DateClosedYear" SortOrder="Descending" />
         </SortExpressions>
         <DetailTables>
             <Telerik:GridTableView runat="server" Name="MonthDetails" DataKeyNames="DateClosedMonth"
                 Width="176px" NoDetailRecordsText="No Child Records" ShowHeader="false">
                 <Columns>
                     <Telerik:GridBoundColumn DataField="DateClosedMonthName" HeaderText="Month" UniqueName="DateClosedMonth">
                     </Telerik:GridBoundColumn>
                 </Columns>
                 <ParentTableRelation>
                     <Telerik:GridRelationFields DetailKeyField="DateClosedYear" MasterKeyField="DateClosedYear" />
                 </ParentTableRelation>
                 <DetailTables>
                     <Telerik:GridTableView runat="server" Name="OrderDetails" DataKeyNames="OrderNumber"
                         Width="143px" NoDetailRecordsText="No Child Records" ShowHeader="true">
                         <Columns>                                           
                             <Telerik:GridButtonColumn ButtonType="LinkButton" CommandName="SelectOrderNumber"
                                 DataTextField="OrderNumber" FilterControlAltText="FilterOrderNumber column" HeaderText="Order Number"  UniqueName="OrderNumber" SortExpression="OrderNumber" ShowSortIcon="false">
                             </Telerik:GridButtonColumn>
                         </Columns>
                         <ParentTableRelation>
                             <Telerik:GridRelationFields DetailKeyField="DateClosedMonth" MasterKeyField="DateClosedMonth" />
                         </ParentTableRelation>
                     </Telerik:GridTableView>
                 </DetailTables>
             </Telerik:GridTableView>
         </DetailTables>
     </MasterTableView>
 </Telerik:RadGrid>


I store the Order number when ever the user cilcks on it to see the details. But when the user comes back, I want to show him the last Order number he accessed which I could do with the below code.
'rgYears dataGrid is already databound
'Get all the Months and Years for Orders Closed
'The below section of the code is called at Page Load
Dim OrdersMonthYear = dHelper.OrdersClosedMonthYear(oNumber) 'Get the Month and Year of the last accessed Order
If (rgYears.MasterTableView.Items.Count > 0) Then
    Dim rgYearsItem As GridDataItem = rgYears.MasterTableView.FindItemByKeyValue("DateClosedYear", OrdersMonthYear.DateClosedYear)
    If Not IsNothing(rgYearsItem) Then
        rgYearsItem.Expanded = True
        Dim rgMonthsItem As GridDataItem = rgYearsItem.ChildItem.NestedTableViews(0).FindItemByKeyValue("DateClosedMonth", OrdersMonthYear.DateClosedMonth)
        If Not IsNothing(rgMonthsItem) Then
            rgMonthsItem.Expanded = True
            Dim rgOrdersItem As GridDataItem = rgMonthsItem.ChildItem.NestedTableViews(0).FindItemByKeyValue("OrderNumber", oNumber) 'Last Accessed Order Number from the table
            If (Not IsNothing(rgOrdersItem)) Then
                rgOrdersItem.Selected = True
            End If
        End If
    End If
End If

I am facing problems with the Expand Collapse. I need to Collapse all the expanded grids when the user clicks on Expand. If the last accessed Order Number is of the expanded Year > Month, I want that row to be selected.

For e.g., Order 1003 was closed on 2013 > July. So when I click August, July should be Collapsed and August Month should be shown. Also when I expand July, August should be closed,  July must be expanded and select the Order number 1003.
Angel Petrov
Telerik team
 answered on 04 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?