Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
191 views
Hi,
i am trying to use a dropdownlist(separate data source) inside a radgrid. While binding the radgrid to the datasource i get this exception:
Exception Details: System.IndexOutOfRangeException: Cannot find column Id.
here is the code that i am using the ascx file

<telerik:RadGrid ID="radGridApplicantStatus" runat="server" AllowSorting="true" AllowPaging="true" 
                PageSize="12" AllowMultiRowSelection="false" ShowGroupPanel="true" GridLines="None" 
                OnNeedDataSource="OnRadGridApplicantStatus_NeedSource" OnSortCommand="OnRadGridApplicantStatus_SortCommand" 
                OnItemDataBound="OnRadGridApplicantStatus_ItemDataBound"> 
                <PagerStyle Mode="NumericPages" AlwaysVisible="true" Position="Bottom" /> 
                <MasterTableView AutoGenerateColumns="false" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true" 
                    AllowNaturalSort="false"> 
                    <SortExpressions> 
                        <telerik:GridSortExpression FieldName="Id" SortOrder="Descending" /> 
                    </SortExpressions> 
                    <NoRecordsTemplate> 
                        Jobs 
                    </NoRecordsTemplate> 
                    <Columns> 
                        <telerik:GridBoundColumn UniqueName="JobID" SortExpression="JobID" HeaderText="Order #" 
                            DataField="JobID" HeaderStyle-CssClass="ms-toolbar" HeaderStyle-Width="17%" HeaderStyle-HorizontalAlign="Left" 
                            ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="false"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn UniqueName="JobTitle" SortExpression="JobTitle" HeaderText="Title" 
                            DataField="JobTitle" HeaderStyle-CssClass="ms-toolbar" HeaderStyle-Width="12%" 
                            HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="false"> 
                        </telerik:GridBoundColumn> 
                         
                      <telerik:GridTemplateColumn UniqueName="ApplicantStatus" SortExpression="ApplicantStatus" 
                            HeaderText="Applicant Status" DataField="ApplicantStatus" HeaderStyle-CssClass="ms-toolbar" 
                            HeaderStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" 
                            ItemStyle-Wrap="false"> 
                            <ItemTemplate> 
                                <asp:DropDownList runat="server" ID="ddlApplicationStatus"> 
                                </asp:DropDownList> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid> 



Questions:
1. Should i use this gridtemplatecolumn or a GridDropDownColumn? I need to show a dropdown box in the grid which is in non -Editable mode.
2. How to fix this error?

Shinu
Top achievements
Rank 2
 answered on 08 Feb 2010
3 answers
102 views
Q3 2009 SP2

SortedBackColor does not work with client-side databinding, is it supposed to?  I'm using GetBindingData() on the server.  Sorting the column data works fine, but how can I change the background color of the sorted column??

Thanks.
Yavor
Telerik team
 answered on 08 Feb 2010
1 answer
172 views
I have a rad grid that displays in the following manner. What I am trying to accomplish to is if you see the columns with the heading(s) Name, LegName, MedicalConditions, DateofBirth and id displays as two rows, as it normally would, but what I would like to do is to have all that data display in ONE Row because it all belongs to one registration. If you look at the two images, image one is how the data comes out of the DB normally. Image two is how I would like to be. Please keep in mind that this is a small example and I actually have more fields than just this, so I am looking for something extensible. Thanks for your help!







Princy
Top achievements
Rank 2
 answered on 08 Feb 2010
6 answers
282 views
Hello,
 
I have a radgrid that is paged and i have enabled scrolling, with 3 frozen columns.

I have three problems:
1) I would like to disable vertical scrolling. The user of my grid can set the page size to a number of rows and I would like the proper number of rows to be shown, without vertical scrolling. Can this be done?
2) It seems that the column widths are not scrolled at the same time as the columns are when using horizontal scrolling. By this I mean that when columns are scrolled, the size that they will take is the size of the original column that was showing in that spot before the scrolling took place. This does not look good and reduces the amount of data I can show in the grid at the same time.
3) As soon as I enabled horizontal scrolling, a number of columns on the right are missing and can't be scrolled to. If I disabled horizontal scrolling then they reappear and I can scroll to them using Internet Explorer's horizontal scroll bar.

An alternative for me would be to use the default IE scrolling, which fixes problems #1,#2 and #3, but this prevents me from freezing some columns and also the grid displays a vertical line in middle of the column that is at the right of the window.

Regards,

Sylvain
Krishnaprabhuraja
Top achievements
Rank 1
 answered on 07 Feb 2010
2 answers
185 views
Is there an easy way to determine when the mouse has completely left the menu?   The MouseOut event gets fired when moving from one menu item to the next, so the mouse may or may not have completely left the menu.  How can I determine for sure that the mouse isn't over the menu, or any child menus?

Thanks,
Brian
Brian Mila
Top achievements
Rank 1
 answered on 07 Feb 2010
1 answer
124 views
Here's the line of code:

<telerik:RadDateInput Label="Order Date:" width="700" ID="RadDateInput1"
DateFormat="MM/dd/yy" ForeColor="GrayText"
SelectedDate='<%#DateTime.Now%>'
runat=server /> 
 

When the control is rendered to the page.  The DateInput is empty.  I would expect it to be today's date. 

Ideas?

atk

Adam
Top achievements
Rank 1
 answered on 07 Feb 2010
7 answers
430 views
Hi

I am new to datepicker control. I am able to do all other operations with it. can any one tell me how to validate the content entered in it.
I want to associate a regular expression to it so that client side validation disable the postback till a valid value is entered. I don't want to use a required field validator as the field is not mandatory in my case.

Any pointers to this will be greately appreicated.
TonyG
Top achievements
Rank 1
 answered on 07 Feb 2010
2 answers
217 views
Hello,
I got an exception with Q3 2009 Chart Control, the exception is
The type 'Telerik.Charting.Styles.StyleLabel' exists in both c:\...\...\...\Telerik.Charting.DLL


I have cleaned the asp.net temp folders but the problem persisted, on the machine there is no Telerik Reporting installed.

This happens on two development machines so it is not a localized case.

What could the cause be, and what might the solution be.

Thanks,
Martin
Martin
Top achievements
Rank 1
 answered on 06 Feb 2010
6 answers
135 views
It doesn't seem to matter how I define AppointmentTemplate it always displays the same way. I suspect that it is something to do with the skin 'cos, as you will see from the screenshot (attached), the right HTML is being rendered...

Am I missing something?

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 05 Feb 2010
2 answers
133 views
Hi, everybody

I have been working with Telerik controls since yestarday and they don´t work properly, they send me a message sometimes in design time, the message is: "Error rendering control. An unhandled exception has ocurred. Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral' or one of its dependencies. The system cannot find the file espicified"

the background is: I have VS2008 and I work with Rad Control Ajax Q3 2009 SP2.
The files exist.
The first times I did a repair of files and it work properly, but now its don't work.

I will apreciate your help.
Edgar Treviño
Top achievements
Rank 1
 answered on 05 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?