Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
78 views

Article: http://www.telerik.com/help/aspnet-ajax/grid-appearance-customize-gridtemplatecolumn.html

I use this method in my radgrid and grouped my data base on a filed ( column) . now I need to show sum of each field in group panel but it just show me sum of one column . I need to show sum of both filed separately.what is solution ? 

thanks in advance
smaj
Radoslav
Telerik team
 answered on 17 May 2012
7 answers
262 views
Hello,

I have a problem with the textwrap in gridtemplatecolumn,
There will be report Name field which can be around 200 characters wide. We are placing that o the gridtemplatecolumn as shown below.

 <telerik:RadGrid ID="ExpenseReportsGrid" runat="server" AutoGenerateColumns="false" GridLines="None" 
                PageSize="25" Width="800px" AllowSorting="true" AllowCustomPaging="true" AllowPaging="true" 
                OnItemDataBound="ExpenseReportsGrid_ItemDataBound"
                OnNeedDataSource="ExpenseReportsGrid_NeedDatasource">
<MasterTableView ClientDataKeyNames="Id" CommandItemDisplay="None" AllowMultiColumnSorting="false"
                DataKeyNames="Id">
<Columns>
<telerik:GridTemplateColumn UniqueName="ReportNameTempcol" HeaderText="<%$ Resources:global,lbl_ReportTitle %>"
                            SortExpression="ReportName" DataField="ReportName">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="ReportName" Text='<%# Eval("ReportName") %>'
                                    ForeColor="Blue"   OnClick="NavigateToSummaryView"></asp:LinkButton>                               
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
 </Columns>
</MasterTableView>
 </telerik:RadGrid>
When there is record under this column which has wide text, it is not wrapping. I tried putting ItemStyle-Wrap="true" for the template column. But it didn't work for us.

Any help to resolve this issue.

Thanks In advance,
Dipen
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 May 2012
3 answers
115 views
Hi,

I have an ajaxified hierarchical RadGrid implemented statically with load on demand. I control the details table display settings from javascript.
The issue is : when I change the details table display from client and later perform any ajax operation the detail table display settings updated using javascript are lost. Is there any way where I can prevent this ?

Thanks,
Karthik 
Eyup
Telerik team
 answered on 17 May 2012
3 answers
1.0K+ views
Hi
I am have a combo with a treeview in it, i need to find the selected node and i am able to do this in aspx page, but the same function fails in .ascx page.
The below is the function which i am calling in client side.

function

 

radPricingLevelTree_ClientNodeClicked(sender, eventArgs)

 

{

 

var node = eventArgs.get_node();

 

 

var comboBox = $find("<%= radPricingLevelCombo.ClientID %>");

 

 

comboBox.set_text(node.get_text());

comboBox.trackChanges();

comboBox.get_items().getItem(0).set_value(node.get_text());

comboBox.commitChanges();

comboBox.hideDropDown();

}
Pls help

Rachana
Top achievements
Rank 1
 answered on 17 May 2012
6 answers
305 views

Hello,

I am trying to implement the Telerik sample Scrolling to the Selected Item. I modifed my ASP.NET page based on this sample. Within the sample, function GridCreated() has the following (second command-line within the function):

    var row = this.MasterTableView.SelectedRows[0];

When my ASP.NET page calls function GridCreated(), it fails on the second command-line, and throws the following error:

    Microsoft JScript runtime error:
    Unable to get value of property 'SelectedRows':
    Object is null or undefined.

The RadGrid on my page has AllowPaging="false" and AllowScroll="true". The grid contains 100 rows, but only 20 rows are visible at any given time. You have to scroll up or down to see the other 80 rows. This is exactly how I want the grid to behave. And every row in the grid is assigned a unique number (numbers from 1 to 100). There is a textbox above the grid and when a row number between 1 and 100 is entered into the textbox, the Textbox_TextChanged() programmatically locates the row within the grid, and automatically highlights (selects) that row (that all works fine).

If you are viewing rows 1 - 20 at the time you enter 85 into the textbox, row 85 is programmatically selected, but you have to manually scroll down to see highlighted row 85. This is why I am trying to use the above sample (http://www.telerik.com/help/aspnet/grid/grdscrolltotheselecteditem.html). I do not want to filter the grid. I want the grid to automatically scroll to the row that was programmatically selected. How do I resolve the above error? Do I need to provide more info?

Thank you,
Steven

Vasil
Telerik team
 answered on 17 May 2012
5 answers
272 views
Hello,

Javascript such as this:

 var editor = $find("RadEditor1"); 
 editor.pasteHtml('test    test');


Is stripping all the extra consecutive spaces between the two words test. Anyway to preserve the extra spaces?
vikas
Top achievements
Rank 1
 answered on 17 May 2012
1 answer
185 views
EmptyMessageStyle-Font-Italic="true" is not work.
Princy
Top achievements
Rank 2
 answered on 17 May 2012
1 answer
118 views
How to open RadWindow from server side based on selected item in combobox in SelectedIndexChanged event of combobox?
Princy
Top achievements
Rank 2
 answered on 17 May 2012
3 answers
188 views
Is there a way to use a radlistbox like a checklistbox with vertical checkboxes and not horrizonal. I am looking for checkbox controls for rad but dont see anything.
Princy
Top achievements
Rank 2
 answered on 17 May 2012
1 answer
302 views
Hello,

I am making column invisible like this in code behind.

But the header is still displaying.

gridDataItem("EPrice").Visible = False

How to make header column and column invisible.

TIA
Shinu
Top achievements
Rank 2
 answered on 17 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?