Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
Hello,

we want RadGrid fix height with out scrolling and we want always show paging bar in bottom .when we set  PagerStyle-AlwaysVisible="true" then its show the paging bar in bottom but height is not fixed we want  paging bar show at bottom regardless how much records will in grid like 7 or 1 .

please see in attach image if grid has 1 record then its show telerik1.png but we want like telerik.png.

thanks
Wajahat

Pavlina
Telerik team
 answered on 17 May 2012
1 answer
78 views
Hello forum!

I have a <div> who has my RadGrid inside it. This <div> gets resized to fill the remaining space on the page using JQuery.
It is absolute necessary that my grid has paging on it. Now how can i make sure that:

1: My pager is ALWAYS at the bottom of my <div>, no matter what resolution
2: The pager items get dynamically determined based on the screen height remaining

I have been looking around for some days now, only to come up with half working solutions.
So remember, my <div> has NO fixed height but gets resized using JQuery.

Also, making the RadGrid height '100%' makes my data disappear?

I really hope someone help me out on this nasty situation..

Greetings!
Andrey
Telerik team
 answered on 17 May 2012
1 answer
148 views

Hi,

 

I am saving the transferred items from the RadListBoxDestination Box into one database field like so:-

Dim _RadListBoxDestinationText As String = Nothing
        For Each item As RadListBoxItem In RadListBoxDestination.Items
            _RadListBoxDestinationText = _RadListBoxDestinationText + item.Value.ToString + vbCrLf
        Next

'Save_RadListBoxDestinationText to the Database

The data saves OK
, but then when the user returns I need to repopulate the Destination box and I am trying to do it like so

Dim _DBString As String = _dr("EOT3CCa")
            Dim _DBSplitString As String() = _DBString.Split(New Char() {vbCrLf})
 
            Dim _Text As String
 
            For Each _Text In _DBSplitString
 
                Dim item As RadListBoxItem = RadListBoxSource.FindItemByText(_Text)
                RadListBoxSource.Transfer(item, RadListBoxSource, RadListBoxDestination)
              
            Next

I get an 'object reference not set..'
I can output the split string into an ordinary textbox just fine but not the RadListBox - it can't find the items.

Is there a better way to do this?

All help most appreciated.

Cheers,
Jon

Dimitar Terziev
Telerik team
 answered on 17 May 2012
2 answers
65 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
227 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
95 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
941 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
270 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
236 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
156 views
EmptyMessageStyle-Font-Italic="true" is not work.
Princy
Top achievements
Rank 2
 answered on 17 May 2012
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?