Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
393 views
Hello,
I have the following scenario. I have an empty RadGrid and I want to inline insert items. I also have a button and on the button click I need to insert all the items from the RadGrid into a database.
I want to use a DataTable that is placed in a session object as a datasource for my RadGrid. On every RadGrid insert item event I want to add a row into my session DataTable. And after a button click I am going to take each row from the DataTable and insert it's data into an EntityObject (which is in my case called "Product") which I'm going to insert into a database with context.SaveChanges() method.
What I can't accomplish is to store temporary data in a DataTable that is stored in session object.

Please, is there any example of something similar?
Radoslav
Telerik team
 answered on 21 Oct 2014
1 answer
123 views
Hi,
I have a problem with telerik grid: I wan't to change pagebuttoncount property dynamically. But, I got a error (version: 2014.2.724.40)
this is my code
x =  $find('ucGlobalSearch_User_radGridContact');
x.MasterTableView.set_pageButtonCount(4);
Error is in this line: ._data.pageOfLabelClientID;
Sorry, my english is bad
Thanks.

Angel Petrov
Telerik team
 answered on 21 Oct 2014
1 answer
233 views
Hi

My code like this

  <telerik:RadAjaxLoadingPanel ID="Rad1" runat="server"  />
       <telerik:RadAjaxPanel ID="Rad2" runat="server"  LoadingPanelID="Rad1">
<asp:FileUpload ID="Fup1" runat="server" />
</telerik:RadAjaxPanel>  

But I canot retrieved the posted file how will do this? can u solve this
Boyan Dimitrov
Telerik team
 answered on 21 Oct 2014
6 answers
469 views
In http://www.obout.com/editor_new/xhtmlcompare.aspx, obout claims:

obout Editor generates identical XHTML compliant output in all browsers.

Telerik is shown providing different output for different browsers.

Does this matter, and if so, should I be using obout's editor rather than teleriks?

Thank you,
Brother Bill
George
Top achievements
Rank 2
 answered on 20 Oct 2014
4 answers
627 views
I want to add/remove a class from the RadDatePicker when validation occurs, so I can change the border and font to red when it is invalid, and remove those styles when the user fixes the input. I've seen many posts in various forums asking this question or similar questions, but none of the suggestions work with the RadDatePicker.

What I want is a simple and common scenario:
- User selects a date
- Validation fires
- If invalid, change the color or other CSS properties of the control
- Change it back to the default when the user fixes the input

**Edit: I tried to attach a stripped-down version of my project that shows what I have so far, but the extension (ZIP) was not allowed. Please give me an email address to send it to if you'd like to see the sample code.** In the sample project, the problem can be demonstrated by selecting an end date less than the start date, which should trigger the validation. It works correctly in Chrome the first time - border turns red - but only when validation fails after editing the End Date. If validation fails because of changes to the Start Date, the ASP.NET validator picks that up but not the custom code. It's not a complete solution, but it's as far as I got because when I tested in IE I found that the change event doesn't fire at all.

What I really need, and I think many developers would agree, is a simple property on all the Rad controls such as "ErrorStyle" that sets the class used when a control fails validation. Please register that as a feature request.

In the meantime, I could use some help getting this to work with the current version of the date picker. One thing that might help is some information on the client-side events which fire during validation, and which HTML elements they fire from. The date picker has quite a complex hierarchy of elements in it, and I've been having trouble discovering how to hook into the right events. It would be nice if the datepicker had some kind of "onvalidated" event I could use. Failing that, is there a way to handle all validate events on the page, determine which control is a datepicker, and act accordingly?






Edgar
Top achievements
Rank 1
 answered on 20 Oct 2014
1 answer
514 views

want to populate data in dataset from radgrid  , i have  tried following eas bit not working. please provide solution ASAP
Source, DataTable)  -Getting datatable null

2)not getting data from ITemTemplates

le();
        foreach (GridColumn col in grdShippedOrders.Columns)
        {
            DataColumn colString = new DataColumn(col.UniqueName);
            dtRecords.Columns.Add(colString);
 
        }
        foreach (GridDataItem row in grdShippedOrders.Items) // loops through each rows in RadGrid
        {
            DataRow dr = dtRecords.NewRow();
            foreach (GridColumn col in grdShippedOrders.Columns) //loops through each column in RadGrid
                   dr[col.UniqueName] = row[col.UniqueName].Text;
            dtRecords.Rows.Add(dr);
        }
      return dtRecords;

Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Oct 2014
1 answer
84 views
  when forloop applied to Radgrid  not getting  all rows as paging applied , please provide solution

foreach (GridColumn col in grdShippedOrders.Columns)
Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Oct 2014
1 answer
123 views
I tried to run the ComboBox ClientSide sample from the AJAX pdf documentation files. 

Error 1 Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified. C:\Program Files (x86)\Telerik\AJAXDocumentation\Projects\ComboBox\CS\ClientSide\ClientSide\Default.aspx 3
Error 2 Unknown server tag 'telerik:RadComboBox'. C:\Program Files (x86)\Telerik\AJAXDocumentation\Projects\ComboBox\CS\ClientSide\ClientSide\Default.aspx 42
Error 3 Unknown server tag 'telerik:RadTextBox'. C:\Program Files (x86)\Telerik\AJAXDocumentation\Projects\ComboBox\CS\ClientSide\ClientSide\Default.aspx 46

Clearing error 2 and 3 result from the failure of Error 1.

My guess is that I am missing some kind of setup value to point to Telerik in Program Files.  I have VS 2013 and VS 2010, I did pick 2013 for the Telerik install.

I just installed  the lasted Telerik (Q2 2014) using Visual Studio 2013 on Windows 8 64.

Telerik is all error codes so far, yet to see anything working locally.

Thanks,
George


 
Ventsi
Telerik team
 answered on 20 Oct 2014
3 answers
155 views
Do you have sample code to do the skin change and display the color sample like in this screen shot?
Galin
Telerik team
 answered on 20 Oct 2014
1 answer
87 views
I'm using the a password strengthen. 
Is there's a way on how to get the TextStrengthDescription of the strengthen of the password ??
Maria Ilieva
Telerik team
 answered on 20 Oct 2014
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?