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

I am working on a project with a RadGrid and a RadListBox.
The RadListBox contains the columns’ names. The user can reorder the list.

My project requirement is that after the user changes the order of the list,
the corresponding columns will reorder accordingly.

Is it possible? If yes, how do I do it?

 
Thanks,
Daniel.
Eyup
Telerik team
 answered on 01 Sep 2014
1 answer
52 views
Hi all. 

First Pick shows my query that inner joins. 
Than i Bind the variable to the radhtmlchart. 

It keeps showing the label description id_status instead of ds_status. 

Any comments on how to solve this ?

Looking forward to your reply. 

Danail Vasilev
Telerik team
 answered on 01 Sep 2014
10 answers
492 views
Hi,

There seems to be a bug with the displayed date vs selected date when you use the back-button to return to a page where you have done a date selection.

I've only seen this with Chrome v26 and Firefox v20, not Firefox v19 or IE 10.

How to recreate:
Go to: http://demos.telerik.com/aspnet-ajax/calendar/examples/design/sunny/defaultcs.aspx
All date boxes there have todays date pre-selected and displayed in the dateinput field.
Select another date for one of the date pickers.
Go to another web page in the left hand menu (i.e. "DatePicker - First Look").
Then click the back-button in the browser.
Notice now that the date you changed to in the step above is displayed as you left it. But when opening the calendar you notice that today's date is actually the selected one.

On a page where you have a post back the user may go back and they see their date is selected, but when they submit the form the default (today's) date is the one actually used.

In IE 10 and Firefox 19 the date you changed to is the one displayed and selected when you try the same thing.

Not sure if this is a bug in the RadDatePicker control, or a bug in Chrome and Firefox, but would be nice if you can have a look at it.

Eyup
Telerik team
 answered on 01 Sep 2014
6 answers
144 views
We have a MediaPlayer on a page that loads a mp4 file on Page_Load.

myMediaPlayerSource.Path = <PATH>
Me.RadMediaPlayer1.Sources.Add(myMediaPlayerSource)

This works as the file is seen in the player interface and is playable. That same file can be replaced by the user on the same page with a RadAsyncUpload.

Me.RadMediaPlayer1.Sources.RemoveAt(0)
 
myUploadedFile.SaveAs(Server.MapPath(<PATH>), True)
 
' load it into the mediaplayersource
myMediaPlayerSource.Path = <PATH>
Me.RadMediaPlayer1.Sources.Add(myMediaPlayerSource)


Unfortunately the MediaPlayer still seems to be holding on to the file as it throws the "...used by another process" error when the UploadedFile tries to overwrite the same file. Now we tried to remove the Source that is holding the file before we overwrite but it still doesnt work. The 'Clear()' function doesnt free up the file either.

We didnt load the file into the Source of the MediaPlayer on Page_Load and we were able to successfully overwrite the file. So rights are fine, it seems the MediaPlayer is locking onto the file even after we remove it from the Source.

Our clients can only save 1 file out, which they can overwrite with a new one. This works fine as long as the MediaPlayer doesnt have it added to its Source. We need it to be loaded on Page_Load and replaced at will via the RadAsyncUpload and 'swapped' out with the current Source(0).

Can you tell us how to 'free' up the file from the MediaPlayer so it can be overwritten and not locked?

Thanks!


Eyup
Telerik team
 answered on 01 Sep 2014
2 answers
120 views
I'm trying to upgrade Telerik and AjaxControlToolKit Controls. With this  Change I'm forced to use AjaxControlToolKitManager.I have defined ControlBundle in AjaxControlTool.Config referenced under Controlbundle of ToolKitScriptManager to minimize scripts generated . With this Change Drag and Drop of Telerik
RadGrid is not working . Can you please help me on this?. Please let me
know if you want more details?
Viktor Tachev
Telerik team
 answered on 01 Sep 2014
14 answers
813 views
Hi All
  I have a very strange issue, which occurs only in IE (all versions) and that too some times.
  I am using a Datepicker control, where we enter the date in the input field manually and then do a server post back, the issue  occurs randomly where the input date is not considered and it considers the previously entered date.
   
   We did a little client side debugging and found that this occurs when we enter the date manually and use a mouse to do a server postback, If we use the keyboard tab to do a server post back it this does not occurs.
   And even with mouse if we click any where in the page and then do a post back, this issue does not occurs.
  I guess this has to do with some internal telerik client side event, which is responsible for updating the datepicker, which does not fires at times.
 
   Surprisingly the error does not happens in Chrome, Firefox, Safari, Opera or any advanced browser.

/SANDIP
Angel Petrov
Telerik team
 answered on 01 Sep 2014
1 answer
177 views
This is probably painfully obvious, but what is the difference?
SANJAY
Top achievements
Rank 1
 answered on 31 Aug 2014
5 answers
155 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
1.2K+ 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
139 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?