Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
Hi,
I want to know which object telerik can drag and drop. I have to create a map of a room and choose the location of the tables. The choice of the positions of the tables to make the customer then I have to give the possibility to insert an object images representing the tables and be able to move these images and then save the selected position. I think I have the coordinates of the objects (tables).
Any suggestions?

Bye
Maria Ilieva
Telerik team
 answered on 07 Dec 2012
7 answers
315 views
Hello,

I'm trying to create a custom skin for our RadGrids.
I would like to have the entire Vista skin except for the selected row, that needs to be orange like in the Office2007 skin.

What i do is create a new custom skin based on the Vista template, select the DataItem, then choose the Selected tab and change the background color to the orange color i looked up in the Office2007 skin. At this point i only get a small orange line at the bottom of the row. I removed the sprite.gif and downloaded the sprite.gif from the Office2007 skin. Uploaded it into the Vista skin and the entire row orange instead of only the bottom part.

My question is that we use a hierarchial grid and with the skin i made the expand/collapse button disappears when i select a row. The whole width of the row is orange but i would like the column where you see the expand/collapse button to keeps it's original color.
I've played around in the VSB but i can't seem to find the right property i need to set for this.

Anyone any advice on how to do this?
Galin
Telerik team
 answered on 07 Dec 2012
1 answer
100 views
How can i set focus on a button which is inside contenttemplate of radwindow? 
Shinu
Top achievements
Rank 2
 answered on 07 Dec 2012
4 answers
156 views
hello,

i have a web page on which 3 user controls A,B,C are registered. 
RadTab controlis used and User controls A and B is added on RadPageView 1 and 2 respectively.
User Control C also exists on the same web page but not on the RadTab.
By default, RadPageView 1 i.e. User Control A is selected.


On User Control B there exists a repeater to which some rows are binded.
On User Control C, there is a link button. When it is clicked, RadPageView 2 i.e. User Control B should be selected 
and the repeater rows shud be filtered accordingly. Now, the problem is that when the link button is clicked 
the repeater is having the correct number of rows but the RadPageView 2 is showing the correct number of rows 
till i click the link button twice.

Please help.

Code Snippet:
WebPage.aspx
=============
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<%@ Register TagPrefix="UserControlA" TagName="UserControlA" %>
<%@ Register TagPrefix="UserControlB" TagName="UserControlB" %>
<%@ Register TagPrefix="UserControlC" TagName="UserControlC" %>
 
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
<div class="content">
 
  <div class="menu-1">
      <telerik:RadTabStrip runat="server" ID="tabStrip" Skin="" MultiPageID="RadMultiPage1">
           <Tabs > <telerik:RadTab Selected="true" SelectedCssClass="active-1" Text="Tab 1" TabIndex="0"></telerik:RadTab>
                  <telerik:RadTab SelectedCssClass="active-1" Text="Tab 2" TabIndex="1" ></telerik:RadTab>
          </Tabs>
      </telerik:RadTabStrip>
 </div>
 <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage">
<telerik:RadPageView ID="rpvUserControlA" runat="server"><UserControlA:UserControlA runat="server" id="UserControlA" /></telerik:RadPageView>
<telerik:RadPageView ID="rpvUserControlB" runat="server"><UserControlB:UserControlB runat="server" id="UserControlB" /></telerik:RadPageView>
</telerik:RadMultiPage>
 
</div>
 
<div class="right-sidebar">
<UserControlC:UserControlC runat="server" id="UserControlC" />
</div>
</asp:Content>
UserControlB.ascx
=================
<asp:Repeater ID="Repeater1" runat="server">
      </asp:Repeater>
 
UserControlB.ascx.cs
====================
 
  public void LoadPage(UserControlB uc)
        {
            Page_Load(uc, null);
        }
 
 protected void Page_Load(object sender, EventArgs e)
 {
   if (Session["ID"] != null)
   {
            int id = (int)Session["ID"];
            DataTable dt = Fetch records from database based on id
            Repeater1.DataSource = dt;
            Repeater1.DataBind();
   }
 }
 
UserControlC.ascx
==================
 
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click" >Show Details</asp:LinkButton>
 
UserControlC.ascx.cs
====================
 
   protected void LinkButton1_Click(object sender, EventArgs e)
        {
           Session["ID"] = "23829839";
 
            UserControlB uc = (UserControlB)this.Page.LoadControl("~/UserControlB.ascx");
            uc.LoadPage(uc);
 
            RadTabStrip radTabs = (RadTabStrip)cpHolder.FindControl("tabStrip");
            RadMultiPage radMultiPage = (RadMultiPage)cpHolder.FindControl("RadMultiPage1");
            radTabs.Tabs[0].Selected = false;
 
            radTabs.SelectedIndex = 1;
            radTabs.Tabs[1].PageView.Selected = true;
            radTabs.MultiPage.SelectedIndex = 1;
            radTabs.Tabs[1].Enabled = true;
            radMultiPage.SelectedIndex = radTabs.SelectedIndex;
       }

Kalina
Telerik team
 answered on 07 Dec 2012
1 answer
64 views
I have a number of rad grids in my project that go to edit screens on selected index changed, which in turn occurs when a row is clicked with "AllowRowSelect" to true.  No problem so far.
Now I have a requirement to allow the user to re-order the rows using the radgrids drag and drop capability.  I followed the example and this works fine, too.
The problem occurs when I try to combine the two functions in one grid.  The act of clicking to begin the drag process changes the selected index and the redirect to the edit occurs.  I would like to be able to click anywhere on the row other than the drag handles and have it go to edit, but if I click the drag handle, allow the drop and re-ordering.
Can I use the same grid to achieve both purposes?



Eyup
Telerik team
 answered on 07 Dec 2012
4 answers
976 views
Hi:

I have read
all the threads regarding this issue, but to no avail so I could replicate, including http://www.telerik.com/help/aspnet-ajax/upload-manipulating-files.html demo and I do not understand, I have a database SQL Server 2008, a table with a field called Docs varbinary (MAX), in my application (c# - VS2010) I have a radgrid, use a template field AsyncUpload control, do not know how I have to configure it to save a file to the base data, also not like I have to put in item template to show me the file name and click download, if someone could give me a simple example o explain how to do, greatly appreciate it.

Ps.: I'm using RadControls for ASP.NET AJAX Q2 2012.

Thank you.
Plamen
Telerik team
 answered on 07 Dec 2012
1 answer
53 views
Hi,

I've two page aspx: first page is search.aspx, second page is reasult.aspx

into page search.aspx i write this code:

Response.Redirect(

 

"reasult.aspx?_str1=" & Txtsearch1.Text & "&_str2=" & Txtsearch2.Text)

and then pass the values to the second page result.aspx....Into first page there's a ajaxloadingpanel that appears when I send the data, but the loading is still.

Perhaps because the page has result.aspx in load_page loading data from the database? And so it stops loading.

this code in second page:

 

Imports System
Imports System.Data
Imports System.Web
Imports System.Data.SqlClient
Imports Telerik.Web.UI
Imports System.IO
    
  Private Loadsearch As New GestoreUtente     
  Dim list As List(Of PropertyUtente) = Loadsearch.Search(_str1, _str2)
        RadListView1.DataSource = list
        RadListView1.DataBind()
 
Public Class GestoreUtente
    Public Function Search(ByVal _Str1 As String, ByVal _Str2 As String) As List(Of PropertyUtente)
        Dim lista As New List(Of PropertyUtente)
        Try
            Dim conString = ConfigurationManager.ConnectionStrings("TrycontactString")
            Dim strConnString As String = conString.ConnectionString
            Using db As New SqlConnection(strConnString)
                db.Open()
                Using sqlcmd As New SqlCommand("Sp_searching_like", db)
                    sqlcmd.CommandType = CommandType.StoredProcedure
                    sqlcmd.Parameters.AddWithValue("@Search", SqlDbType.VarChar).Value = _Str1
                    sqlcmd.Parameters.AddWithValue("@Searchluogo", SqlDbType.VarChar).Value = _Str2
                    Using sqldr As SqlDataReader = sqlcmd.ExecuteReader
                        While sqldr.Read
                            lista.Add(New PropertyUtente With {.idutente = sqldr.GetSqlInt32(0).Value, _
                                                                .utente = sqldr.GetSqlString(1).Value, _
                                                                .Desccategoria = sqldr.GetSqlString(2).Value, _
                                                                .Desccomune = sqldr.GetSqlString(3).Value, _
                                                                .Telefono = sqldr.GetSqlString(4).Value, _
                                                                .Cellulare = sqldr.GetSqlString(5).Value, _
                                                                .Imageprofile = sqldr.GetSqlString(6).Value, _
                                                                .Email = sqldr.GetSqlString(7).Value})
                        End While
                    End Using
                End Using
            End Using
        Catch ex As SqlException
            Exit Try
        Catch ex As Exception
            Exit Try
        End Try
        Return lista
    End Function
End Class
Maria Ilieva
Telerik team
 answered on 07 Dec 2012
1 answer
134 views
1)hide the list of files that shown above fakeinput? 
Princy
Top achievements
Rank 2
 answered on 07 Dec 2012
2 answers
55 views
I am using rad calendar thru which the use can select/unselect dates. And we will add some special days like holiday which can not be selected by the user. When I click on the column header 'M' if atleast one monday is a special day, then I am not able to unselect the complete column. Selection is possible even if special dates are availble. but only unselection is not possible. Is there any property to set or any solution to oversome this problem.
Esther Nirmala
Top achievements
Rank 1
 answered on 07 Dec 2012
5 answers
356 views
Hi,

Can someone please tell me why I got the a javascript error when I click the "Refresh using ajaxPanel.ajaxRequest()" button the second time?

Thank you,

Vincent


Javascript Error:
Sys.ArgumentException: Value must not be null for Controls and Behaviors.    Parameter name:  element

Here are my codes:

WebForm1.aspx
        <asp:ScriptManager runat="server" ID="scriptMgr" /> 
          
        <uc1:UserControl1 ID="UserControl1" runat="server" />     
        <br /> 
          
        <asp:Button runat="server" ID="btnRefreshAjaxManager" Text="Refresh AjaxManager" /> 
          
        <telerik:RadAjaxManager runat="server" ID="ajaxMgr">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnRefreshAjaxManager">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="UserControl1"/>  
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager>    

UserControl1.ascx:
<script language="javascript">  
    function Refresh( controlId )  
    {  
        var panel = $find(controlId );  
        panel.ajaxRequest();  
    }  
</script> 
 
 
<telerik:RadAjaxPanel runat="server" ID="ajaxPanel" > 
    <asp:TextBox runat="server" ID="TextBox1" /> 
    <asp:Label runat="server" ID="Label1" /> 
    <br /> 
    <asp:Button runat="server" ID="btnRefreshAjaxPanel" Text="Refresh AjaxPanel" /> 
</telerik:RadAjaxPanel> 
 
<br /> 
<asp:Button runat="server" ID="btnRefreshJS" Text="Refresh using ajaxPanel.ajaxRequest()" /> 

UserControl1.ascx.cs
        protected void Page_Load(object sender, EventArgs e)  
        {  
            TextBox1.Text = DateTime.Now.ToString();  
 
            thisthis.Label1.Text = this.ajaxPanel.ClientID;  
 
            this.btnRefreshJS.OnClientClick = string.Format( "Refresh( '{0}' ); return false;", ajaxPanel.ClientID);  
 
        } 
Maria Ilieva
Telerik team
 answered on 07 Dec 2012
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?