Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
1.0K+ views

Hello,

I have a RadGrid (v2009.01.0527.20) with Height=”100%” and Width=”100” that is inside a RadSplitter pane and set to automatically resize with the RadSplitter pane resize.  This is based on the demo code from:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandsplitterresizing/defaultcs.aspx?product=grid.

The columns are NOT autogenerated, they are GridBoundColumn and a few of my own custom columns that inherits GridBoundColumn and are used for custom filtering.

All this is working fine so far.

My problem is that some of the text column contents are too long to fit in the column and do not wrap but instead bleed over into the next adjacent column.  I have tried adding ClientSettings-Resizing-ClipCellContentOnResize="true" but that does not work, the text still bleeds over into the next adjacent column.

How do I get the cell contents to wrap when it is too long to fit in column?

Thanks,

Randall Price

Priyanka
Top achievements
Rank 1
 answered on 30 May 2014
1 answer
69 views
Hi,

I have the exact similar scenario which is descrbed in the below thread. 
http://www.telerik.com/forums/problem-working-with-dynamically-created-radgrid-s

The solution suggested by Telerik Team in this thread is given below

1) To drop the resizing and reordering features from this grid.
2) To disable the ViewState of the whole placeholder where you load the RadGrid control. In this scenario have in mind that the SqlDataReader binding may not works, as each postback in the page will make the grid try to rebind and if the reader is currently closed, you will get an exception.

Unfortunately I cannot use the above suggestion as my customer is so particular on the ReOrder functionality.

As it an old thread(2011) My query here is there any solution available for this issue in latest Telerik Controls?

Thanks,
A2H
Eyup
Telerik team
 answered on 30 May 2014
1 answer
60 views
Hi there,

I have a service that returns an object containing 2 lists.

First list is 'Columns' which contains the following "A1, B2, B3, C1, C2"
Second list is 'ItemCount' which contains the following "Name: abc, A1: 12, B2: 4, C1: 10", "Name: xyz, A1: 12, B2: 4, B3, 2", "Name: def, C1: 10"
and I want grid to display like following:

NAME           A1        B2           B3           C1            C2
abc               12         4             0             10             0
xyz               12         2              2             0              0
def                0           0             0             10            0

How can this be achieved?? please note, columns will change depending on data that is returned
Eyup
Telerik team
 answered on 30 May 2014
7 answers
248 views
In my aspx page is having RadGrid and RadWindow inside the update panel in Radwindow i have RadTreeview and Radeditor the radtreeview is not wroking properly when it is in the update panel before its wroking properly after inserting updatepanel only i am getting error how to solve is it RadTreeView will wrok in UpdatePanel are not
Boyan Dimitrov
Telerik team
 answered on 30 May 2014
4 answers
485 views
Hi Princy,

As the below code provided by you to vinayak for traversing the detail table data items(GridDataItem).
 
1. I want access the (GridFooterItem) in the detail table in item data bound event. 
 
  protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs  e)  
  {  
  if (e.Item is GridDataItem  && e.Item.OwnerTableView.Name == "Detail")   
   {  
      GridDataItem item1 = (GridDataItem)e.Item;  
      DropDownList combo = (DropDownList)item1.FindControl("DropDownList1");  
      combo.Attributes.Add("onChange", "return Change('" + item1.ItemIndex +  "');"); 
      }   
   }  

 

The reference link from  the code fetched is as follows :
http://www.telerik.com/community/forums/aspnet-ajax/grid/set-value-to-cell-in-detailtables-in-radgrid-using-javascript.aspx

Regards!

Majith.B 

 

Princy
Top achievements
Rank 2
 answered on 30 May 2014
3 answers
366 views
Hi,

I have a rad context menu on HTML table cell, and I want to position the sub menu relative to the page rather than parent element. Because, if the user scrolls down to last row and right click for context menu, the sub menu is not showing full list, instead its height is set as very small (due to table cell position - browser bottom) with Up and Down arrows (image2 attached).

This is working fine, if the user clicks top cell of table (Image1)

Is it possible to alter the sub menu position, such that, it will be set with an offset to y position (something like in image3 attached)?

Many Thanks,
Saikrishna
Shinu
Top achievements
Rank 2
 answered on 30 May 2014
1 answer
227 views
Hi,

I am using hierarchical RadGrid. I am using 2 stored procedure, one for the parent rows and the other for the detailed rows. Using NeedDataSource event, I am binding the Hierarchy 0 (Parent) using 1st stored procedure. When the user expands the grid, the respective DetailTableDataBind event is called and I am passing the DataKeyValue to get the list of rows for the DetailsTable (Hierarchy 1) from the DB using 2nd stored procedure. I'm using HierarchyLoadMode="ServerBind" 

My customers want the grid to prepopulate both the parent and the details at one shot. I dont think I can repeatedly call DetailTableDataBind event for the DataKeyValue from the MasterTableView due to performance.

I don't know which event / approach will help to pull both parents and details at one shot using 2 stored procedures. I cannot change the stored procedures at this point in time as they have been working for other pages as well. 

Please share your thoughts on this.

Regards,
Sriram
Princy
Top achievements
Rank 2
 answered on 30 May 2014
1 answer
95 views
In our framework, which is build with the Telerik AJAX components we god a issue from a costumer the other day. The RadComboBox did't  work any more.
After a lot of research I discovered the the client was running IE 10 in compatibility mode and indeed I can now replicate the error here at my machine. There are even more controls that are not working as expected in IE 10, in IE 9 and IE 8. For now I have discovered that the RadPanelBar don't open or collapse.
I have also seen that after a click on a button the RadComboBox was working again.

Have any one a suggestion where I have to look for this problem?

Anders Pedersen 
Viktor Tachev
Telerik team
 answered on 30 May 2014
3 answers
151 views
Hello,

I have used RadDataPager as the navigation bar of my web pages. in RadDataPager1_PageIndexChanged event in MasterPage I have used Response.Redirect to the url of new page to navigate the webpages. everything is working well except the selected page that is going back to 1 in the RadDatapager. I need to highlight the page number that the user is in  after Response.Redirect to that page. It sounds that Response.Redirect is refreshing the MasterPage and causes the content pages work individualy. Would you please help me to fix it?

My code is:

​ protected void RadDataPager1_PageIndexChanged(object sender, RadDataPagerPageIndexChangeEventArgs e)
{


DataTable dt = (DataTable) Session["PageDetails"];
int[] PageNumber = (dt.AsEnumerable().Select(s => s.Field<int>("PageNumber"))).ToArray();
string[] pageUrlStrings = (dt.AsEnumerable().Select(f => f.Field<string>("CurrentPage"))).ToArray();
                
                 Label1.Text = Convert.ToString(e.NewStartRowIndex + 1);

for (int i = 0; i < PageNumber.Length; i++)
{

if (PageNumber[i] == Convert.ToInt32(Label1.Text))
{

                        
                            Response.Redirect(pageUrlStrings[i]);



}

}

}
Princy
Top achievements
Rank 2
 answered on 30 May 2014
1 answer
589 views
I have a radgrid, with a Add record template. The delete rows from radgrid and add new record throw custom error messages. Is there a way I can display these messages?
Shinu
Top achievements
Rank 2
 answered on 30 May 2014
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?