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

I have this in my aspx page:

<telerik:RadAutoCompleteBox
         ID="MyControl" runat="server" Width="400" DropDownHeight="150"
         DropDownWidth="500"
         SelectMethod="MySelectMethod"
         InputType="Text">
     </telerik:RadAutoCompleteBox>
   
          

In my code-behind, I have this:

01.Public Function MySelectMethod() As AutoCompleteBoxData
02.    Dim data As DataTable = GetChildNodes("a", "139")
03.    Dim result As New List(Of AutoCompleteBoxItemData)()
04. 
05.    For Each row As DataRow In data.Rows
06.        Dim childNode As New AutoCompleteBoxItemData()
07.        childNode.Text = row("field1").ToString()
08.        childNode.Value = row("field2").ToString()
09.        result.Add(childNode)
10.    Next
11. 
12.    Dim res As New AutoCompleteBoxData
13.    res.Items = result.ToArray()
14. 
15.    Return res
16.End Function
17. 
18.Private Function GetChildNodes(ByVal searchString As String, ByVal countryList As String) As DataTable
19.    ' Some code that works
20.End Function
21. 
22.Private Function GetData(selectCommand As SqlCommand) As DataTable
23.    ' Some code that works
24.End Function



MySelectMethod is returning the records that I am expecting, given that the parameters are hardcoded. However this are the problems that I encounter:

1) The list of records is not appearing. 
2) My text-input goes away after getting the list of records
3) MyControl.Text property is empty

Anyhelp on this one? I badly need specifically #3 since it is a parameter that I need to pass dynamically. 









Nencho
Telerik team
 answered on 01 Sep 2014
1 answer
109 views
I have a situation where RadMenu, sometimes, on page load shows completely malformed for a split second, after which it shows and works properly. It does not happen all the times, it is most pronounced on new page load (not from cache), but it may happen even when all resources are pulled from local cache.
The RadMenu item is actually inside a Table element, in an include file, used by multiple pages, yet this problem appears exclusively on one specific page

I have recorded the screen and extracted what the menu looks like at the split second when it is malformed. It is big enough to be annoying even though it does not happen all the times. I have also attached what it looks like when it is properly rendered, for comparison.

How do I go about finding what is causing the problem?
Magdalena
Telerik team
 answered on 01 Sep 2014
2 answers
187 views
Hi Admin!
I have a proplem with RadAjaxManager. I have a usercontrol in Webpage. Webpage use tempalte MasterPager. When i press Button SendComment in UC. Page reload again. Can you show me a method to  solve this problem
Usercontrol ASPX:
  <telerik:RadAjaxManagerProxy ID="uxRadAjaxManager" runat="server" EnableViewState="False">        
        <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="bt_sencomments">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="commentsContainer" LoadingPanelID="uxLoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>           
    </AjaxSettings>    
    </telerik:RadAjaxManagerProxy>  
  <div id="commentsContainer">              
       <telerik:RadListView ID="RadListViewContainer" runat="server">
        <ItemTemplate>            
                    <div class="commentWrapper">
                        <img alt="avatar" src='<%#ProcessingImage((byte[])Eval("ProfilePicture"))  %>'>
                        <span>
                            <strong>From: </strong><%# Eval("FullName")%> - <%#Eval("CreatedDate")%>                            
                        </span>
                        <div class="commentContent">
                            <%# Eval("CommentContent")%>
                        </div>
                    </div>
                </ItemTemplate>           
           </telerik:RadListView>
         
        </div>
        <div>          
            <p style="margin-left: 10px;"><b>Leave a comment</b> </p>
            <div class="commentForm">
                <textarea cols="50" rows="10" runat="server" placeholder="Enter your comment here..."
                    id="commentField"></textarea>
                <br />
                <asp:Button   ID="bt_sencomments" Text="Send Comments"  OnClick="bt_sencomments_Click" OnClientClick="return validate();"
                    runat="server"></asp:Button>
                  
                

            </div>
        </div>
Mywebpage:


<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="ArticleDetail.aspx.cs" Inherits="ICSCMWA.News.ArticleDetail" %>

<%@ Register Src="~/UC/ArticleViewDetails.ascx" TagPrefix="uc1" TagName="ArticleViewDetails" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
     <link rel="stylesheet" type="text/css" href="../Styles/ViewArticleDetail.css">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
      
    <uc1:ArticleViewDetails runat="server" id="UCViewDeteail" NewsId="0"/>
</asp:Content>
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="ArticleDetail.aspx.cs" Inherits="ICSCMWA.News.ArticleDetail" %>

<%@ Register Src="~/UC/ArticleViewDetails.ascx" TagPrefix="uc1" TagName="ArticleViewDetails" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
     <link rel="stylesheet" type="text/css" href="../Styles/ViewArticleDetail.css">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
      
    <uc1:ArticleViewDetails runat="server" id="UCViewDeteail" NewsId="0"/>
</asp:Content>

My masterpage:
<telerik:RadAjaxManager ID="uxRadAjaxManager" runat="server" EnableAJAX="true" DefaultLoadingPanelID="uxLoadingPanel">
<%--<ClientEvents OnRequestStart="requestStart" OnResponseEnd="responseEnd" />--%>
</telerik:RadAjaxManager>         
<telerik:RadAjaxLoadingPanel ID="uxLoadingPanel" EnableAjaxSkinRendering="true" runat="server" RegisterWithScriptManager="true" Skin="Silk">

</telerik:RadAjaxLoadingPanel>


Konstantin Dikov
Telerik team
 answered on 01 Sep 2014
1 answer
74 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
37 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
412 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
116 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
104 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
689 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
134 views
This is probably painfully obvious, but what is the difference?
SANJAY
Top achievements
Rank 1
 answered on 31 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?