Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 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
281 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
546 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
410 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
260 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
114 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
196 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
634 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
238 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
115 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?