Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
122 views
Hi,

I want a Grid to behave somewhat like Excel where if the cell has numeric data, it should appear on the right of the cell and if contains a non-numeric data, it should appear on the left of the cell. Please let me know how to achieve this with the RadGrid Control.

Thanks.
Joel
Top achievements
Rank 1
 answered on 29 Aug 2014
4 answers
895 views
Hi Everyone, 

I need some help.  I'm building a radgrid with ascx control like this demo Edit Form Type . However, I made some changes where I'm using Entity Framework to store information back to the database.  I'm using the below code to capture the textbox and dropdownlist value and then passing them into my entity code.  

This is where I need some help.  Instead of capturing the textbox value directly, I want to create a property and apply some validation rule in the properties. Then I want to access these properties to get the values from the aspx.cs file. Instead of  string CostCenterName = (userControl.FindControl("txtCostCenterName") as RadTextBox).Text, I need to access the properties.

Code Behind on the .ascx.cs file
public string CostCenterName
        {
             
            get
            {
                return txtCostCenterName.Text;
            }
             
        }

Code Behind on .aspx.cs file
UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
          int CostCenterNo = Int32.Parse((userControl.FindControl("txtCostCenterNo") as RadNumericTextBox).Text);
          string CostCenterName = (userControl.FindControl("txtCostCenterName") as RadTextBox).Text;
          int CostCenterType= Int32.Parse((userControl.FindControl("ddlCostCenterType") as RadDropDownList).SelectedValue);
          string UpdateBy = UserName;
          DateTime UpdateDateTime = DateTime.Now;
 
          var insertNew = new CostCenter
          {
              CostCenterNumber = CostCenterNo,
              CostCenterName = CostCenterName,
              CostCenterTypeID = CostCenterType,
              UpdateBy = UpdateBy,
              UpdateDateTime = UpdateDateTime
          };
          try
          {
              DbContext.AddToCostCenters(insertNew);
              DbContext.SaveChanges();
              SetMessage("Cost Center No " + CostCenterNo + " was added!");
          }
Anthony
Top achievements
Rank 1
 answered on 29 Aug 2014
1 answer
93 views
I have a WCF service that I build the list of nodes for a tree.  The service is in the same directory as the website which is using windows authentication.  Everything works fine locally, but when I put the code on a dev server running IIS 7, the tree loads as expected in Chrome, but with IE, I get "...method failed".  Watching the traffic with fiddler:

Locally with IE:
401 requests followed by 200 OK codes.

Request to Dev server with IE
When I expand the tree, there is the 401 request, which prompts for credentials again.  This DOES NOT happen in chrome.  I just see the call to the WCF method and it results in an http 200 OK.

Ive followed the examples in both the documentation and other sources:
http://www.telerik.com/help/aspnet-ajax/treeview-load-on-demand-wcf.html
http://www.slickit.ca/2009/02/wcf-using-iis-and-windows.html

but I am still getting the issue with IE v9 





BitShift
Top achievements
Rank 1
Veteran
 answered on 29 Aug 2014
1 answer
72 views
Hi, i want to edit the pager message at the bottom of grid to something like : showing 1-10 of 50 items in 50 pages. How to edit it? 
Princy
Top achievements
Rank 2
 answered on 29 Aug 2014
10 answers
677 views
Hello,

I have a field in my RadGrid where I want to be able to select multiple items. For example, field "Colors" will allow users to choose Red, Blue, Green, Yellow and/or Orange. Multiple selections allowed. How can this be implemented within RadGrid? I am aware of GridCheckBoxColumn but that only provides a single checkbox.

I'm open to using other selection controls, like combobox. 

Thank you.
Windhoek2010
Top achievements
Rank 1
 answered on 29 Aug 2014
1 answer
131 views
Hello,

I'm using a custom file browser provider which works fine. 

I have a tree with many folders and I override the folder icon in css :

.RadFileExplorer .rfeThumbnailView .rfeFile .rfeFileIcon.folder {
 ...
}

Now, I want to change the icon for a single folder (i.e. the recycle bin folder).

How can I do this ?
Shinu
Top achievements
Rank 2
 answered on 29 Aug 2014
3 answers
136 views

Hi Team,

I am using treelist. I am binding data to treelist and calling below method

<ClientSettings>
                            <ClientEvents OnItemDeselected="ReviewerAssignmentList_OnItemDeselected"  OnItemSelected="ReviewerAssignmentList_OnItemSelected"
                                 OnItemCreated="ReviewerAssignmentList_OnItemCreated" />
                            <Selecting AllowItemSelection="true" UseSelectColumnOnly="true" />
                            <Scrolling AllowScroll="true" ScrollHeight="431px" UseStaticHeaders="true" />
                        </ClientSettings>

Data is binded to treelist.

And in method ReviewerAssignmentList_OnItemCreated

function ReviewerAssignmentList_OnItemCreated(sender, args) {               
                alert('1');               
            }

It is not called method ReviewerAssignmentList_OnItemCreated, but If I click anywhere on page this method is called and displays alert.

Could any body help me on this, so that alert is displayed when rows are created.

Regards
Sandy
Princy
Top achievements
Rank 2
 answered on 29 Aug 2014
1 answer
58 views
Hi.
I am starting a new project and can not choose which product should I use (Kendo UI or ASP.NET AJAX). I started with KendoUI and PHP, but ASP.NET has some really good stuff to write server code, so I said I will give a try to ASP.NET AJAX. Then I started to think if I really need ASP.NET AJAX to use ASP.NET for server code (of course not, but what advantage do I get).
I like KendoUI because it has nice design (ASP.NET AJAX looks like desktop application not web page). But ASP.NET AJAX has many more controls.

My application will definitely be SPA. I don't plan to change content, but use Window control for showing different contents. I plan to get data (ListView, ComboBox, Grid) from server from database (PostgreSQL for PHP or MsSQL for ASP.NET).

My main question is if page main goal is SPA and showing content in windows should I go with KendoUI or ASP.NET AJAX? What advantages they had? Do I really need all that ASP.NET AJAX offer if I don't plan to use any server round trips (no server side events ...)?

Marin Bratanov
Telerik team
 answered on 29 Aug 2014
2 answers
138 views
I'm creating dynamic multi header radgrid and inside the rows used colspan as well. everything works fine until i do horizontal scroll. during the horizontal scroll the cells are collapsed and some cells are missing. everything went wrong if we do horizontal scroll. any solution to fix this issue?
yogaraj
Top achievements
Rank 1
 answered on 29 Aug 2014
3 answers
112 views
I am attempting to upgrade from IE8 and RadControls Q4 2008 to IE11 and RadControls Q1 2014.  The grid uses the Web20 skin.  Attached are screen shots of the previous look (Grid2008.jpg) and the upgraded look (Grid2014.jpg).  In the header of the grid, a long, dark horizontal line has appeared at the bottom of the header and a blue block has appeared at the far right of the header just above the scrollbar.  I need assistance removing the horizontal line and the blue block in the header.  Is there a CSS solution for this?

Thanks,
Rob
Pavlina
Telerik team
 answered on 29 Aug 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?