Telerik Forums
UI for ASP.NET AJAX Forum
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
3 answers
212 views
I noticed the demo for the Asyncupload component that involves the drag and drop zone (http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx).

With the fileexplorer, is there a way the async upload dialog can be customized to add a drag and drop zone?
Vessy
Telerik team
 answered on 30 May 2014
1 answer
90 views
Hello,

Ajax stops working after deleting the last item from Listbox

I have listbox, panel and 2 buttons- the first button deletes items from the listbox using java script (1) and the second button is  used to send ajax requests in order to hide and show the panel (2).

While deleting the items from the listbox, the ajax buttons works and hides/shows the panel but after deleting the last item from the listbox, the ajax stops working.

There is no error in the client side and neither on server side- I add break points at the server side in the Page_Load, I notice the function wasn't even called.


(1)-listBox.deleteItem(selectedItem);
(2)- panel.visible=false/true

Thanks,





Shinu
Top achievements
Rank 2
 answered on 30 May 2014
3 answers
169 views
Greetings,

I was wondering if it is possible to set 2 background colors for sorted columns, one color for alternate rows and other for non-alternate rows, because for the moment I only found the property SortedBackColor in SortingSettings. 

I would like to achieve this to keep the alternate look and feel among rows even on sorted columns.

Thanks in advance for your help

Regards!
Oscar Rmz

Shinu
Top achievements
Rank 2
 answered on 30 May 2014
1 answer
279 views
Hi
I have a very simple requirement that I am pretty sure i have seen demo'ed in the past on the telerik site, but it seems to be gone. I have a grid, and Item templates, as well as EditItemTemplates for each column. One column's edit template is a radcombobox that has to have its datasource set in the code-behind. So, I have a, GridEditCommandColumn.

When I hit "Edit", the grid does not seem to recognize that it is in "Edit"mode. It comes back with the row as it was, uneditable, and the "Edit"button still showing (instead of the expected "Update, Cancel" buttons). Strangely enough, though, there is an edit form below the row that pops down, and it ha s some basic controls for editing, but they are not the edititemtemplate controls, as there are just textboxes, and no radcombobox. In this edit form, there is an update and cancel button. (As you can see in the screenshot, the weird edit form is there, with update and cancel buttons, but the inline row is still in regular mode, and the "edit" button is showing, which implies that the grid is not in edit mode!) I have set EditMode to "INPlace".

I just need simple inline editing - when I click "Edit", the grid should know that the row is in edit mode, and use the edititem template controls inline, as well as show "UPdate and Cancel " buttons. There should be no wierd edit form showing up below my row.

This seems like a super-simple thing to want to do, yet I cannot find a demo of this simple functionality. No demos show how to do in line editing with a radcombobox that has its data source set in ItemDataBound as I am doing.

Any help is appreciated. 

Thanks

Daniel
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?