Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
1.3K+ views
Hi,
How can I change in js the css or the text color of my cell based on it's content?
The grid is populated by ClientDataSource so I can't change the color on server-side (I think)

This is my column
<telerik:GridBoundColumn UniqueName="GPS" DataField="GpsTxt" HeaderText="GPS" AllowFiltering="false"
                           ItemStyle-HorizontalAlign="Center">
                           <ItemStyle Font-Bold="true" />
                       </telerik:GridBoundColumn>

The DataField "GpsTxt"  value can be "OK" or "ERR"
I would like to show "OK" in green and "ERR" in red

Is it possible?
Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Jul 2014
1 answer
115 views
Hi,

I've got a seminar registration form, which requires about 10 fields for each participant. However, I don't know how many participants will register. Is there a Telerik control that can provide an "Add new participant" function/button, which when clicked will create a new set of 10 fields for the next participant to complete?
Princy
Top achievements
Rank 2
 answered on 22 Jul 2014
1 answer
540 views
Hi,

There is an ASP button in the Content page of my web application and its ajaxified using the RadAjaxManagerProxy. In the server side click event of the button, I am trying to download a csv file.

When the button is ajaxified, the csv file is not getting downloaded and I noticed that the void Application_Error(object sender, EventArgs e) in Global.asax is firing on putting a break point.  If I remove the ajax from the button, then the code works fine as expected.

Here is a complete sample of my scenario.

Thanks,
Vishnu.
Konstantin Dikov
Telerik team
 answered on 22 Jul 2014
1 answer
165 views
Hi,

I have a problem using Telerik RadGrid.
When I apply a filter on a data column, I use the filter expression as a Linq expression.
So at the server side I parse it with Dynamic Linq in GridNeedDataSource handler.
The problem is that when I specify "Contains" as a filter, I receive the following as "Linq expression":

ColumnName1 = 1227 && (iif(ColumnName2 == null,\"\", ColumnName2).Contains(\"abc\"))

This expression does not get resolved by the OData request.

This issue start coming when I updated the dll to version 2014.2.618.35.
Earlier I was using version 2012.1.215.35 which was working fine for filtering. Filter expression generated by this old dll was as below:

ColumnName1 = 1227 && (ColumnName2.Contains(\"abc\"))


Thanks
Marin
Telerik team
 answered on 22 Jul 2014
1 answer
65 views
Hello,

Is it possible to set the group column count while using the WCF Service Binding? I tried various ways, but its not too obvious how to set the columns in this configuration. GroupColumnCount in the ascx control seems to be ignored.

Any advice is appreciated.

Thanks,
Andy
Plamen
Telerik team
 answered on 22 Jul 2014
1 answer
69 views
Hi All,

Following this demo, http://www.telerik.com/help/aspnet-ajax/pivotgrid-custom-data-calculations.html, I'm go one step further to create the calculated items programmatically in c# (instead of aspx). 

Here's the part of code under onLoad event that I've tried:

            PivotGridCalculatedItem newCalulation = new PivotGridCalculatedItem();
            newCalulation.GroupName = "Testing: XXYY";

            foreach (PivotGridField GridField in RadPivotGrid1.Fields)
            {
                if (GridField.FieldType.ToString() == "PivotGridColumnField" && GridField.UniqueName == "CreationYear")
                {
                    (GridFieldas PivotGridColumnField).CalculatedItems.Add(newCal);
                }
            }

But it's not working an giving me an 'Object reference not set to an instance of an object.' error. Please advise.

Best regards.


Konstantin Dikov
Telerik team
 answered on 22 Jul 2014
3 answers
178 views
Hi

I tried this but didn’t succeed

http://www.telerik.com/help/aspnet-ajax/grid-model-binding-and-strongly-typed-data-controls-support.html


Could you make a complete sample of this.


Thanks in
advance.

Kostadin
Telerik team
 answered on 22 Jul 2014
1 answer
270 views
On any horizontal chart I create that has values below zero, the x-axis labels are overlapping the negative value section of the chart.

As you can see from the first attachment (sample1.jpg), the x-axis labels are always justified to the left of y's zero line (not to the left  of the entire chart).

I tried abbreviating my labels but all that happens is the shorter label names still justify up to the y zero line (sample2.jpg).

This only happens on charts that contain negative y-series values. 

On charts with all positive values there is no graph below zero thus the labels appear correctly. (sample3.jpg).

I have tried a number of things to fix this (setting margin, setting the y-axis series min value to a fixed number, ,etc) but I cannot seem to get the labels to be justified to the left of the entire chart (not to the left of the y zero value).





Danail Vasilev
Telerik team
 answered on 22 Jul 2014
12 answers
960 views
2010.2.809.35   VS2008 / IE8

In the grid if I use this for GridBoundColumn it displays fine, but if my value is blank, I would like the cell to display balnk value instead of a single $ sign.    Help?

DataFormatString="${0:$###,###.##}"
Asutosh
Top achievements
Rank 1
 answered on 22 Jul 2014
1 answer
144 views
I have a RadGrid with a MasterTableView and the Insert/Cancel of such are either LinkButtons or PushButtons which are ugly. I want to make them look like the default RadButtons that I am using across the rest of the site. Right now my only solution is to use screenshots. Is there a better built-in way to do so?
Princy
Top achievements
Rank 2
 answered on 22 Jul 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?