Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
98 views
I have a grid kind of similar the demo at:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchy-with-templates/defaultcs.aspx

I am using NestedViewTemplate.
My problem is that the same as the url above,
I have no issues to have a page size combobox for the nested view,
But cannot make have page size to the parent grid.

Is it a grid limit - or is there are way?
I am trying to use:
           <PagerStyle Mode="NextPrevAndNumeric" PageSizeLabelText="Page Size: "PageSizes="5,10,25,50,100,250" />
but see no combobox.
Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Oct 2014
2 answers
378 views
Yes, this is a common problem. The foreign key stored in a field is no longer valid.

Not all legacy applications use declared referential integrity. Sometimes, on some records, foreign keys are broken.

In other languages, how comboboxes deal with this situation is they simply remain blank.

Not with a RadComboBox. Instead, it throws an error.

Now, combine this with an online web application which uses a RadMultiPage and dozens of RadComboBoxes.

How many hours do you have to spend when one of these situations pop up attempting to find which Combobox is the source of the error?

Well, its been 4 thusfar this morning, and I'm no closer to finding which RadComboBox is throwing the error.

Do you think, maybe.... just maybe... you could print the name of the control throwing the error in the error message to aid people in tracking down specifically which control is tossing its cookies? Rather than

Selection out of Range
Parameter Name: value

maybe make it read:

Selection out of Range
Parameter Name: value
Control: Whatever id= name my control has?

?
mathieu
Top achievements
Rank 1
 answered on 24 Oct 2014
3 answers
122 views
I have installed ASP.NET AJAX with Visual Studio 2013 on Windows 8.1 Pro 64.  I did have DevCraft, but I removed it all and only have ASP.NET AJAX now.

On my own already existing project, I added the Bin4.5/Telerik.Web.UI for the Toolbox and the Telerik toolbox items show up and can be used.

I also ran Telerik.Web.UI.VSPackage.vsix from C:\Program Files (x86)\Telerik\UI for ASP.NET AJAX Q2 2014\VSExtensions hoping it would help. That caused the About under Help to include Telerik to be shown in Installed products which it was not before which seems good.

If I open one the RadControlsAJAXCourseware project .sln files the Telerik toolbox items are disabled. If I try to run on Google I get compile errors and warnings saying Visual Studio does not know about the Telerik tools:

Error 1 The type or namespace name 'Telerik' could not be found in the global namespace (are you missing an assembly reference?) C:\Program Files (x86)\Telerik\AJAXDocumentation\Projects\Chart\CS\GettingStarted1\GettingStarted1\Default.aspx.designer.cs 50 27 GettingStarted1
Warning 2 Could not resolve this reference. Could not locate the assembly "Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. GettingStarted1
Warning 3 Could not resolve this reference. Could not locate the assembly "Telerik.Web.UI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. GettingStarted1

I have looked through the Visual Studio looking for some why to add a Telerik reference.  The Web.config file does not contain any Telerik references.

What do I need to do so the Courseware projects can be used on Visual Studio 2013?

Thanks,
George












George
Top achievements
Rank 2
 answered on 24 Oct 2014
6 answers
218 views
I am trying switch to Telerik from obout because of perceived support for VS 2013 and obout seems to be not going forward.  I developing in ASPs. I told Telerik to use my Visual Studio 2013 when I installed it.  The install sure messed up my Visual Studio settings. 

I tried to run the ASP.NET AJAX sample and get the error " C:\Program Files\...\HtmlSampleTests.csproj cannot be opened because it project type is not supported by the version of the application."   It is opening VS2010 (which I installed for obout) and giving the error.

I opened it with VS 2013 using "open with..." and it opened fine.

Both VS2010 and VS2013 use a .sln extension but somehow 2010 verses 2013 is determined.  The tootip on the Sample .sln says 2010, while the tooltip on my own .sln says 2013.  I have no idea how the systems is determining the difference.   Telerik should make the .sln open 2013 for the 2013 install.

In the end I am not quite sure what this sample is for, I was hoping form implementation samples.  Start just gives an error.

Cheers,
George
George
Top achievements
Rank 2
 answered on 24 Oct 2014
1 answer
611 views
Height of the Rad Grid increases when user resizes a column that has two or more words in the header text, since the header text is wrapped. This is evident in the demo provided by telerik:
http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/columns/column-row-resize-reorder/defaultcs.aspx

Can we disable this wrapping for header texts through some css or anything? Wrapping can be disabled for cell data, but i didn't find anything for header text. Setting Wrap='false' in HeaderStyle does not work. I need to keep the height fixed during resize without explicitly mentioning grid height, so resizing should not result in wrapping in header or cell data.
Please help me out.

Thanks.
Kostadin
Telerik team
 answered on 24 Oct 2014
2 answers
94 views
I have added a very basic combobox to a simple page. When it renders, it has an extra item on the right as if it is trying to render twice side-by-side. When I hover over the dropdown arrow, the arrow disappears. I have used several skins, but the behavior is the same. The functionality is correct, but it is unpleasant for the users.

​
Magdalena
Telerik team
 answered on 24 Oct 2014
1 answer
201 views
Hi,

I have a very specific scenario when AutoCompleteBox does not work properly.

<telerik:RadAutoCompleteBox ID="TextBoxAutoCompleteEmployerName" runat="server"  
    MaxResultCount="10" MinFilterLength="3" InputType="Text" AllowCustomEntry="True" >
   <TextSettings SelectionMode="Single" />
   <WebServiceSettings Method="GetEmployerByName" Path="Employer.ascx" />
</telerik:RadAutoCompleteBox>

Steps to reproduce:

1. Open a page with an AutoCompleteBox
2. Input a filter until this filter matches an item on your list (case sensitive here)
3. Click on this item
4. Perform any postback operation
5. Note both AutoCompleteBox Text and Entries are empty in the code behind (although AutoCompleteBox was filled on the page itself)

On step 3, if instead of clicking the list item, I press tab or enter key, then I have no problem.

This is a really big problem! 

Has anyone experienced this before?
What did you do?
Boyan Dimitrov
Telerik team
 answered on 24 Oct 2014
1 answer
73 views
Is there a method to determine the number of masked characters in a RadMaskedTextBox.Mask?  For example, if the mask is defined as "###-###-#### (US)" the number of masks is 10 (whereas the length of the mask would be 17).

I've looked at the MaskParts collection, but don't see a simple way of determining the number of masks (vs. literals).

Any help would be appreciated so I don't recreate the wheel!
Konstantin Dikov
Telerik team
 answered on 24 Oct 2014
6 answers
174 views
Hi,
I have a RadGrid that's bound to EntityDataSource. A few of the columns are bound to navigation properties of the bound entity. When I try to delete a record, it gives the following error:

Error: Sys.WebForms.PageRequestManagerServerErrorException: A property named 'Vehicle.VehicleNo' was not found on the entity during an insert, update, or delete operation. Check to ensure that properties specified as binding expressions are available to the data source.

I know if I choose to use the plain foreign key IDs, instead of the navigation properties, everything works. I can easily get the delete to work if I handle it manually. But I"m just thinking there's got to be a way for the automatic delete to work too. Please advise.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True"
                        AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                        DataSourceID="EntityDataSource1" GridLines="None" ShowGroupPanel="True" Skin="Hay"
                        OnItemUpdated="RadGrid1_ItemUpdated"
                        OnItemInserted="RadGrid1_ItemInserted" OnItemCommand="RadGrid1_ItemCommand"
                        Height="400px" Width="700px" CellSpacing="0">
                        <MasterTableView DataKeyNames="ADChecklistId" DataSourceID="EntityDataSource1" CommandItemDisplay="Top">
                            <CommandItemSettings AddNewRecordText="Add New Aerial Device Checklist" ShowRefreshButton="false"
                                ShowAddNewRecordButton="true"></CommandItemSettings>
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                                    HeaderText="Edit">
                                </telerik:GridEditCommandColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" UniqueName="DeleteCommandColumn" HeaderText="Delete" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this record?">
                                </telerik:GridButtonColumn>
                                <telerik:GridBoundColumn DataField="Vehicle.VehicleNo" FilterControlAltText="Filter VehicleNo column"
                                    HeaderText="VehicleNo" SortExpression="Vehicle.VehicleNo" UniqueName="Vehicle.VehicleNo">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Employee.FirstName" FilterControlAltText="Filter FirstName column"
                                    HeaderText="FirstName" SortExpression="Employee.FirstName" UniqueName="Employee.FirstName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Employee.LastName" FilterControlAltText="Filter LastName column"
                                    HeaderText="LastName" SortExpression="Employee.LastName" UniqueName="Employee.LastName">
                                </telerik:GridBoundColumn
                                <telerik:GridBoundColumn DataField="Utility.UtilityName" HeaderText="Utility" SortExpression="Utility.UtilityName" UniqueName="Utility.UtilityName" >
                                </telerik:GridBoundColumn>                               
                                <telerik:GridDateTimeColumn DataField="CreatedOn" DataType="System.DateTime" FilterControlAltText="Filter CreatedOn column"
                                    HeaderText="CreatedOn" SortExpression="CreatedOn" UniqueName="CreatedOn" DataFormatString="{0:MM/dd/yy}">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="CreatedBy" FilterControlAltText="Filter CreatedBy column"
                                    HeaderText="CreatedBy" SortExpression="CreatedBy" UniqueName="CreatedBy">
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="ModifiedOn" DataType="System.DateTime" FilterControlAltText="Filter ModifiedOn column"
                                    HeaderText="ModifiedOn" SortExpression="ModifiedOn" UniqueName="ModifiedOn" DataFormatString="{0:MM/dd/yy}">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="ModifiedBy" FilterControlAltText="Filter ModifiedBy column"
                                    HeaderText="ModifiedBy" SortExpression="ModifiedBy" UniqueName="ModifiedBy">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <ClientSettings AllowDragToGroup="True" EnablePostBackOnRowClick="true">
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                            <Resizing AllowColumnResize="true" ClipCellContentOnResize="false" />
                        </ClientSettings>
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                        </HeaderContextMenu>
                    </telerik:RadGrid>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" AutoGenerateWhereClause="True"
       ConnectionString="name=MSOpsEntities" DefaultContainerName="MSOpsEntities"
       EnableFlattening="False" EnableDelete="True" EntitySetName="ADChecklists"
       Include="Vehicle, Employee, Utility" OrderBy="it.CreatedOn DESC"
       OnSelecting="EntityDataSource1_Selecting"
       ondeleting="EntityDataSource1_Deleting">
       <WhereParameters>
           <asp:SessionParameter Name="UtilityId" SessionField="utilityId" Type="Int32" />
       </WhereParameters>
   </asp:EntityDataSource>

Kostadin
Telerik team
 answered on 24 Oct 2014
3 answers
75 views
I've started using more of the ASP.Net's built-in Profiles to store presistent user information and as a way to reduce the number of SQL calls needed to retrieve various peices of user information.

When I had the information stored in a SQL table, it was easy to load this into a grid.

How can I retrieve the profile information and populate a grid?

Thanks,
Joe
Kostadin
Telerik team
 answered on 24 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?