Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
181 views
Morning.

I want to acces the data of a NestedViewTemplate item with a button for each row there, here is a image so i can explain better:

i want to put a button where the red scuare is to acces the data that inside the blue scuare.
Princy
Top achievements
Rank 2
 answered on 23 Jun 2014
2 answers
164 views
Hello!

The property DatePopupButton-ToolTip of RadDatePicker does not work.
"Open the calendar popup." cannot be changed to empty string.

Please don't give me an answer with the javascript method. This is not the solution!
Maybe you have at least a css rule!

Thanks!
Christoph
Top achievements
Rank 1
 answered on 22 Jun 2014
6 answers
465 views
I need to change the formatting of some of the field in the row/record if one of them contains any value.
I tried this:

 if (e.Item is GridDataItem)
        {
            GridDataItem dataBoundItem = e.Item as GridDataItem;
            if ((dataBoundItem["AlternCost"].Text) != null)
            {
                dataBoundItem["AlternCost"].ForeColor = Color.Red;
                dataBoundItem["AlternCost"].Font.Bold = true;
                dataBoundItem["AlternCost"].BackColor = Color.Yellow;
                dataBoundItem["TotCost"].ForeColor = Color.Red;
                dataBoundItem["TotCost"].Font.Bold = true;
            }
        }

but I am experiencing problems because the back color applies to the entire column if the condition is true and I need it to be applied only to the "AlternCost" cell/row of the record where the condition occurs.
Please help!

Thanks
Felice
Top achievements
Rank 1
 answered on 22 Jun 2014
5 answers
557 views
I have a radgrid with 4 columns:
Quantity, Cost, SpecialCost, TotalCost
The first 3 columns are data bound, the 4td column is a Calculated column.
I need to calculate the value of the TotalCost based on Quantity*Cost, this is easy:

DataFileds: Quantity, Cost
Expression: {0}*{1}

but if the SpecialCost cell contains a value then the calculation should be done using SpecialCost*Quantity.
As far as I know, the Expression editor does not take logical functions otherwise I could simply use an if statement to check if SpecialCost contains a value and select it.

How can I achieve the above? 
Felice
Top achievements
Rank 1
 answered on 22 Jun 2014
2 answers
359 views
Hi ,

dears , I just need your help as I've a grid contain two labels they are retrieving dates " start_date " " end_date "
I already create a "diff_button", I need when I press in this button to subtract the dates and get the difference in months
and then insert the value in a cell "difference "
Mohamed El-Sayed
Top achievements
Rank 1
 answered on 21 Jun 2014
4 answers
365 views
Hi,

I have integrated the RadUploadProgress module with my web application.

Oiwng to this I had to add a new line in my web.config file as below:

<add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpHandler, RadUpload.Net2"/>

The website successfully builds.
Now when I try to run the application in the debug mode, it generates a runtime error as below:

Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 
  
Parser Error Message: Could not load file or assembly 'RadUpload.Net2' or one of its dependencies. The system cannot find the file specified. (E:\Webhome\Power50\Power50UI\web.config line 97)
  
Source Error: 
  
  
Line 95:    <!--<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />-->
Line 96:    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
Line 97:       <add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpHandler, RadUpload.Net2"/>
Line 98:    </httpModules>
Line 99:   
  

Please suggest how can I get this resolved.

Thanks.
Debashis


Satbir
Top achievements
Rank 1
 answered on 21 Jun 2014
1 answer
506 views
Hi,

Is there a way to prevent the user from entering more decimal places than specified in the decimal digits setting? 

There was another forum post asking something similar about the control automatically adjusting the value when the user enters something out of range.  Setting AllowOutOfRangeAutoCorrect="false" worked great to address the out of range problem.  Is there something along the lines of AllowRoundingAutoCorrect="false"?

If I set the Type="currency" and NumberFormat-DecimalDigits=2, then I would like the control to display the same sort of validation error as it does for an out of range entry.  Is that possible maybe with javascript?

And note...the default behavior for any control should NEVER be to just automatically change what the user enters to a valid value.

Thanks,
Princy
Top achievements
Rank 2
 answered on 21 Jun 2014
3 answers
1.0K+ views
Hi,

I have nested RadGrid and I want to get the value of a particular column from the selected row of matertableview( in other words clicking on the expand/collapse). Because, I need to use that for the child items query.

Below is my code-snippet:

​protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
            // code???
                    string customerid= dataItem.GetDataKeyValue("CustomerId");
 }

Thanks a million.
           
Princy
Top achievements
Rank 2
 answered on 21 Jun 2014
1 answer
125 views
Hi Telerik,

I'm facing an undesired duplicate recording problem with RadGrid when the user accidentally hit the insert link more than once.

The radgrid will execute the insertion twice, I've tried some solution such as Response.Redirect to the same page in the OnItemInserted event, but it will not help due to the fact that the insert command is already sent twice.

I came across a post in the forum mentioning the same issue here, but the admin seems to have misunderstood the question, much appreciated if this time someone can give a better instruction on the problem.

If one double-click can't mimic the problem, click on the insert link nonstop with certain frequency until the page is refreshed, you'll see multiple same record are inserted into the radgrid.

Hope I'm clear here.

Best regards.
Princy
Top achievements
Rank 2
 answered on 21 Jun 2014
0 answers
183 views
I am having an issue in the Kendo HTML 5 Scheduler.  I am setting the Scheduler to Etc/UTC, which as I understand it, should display the event at the time it comes in.  However, it appears to be adjusting the event to the browser timezone.

I edited the demo site to recreate this problem.  Here is the code: http://trykendoui.telerik.com/URux/3

If you run this, the event shows up at your local time, even though it's set to epoch 1403229600000 which is 2:00am UTC.  I'm in Mountain Time, so it shows up at 8:00pm the previous day (-6 hours UTC) in the schedule.

Now look at http://trykendoui.telerik.com/URux

The following lines have changed:
      StartTimezone: null, to StartTimezone: "Etc/UTC",
and
      EndTimezone: null, to EndTimezone: "Etc/UTC",

The event shows up correctly, however, now try and drag it to a new date.  It saves to the local browser time again.

Am I doing something wrong here?
Scott
Top achievements
Rank 1
 asked on 20 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?