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

I am using exportbuttons in the commanditemsetting to handle exports in my grid. I need to show a tooltip on thehover of export images but I am unable to do so as shown in this example http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/export-word-csv/defaultcs.aspx

Below is my grid declaration:

<telerik:RadGrid ID="rgBalances" runat="server" DataSourceID="_dataSrcBalances" EnableViewState="false"                         OnPreRender="rgBalances_PreRender" OnItemCommand="rgBalances_ItemCommand"                        OnItemDataBound="rgBalances_ItemDataBound" OnItemCreated="rgBalances_ItemCreated">
       <MasterTableView TableLayout="Fixed" HierarchyDefaultExpanded="true" CommandItemDisplay="Top"
        DataSourceID="_dataSrcBalances" Name="AccountBalance" EnableNoRecordsTemplate="true"
        DataKeyNames="AccountID">
              <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false"     ShowExportToExcelButton="true"   ShowExportToPdfButton="true" ShowExportToWordButton="true" ShowExportToCsvButton="true" />
                            <Columns>                              
                            </Columns>                         
                        </MasterTableView>
                        <ExportSettings ExportOnlyData="true" IgnorePaging="true" FileName="Activity" OpenInNewWindow="true">
                            <Pdf PaperSize="A4" PageLeftMargin="5px" PageRightMargin="5px" PageWidth="297mm"
                                PageHeight="210mm" />
                        </ExportSettings>
                    </telerik:RadGrid>
Rumen
Telerik team
 answered on 02 Oct 2019
12 answers
561 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
637 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
822 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
100 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
121 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.8K+ 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
87 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
340 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
118 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?