Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
522 views
Hi,

We are using other 3rd party grids for our asp.net web application. We are in the process of testing Telerik RadGrid. Currently, what we are doing is we have grid.css (custom CSS class) at global location which has all the details of styling. This way, we do not need to set styles at element level. For this, what we did is we checked how vendor grid is rendered and then defined styles like this:

caption

 

h2 {

 

 

text-align: left;

 

 

margin: 15px 0 2px 0;

 

 

padding: 15px 0 2px 0;

 

 

line-height: 1.1em;

 

}

caption

 

p {

 

 

text-align: left;

 

 

margin: 1px 0 2px 0;

 

 

padding: 1px 0 2px 0;

 

 

line-height: 1em;

 

}

 

td

 

table th /* styling for grid header row */

 

{

 

padding: .1em .1em .1em .4em;

 

 

vertical-align: top;

 

 

text-align: center;

 

 

border: 1px solid white;

 

 

background-color: #e2dbc8; /*#f0ece3;*/

 

}

td

 

table td /* styling for grid data rows */

 

{

 

padding: .1em .1em .1em .4em;

 

 

vertical-align: top;

 

 

font-size: .85em;

 

 

text-align: left;

 

 

border: 1px solid white;

 

 

background-color: #f0ece3;

 

}

tr.altrow

 

td, .altrow{ background-color: #e2dbc8; }

 

.gridframe

 

{ border: none;}

 


and set the grid style property to this css file like this :

StyleSetPath

 

="~/grid.css"

So, with radgrid, I would like to achieve the same thing instead of dealing at grid level or element within grid. We have many pages using grid. So, I prefer not to do it at grid level. Please let me know how to do this.
I appreciate your response.

Prathiba

 

Rumen
Telerik team
 answered on 02 Oct 2019
4 answers
573 views
Hi All,
I have a Grid with a BoundColumn that I would like to have the input as a multiline textbox, taking up the width of the grid (that is to the right of the edit form headings).
See the attached picture to see what I mean.
It seems that the Edit Form is not the width of the Grid, but much smaller (it's bounds are where the Textbox ends currently).
I am trying to set the 100% width in the ItemDataBound event of the RadGrid by :
TextBox tb = null;
GridDataItem gdi = e.Item as GridDataItem;
tb = (TextBox)gdi["Notes"].Controls[0];
Is there another way to get this field to become wider?  Setting it to a pixel value works, but is not ideal.
Thanks,
Steele.

Attila Antal
Telerik team
 answered on 01 Oct 2019
1 answer
784 views

I have a radgrid I fill in a procedure.

I do some custom adding of datatable, then some custom columns.

 

All of this works great, until a postback, then the Grid Goes blank.

 

I have read in several places I need to "Refill" the grid in the NeedDataSource.

So do I duplicate everything in the Procedure I use to fill it and format columns etc.

Some of the formating I do on the grid involves adding new colunms  and switching columns.

 

Some of the items involve a databind before I can do the formating.  And in NeedDatasource I cannot do a databind.

 

So I am a little lost in how to handle this situation.

 

Thanks in advance.

 

Roger

Attila Antal
Telerik team
 answered on 01 Oct 2019
1 answer
86 views
Hello Sir,
I want to customize and add new features to the front of my Radwindow how to do?

thank you very much
Rumen
Telerik team
 answered on 01 Oct 2019
1 answer
107 views

We have a RadGrid that include a column with RadRating control. 

Our problem is that Grid takes too much time to load in the browser (aprox 8 seconds). 

The ItemTemplate contains only a TextBlock and a RadRating Control.

When i remove the RadRating , the grid load normally (1 second).

The RadGrill run at server and use OnNeedDataSource. And the versión of dlls is 2014

Any suggestions?

 

Thank you,
kind regards

Rumen
Telerik team
 answered on 01 Oct 2019
10 answers
1.7K+ views
I create columns of my grid dynamically on the server side. These are not created on the client side.

I need to check the name of the first column to this radgrid.
How is this possible ?

I actually tried

var gridID = $find("<%=RadgridDataAval.ClientID %>");
var x = gridID.get_masterTableView().getColumnByUniqueName("Error");
if (x)
  alert ("exists");
else
  alert("doesnt exist");

Error is the name of one of the columns of the grid. However, says it doesn't exist

Also, I don't know if we have examples that show how to fetch colulmn name of a particular column in the mastertableview on the client side.

SOS

thanks,
Jas



Eyup
Telerik team
 answered on 01 Oct 2019
1 answer
77 views

Hi, I've added to my grid a GridEditCommandColumn so that when I click the pencil icon a form opens up for me to edit the Item.

 

Using the example below I've tried to create a WebUserControl, but upon clicking pencil, nothing happens.  

https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultcs.aspx

 

Are there any step by step instructions on how to utilize this functionality? I'm trying to reverse engineer the demo but not succeeding.

Thank you

 

 

Attila Antal
Telerik team
 answered on 01 Oct 2019
1 answer
316 views

Hi, I'm trying to swap out the default pencil image when using GridEditCommandColumn. Can you please instruct on how to accomplish that.  Thank you

Attila Antal
Telerik team
 answered on 01 Oct 2019
1 answer
91 views

I need some help. I have a table of type MasterTableView, along with DetailTables, however I do not know how to connect these components to a table or database query.

I attached two images, one represents the system as it is presented today, and the other image shows how it should look.

Eyup
Telerik team
 answered on 30 Sep 2019
3 answers
156 views

In my RadGrid, the AllowFilteringByColumn is set to "true".

In the filter row of a GridDateTimeColumn, there's the DatePicker. How can I enable keyboard navigation for the popup calendar?

Rumen
Telerik team
 answered on 30 Sep 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?