Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
197 views
Hi Team,

i have a grid which is having some rows in it.I need to implement editing functionality for each row in the grid.
i am using the editmode=batch properity for this to achieve.
once edit has completed i need to update the changes  in the database when i click on the save changes button.
and also cancel changes by clicking on the cancel button.
i am also need to implement add a new record and update the new record in to the database.

ASPX File:
<telerik:RadGrid ID="RadGrid1" OnItemDataBound="RadGrid1_OnItemDataBound"
runat="server" AutoGenerateColumns="false" CssClass="TransferGridPanel" Height="375px"
Width="500px" OnNeedDataSource="RadGrid1_NeedDataSource" AllowAutomaticUpdates="True" AllowAutomaticInserts="True" onItemUpdated="RadGrid1_ItemUpdated"
OnBatchEditCommand="RadGrid1_BatchEditCommand" OnItemInserted="RadGrid1_ItemInserted"
 OnItemCommand="RadGrid1_ItemCommand" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged">
   <MasterTableView ShowHeadersWhenNoRecords="true" CommandItemDisplay="Top" EditMode="Batch">
    <BatchEditingSettings EditType="Cell" />
<Columns>
          <telerik:GridBoundColumn UniqueName="Id" DataField="Loading_ID">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn UniqueName="TerminalId" DataField="Plant_ID">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn UniqueName="TerminalName" DataField="TerminalName">
          </telerik:GridBoundColumn>
         <telerik:GridBoundColumn UniqueName="StartTime" dataField="LoadingStartTime">
         </telerik:GridBoundColumn>
         <telerik:GridBoundColumn UniqueName="EndTime" DataField="LoadingEndTime">
         </telerik:GridBoundColumn>
</Columns>

How to achieve the above operations  in codebehind file.
Viktor Tachev
Telerik team
 answered on 27 Oct 2014
4 answers
352 views
I want to hide a RadNumericTextBox and later make it visible by javascript:

tbNumPeriodos.set_visible(show);

However, it does not work fine when after hiding RadNumericTextBox in code behind

I have tried several options in code behind:

tbNumPeriodos.Style.Add("display", "none");
If I set visibility to true by javascript, only down arrow is shown and the place when the textbox is not shown.

tbNumPeriodos.Style.Add("visibility", "hidden");     
If I set visibility to true by javascript, up & down arrows are shown and the place when the textbox should appear is reservated but it is not shown.

Any idea on how to achieve that?

Sonia
Top achievements
Rank 1
 answered on 27 Oct 2014
2 answers
111 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
430 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
162 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
253 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
653 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
118 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
231 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
105 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?