Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
148 views
Hi,

I just registered and on the register page I recognized one bug:
If you use AutoFill Country drop down list will be filled automatically by browser but when you try to continue, error message appears saying that country is not entered. Missing ID?
Simon
Telerik team
 answered on 09 Jun 2009
3 answers
109 views
I am using RADScheduler and have a slot book for 10:00 to 10:10 on the Scheduler i have it setup for 30 mins slots. This booked slot takes up the whole slot e.g. 10:00 to 10:30. How can i get this to show the actual time of the slot booked and not fixing it into a slot?
Peter
Telerik team
 answered on 09 Jun 2009
7 answers
189 views
Im messing around with the new editor and plan on using it as a way to upload/view video clips. The upload is working fine but if i try to change the "Properties" by picking "AutoStart" from the dropdown (want to turn off autostart and instead have the user click play for the clip to begin) i get a javascript error: "htmlfile: Could not get the type property. This command is not supported" @ "radioBox.type = "radio"; under _createRadio : function(id, radioValue, defaultValue)

besides the rad script manager this is all that is on my page:

 <telerik:RadEditor BorderStyle="None"  BorderWidth="0" Height="700px"   
Width="700px" Skin="Telerik" MediaManager-DeletePaths="~/uploads/" 
MediaManager-UploadPaths="~/uploads/" MediaManager-ViewPaths="~/uploads"   
DocumentManager-DeletePaths="~/uploads/" DocumentManager-UploadPaths="~/uploads/" 
DocumentManager-ViewPaths="~/uploads/" ID="RadEditor1" runat="server">  
</telerik:RadEditor> 
Rumen
Telerik team
 answered on 09 Jun 2009
2 answers
131 views
I have been looking into the Telerik blogs and the forum threads concerning the Telerik Ajax controls and the MVC Framework and am a bit unsure as to what is supported and what not. Could you please specifically let me know which controls out of the Telerik Controls List work (or dont work) at the moment and when these will be included (ie. example next expected Release). The blogs show work arounds for the editor, the grid etc., but what about the rest (charting, scheduler, menu, tabstrip...)? The documentation states certain limitations yet this information is almost 6 months old (see Telerik WVC Integration - Limitations). Are you developing these controls further for MVC?

Basically all I want is to avoid purchasing the controls only to find out afterwards that there are unexpected dead ends.

Thanks in advance and keep up the excellent work.
 
Tubs
Top achievements
Rank 1
 answered on 09 Jun 2009
2 answers
166 views
Hello,

I have a treeview which displays a SQL data source. Add the properties I configured the DataFielID and the DataFieldParentID. Thats works great so far. When I select a node I would like to get the whole SQL data row of the select node.  Right now I am just able to get the tex. But I need to pass the informations of the column LocPath to a other window. How can I access that?

Thanks for help.

 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
</head> 
<body onloadonload=onload="AdjustRadWidow();"> 
 <script type="text/javascript">  
        function GetRadWindow()  
        {  
            var oWindow = null;  
            if (window.radWindow) oWindow = window.radWindow;  
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
            return oWindow;  
        }  
        function AdjustRadWidow() {  
            setTimeout(function() { GetRadWindow().autoSize() }, 200);  
        }  
 
        function returnToParent() {  
            //create the argument that will be returned to the parent page  
            var oArg = new Object();           
 
            //get the selected date from RadDatePicker  
            var treeView = $find("<%= RadTreeView1.ClientID %>");  
            var selectedNode = treeView.get_selectedNode();              
            oArg.TreeText = selectedNode._text;  
 
            //get a reference to the current RadWindow  
            var oWnd = GetRadWindow();  
 
            //Close the RadWindow and send the argument to the parent page  
            oWnd.close(oArg);  
        }  
        </script> 
 
 
    <form id="form1" runat="server">  
    <div> 
      
       <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadTreeView ID="RadTreeView1" Runat="server" DataFieldID="LocPK"   
            DataFieldParentID="ParentLocPK" DataSourceID="LocationsQuery"   
            DataTextField="LocID" AppendDataBoundItems="True">  
        </telerik:RadTreeView> 
        <asp:SqlDataSource ID="LocationsQuery" runat="server"   
            ConnectionString="..." 
            SelectCommand="SELECT [LocPK], [LocID], [LocPath], [ParentLocPK]  FROM [MMLocations]">  
        </asp:SqlDataSource> 
        <button title="Submit" id="close" onclick="returnToParent(); return false;">  
                    Submit</button>      
    </div> 
    </form> 
</body> 
</html> 
Christian
Top achievements
Rank 1
 answered on 09 Jun 2009
5 answers
140 views
I have a RadGrid whose datasource is set dynamically. I have set paging to true but once I click the next page my grid disappers, but  appears  again with the page selected once my tabchange event is fired twice. My grid gets populates based on the hierarchical tab thats selected. I have rebound my grid in pageindexchanged, but still my grid disappears....

I have placed the decalration of my grid below....

<telerik:RadGrid ID="RadGrid1" runat="server" OnDataBound="RadGrid1_DataBound" GridLines="None" OnItemCommand="RadGrid1_ItemCommand"
         OnItemDataBound="RadGrid1_ItemDataBound" ShowHeader="false" OnItemCreated="RadGrid1_ItemCreated" AllowPaging="true" PageSize="6"
          OnPageIndexChanged="RadGrid1_PageIndexChanged">
    <MasterTableView TableLayout="Fixed" DataKeyNames="id">               
        <ItemTemplate>            
            <%# (((GridItem)Container).ItemIndex != 0)? "</td></tr></table>" : "" %>
                    <asp:Panel ID="ItemContainer" CssClass='<%# (((GridItem)Container).ItemType == GridItemType.Item)? "item" : "alternatingItem" %>'
                        runat="server">
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr valign="top">
                                <td>
                                    <asp:ImageButton ID="thumbimage" runat="server" ImageUrl='<%# Bind("imagepath") %>' OnClientClick=<%# "javascript:player.sendEvent('LOAD','" + Eval("filepath") +"')" %> />
                                </td>
                                <td>
                                    <asp:LinkButton ID="titlelinktab" runat="server" Text='<%# Bind("title") %>' OnClientClick=<%# "javascript:player.sendEvent('LOAD','" + Eval("filepath") +"')" %> ></asp:LinkButton><br />
                                    <asp:LinkButton ID="downloadbutton" runat="server" Text="Download" CommandName="download" CommandArgument='<%#Eval("id")%>' /><br />
                                    <asp:LinkButton ID="addbutton" runat="server" CommandName="addtoplaylist" CommandArgument='<%#Eval("id")%>'
                                         Text="Add to Playlist" />
                                </td>
                            </tr>
                        </table>                                                
                    </asp:Panel>
        </ItemTemplate>
    </MasterTableView>
    </telerik:RadGrid>

This is how I bind my grid initially,

protected void populategrid(string language, string category, string subcategory)
    {
        SqlConnection conn;
        SqlCommand comm;
        conn = new SqlConnection(ConfigurationManager.ConnectionStrings["myconn"].ConnectionString);
        comm = new SqlCommand("select id,title,subject_name,category,subcategory,language,filepath,imagepath from video " +
                "where ((category=@category and language=@language and subcategory=@subcategory) and publishdate <= getdate())", conn);

        comm.Parameters.Add("@category", SqlDbType.NVarChar, 20);
        comm.Parameters["@category"].Value = category;
        comm.Parameters.Add("@language", SqlDbType.NVarChar, 20);
        comm.Parameters["@language"].Value = language;
        comm.Parameters.Add("@subcategory", SqlDbType.NVarChar, 20);
        comm.Parameters["@subcategory"].Value = subcategory;

        conn.Open();
        //OleDbDataReader reader = comm.ExecuteReader();
        SqlDataReader reader = comm.ExecuteReader();
        if (reader.HasRows)
        {

            RadGrid1.DataSource = reader;
            RadGrid1.DataBind();
        }
        else
        {
            result.Text = "There are no records to be displayed in this category";           
        }      
     }

This is my pageindexchanged event

protected void RadGrid1_PageIndexChanged(object sender, GridPageChangedEventArgs e)
    {
        RadGrid1.CurrentPageIndex = e.NewPageIndex;
       this.RadGrid1.Rebind();
  }

Pavlina
Telerik team
 answered on 09 Jun 2009
5 answers
277 views

Hi,

I have recently upgraded my .net 1.1 project to .net 3.5 and replaced RADControls for ASP with RADControls for ASP.NET AJAX.

I get the following Javascript error "Sys.Webforms.PageRequestManager is null or not an object" on the page.

I have tried the following..

- Verify that the Web.Config is setup correctly.(http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx)

- There is  no xHtmlConformance element in Web.Config.

When I view the source code for the aspx page, I don't see the element Sys.WebForms.PageRequestManager anywhere in the code.

Please suggest if I am missing something on the page which generates the Sys.WebForms.PageRequestManager object.


Thanks in advance....

 

Iana Tsolova
Telerik team
 answered on 09 Jun 2009
3 answers
253 views
Hi,
I have tried to find the answer in the forum without success, of the issue I'm having.
I'm setting a MinDate programmatically in the ItemBound:

 

protected void RadGridiPur_ItemDataBound(object sender, GridItemEventArgs e)

 

{    
    

if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)

 

    {

 

        GridEditableItem edititem = e.Item as GridEditableItem;

 

 

        RadDatePicker dtpkrSend = (RadDatePicker)edititem["SendDate"].Controls[0];

 

 

        DateTime dtTmp = DateTime.Today;

 

        dtpkrSend.MinDate = dtTmp.AddDays(1);
        ...

But I can still choose the days in the Calendar before this date, compared to when I'm setting the date in the designermode:
... MinDate="08-Jun-2009 00:00:00"></telerik:GridDateTimeColumn>

 

 

 

Can I in some way get the same behaviour as when setting the date in designermode, as programmetically? My intention is to force our users to set the date tomorrow and forth.
Thanx for feedback!
Cheers
Johan

Johan Andersson
Top achievements
Rank 1
 answered on 09 Jun 2009
1 answer
80 views
I am trying to get a loadingpanel to work and no matter what I do the image does not appear. 

to test I created a brand new application with just one page with a loading panel and a button.  The image never appears.

Here is my code:

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

<%

@ Register assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head runat="server">

 

 

<title>Untitled Page</title>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

</asp:ScriptManager>

 

 

<div>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"

 

 

height="75px" width="75px" IsSticky="True" MinDisplayTime="10">

 

 

<img alt="Loading..."

 

 

src="loading-spiral.gif"

 

 

style="border:0px;" />

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<asp:Button ID="Button1" runat="server" Text="Button" />

 

 

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

And the code behind:

 

Partial

 

Class _Default

 

 

Inherits System.Web.UI.Page

 

 

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

 

System.Threading.Thread.Sleep(2000)

 

End Sub

 

End

 

Class

 

Pavlina
Telerik team
 answered on 09 Jun 2009
2 answers
149 views

Hi,
    I am working with Q1 2007 version controls.
    In editor, I am facing problem with cut/copy/paste functionality.  In fire fox browser, when I select some text and click on image of “cut”, it displays one ‘javascript alert’ with message that “Please use Ctrl+X to Cut”, which should not displayed and directly it should cut the selected text.  Same problem is occurring with copy and paste.

   

    It is only happening with fire fox browser. For other browser (IE 6/7, safari) it’s working fine.

 

    Please note that, because of some issue we cant upgrade our rad controls’ version. So please suggest any solution which can work in Q1 2007 version.

 

    I can attach current .dll of editor rad control and screen shot in case it required.

 

    Any help on this will be appreciated.           

 

    Regards,

    Mittal          

Rumen
Telerik team
 answered on 09 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?