Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
130 views

If EnableDragAndDrop="true" the Textbox in ItemTemplate is not editable. Interestingly, I can right-click in the TextBox and it becomes editable but normal left-click does nothing. Setting EnableDragAndDrop="false" makes everything work normally.

Seems like a bug to me, but is there some type of work-around or additional property that needs to be set? Thanks!

The following code works fine, but setting EnableDragAndDrop="true" stops the TextBox from being edited (unless you right-click it as mentioned prior).

<telerik:RadListBox ID="RadListBox2" runat="server"
    AllowReorder="true"
    Width="300px"
    Height="400px"
    EnableDragAndDrop="false"
    AutoPostBackOnReorder="true"
    AutoPostBackOnTransfer="true"
    >
    <Items>
        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem1" />
        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem2" />
    </Items>
    <ItemTemplate>
        <div >
            <div>
                <%# DataBinder.Eval(Container, "Text")%>
            </div>
            <div>
                <div style="float:left;">
                    <asp:CheckBox ID="chkShowTitle" runat="server" Text="Checkbox" />
                </div>
                <div style="float:right;">
                    Title <asp:TextBox ID="txtTitle" runat="server" />
                </div>
            </div>
        </div>
    </ItemTemplate>
</telerik:RadListBox>

Bozhidar
Telerik team
 answered on 21 Feb 2012
2 answers
71 views
In case anybody hasn't mentioned it thus far...

I prefer the previous toolbox arrangement where all the components were in one toolbox. Now I have to hunt through all the toolboxes trying to find the component that I'm looking for. Please change it back to the way it was.

No real gripes about the release other than that.

Thanks,
Joe
Joe
Top achievements
Rank 2
 answered on 21 Feb 2012
6 answers
534 views
During an attempt to delete individual items from the RadFileExplorer, the below Message from webpage results:

The selected file could not be deleted because the application did not have enough permissions. Please, contact the administrator.

However, I am able to delete a folder from the RadFileExplorer. 

Below is the code - .aspx and C# ; The RadFileExplorer is populated in the C#, after a read to an SQL Server table; 

Any insight is appreciated;

<telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server" Width="100%" Height="600px" ExplorerMode="FileTree" onclientitemselected="OnClientItemSelected" 
                    OnClientLoad="OnFileExplorerLoad" VisibleControls="TreeView, Grid, Toolbar, ContextMenus" TreePaneWidth="100%" BorderColor="Transparent" BorderStyle="None" 
                    EnableCopy="True" EnableOpenFile="False" MaxUploadFileSize="2147483647" ViewStateMode="Enabled">
             </telerik:RadFileExplorer>
using (SqlConnection connection = new SqlConnection(newConnect))
                       {
                           // Create the Command and Parameter objects;
                           SqlCommand command = new SqlCommand(queryString, connection);
                           // Open the connection in a try/catch block; 
                           // Create and execute the DataReader; 
                           try
                           {
                               connection.Open();
                               SqlDataReader reader = command.ExecuteReader();
                                 
                               while (reader.Read())
                               {                                   
                                   UsernameDB = (reader[1]).ToString();
                                   listViewPaths.Add(reader.GetString(3));
                                   listUploadDeletePaths.Add(reader.GetString(4));
                                   WebPageTitle = (reader[5]).ToString();
                               }
                               reader.Close();
                           }
                           catch (Exception ex)
                           {
                           }
                       }
                   }
               }
               Page.Title = WebPageTitle;
               RadFileExplorer1.Configuration.ViewPaths = listViewPaths.ToArray();
               RadFileExplorer1.Configuration.UploadPaths = listUploadDeletePaths.ToArray();
               RadFileExplorer1.Configuration.DeletePaths = listUploadDeletePaths.ToArray();
Dobromir
Telerik team
 answered on 21 Feb 2012
4 answers
117 views
Hello Everyone,

In my grid I have a a career row that I would like to either insert into the footer, or dynamically move to the bottom of the grid after a sort. The career totals that I have to calculate are complex in nature and I am not sure I can do the calculations in the footer. Any advice would be much appreciated.

Thanks in Advance,
Brad
Brad
Top achievements
Rank 2
 answered on 21 Feb 2012
1 answer
134 views
I am using radgrid with client side binding and virtual scrolling enabled. I am facing an issue when user scrolls and he is in the middle of the page, the grid displays empty elements. I would like to render next page records when user scrolls and display it instead of displaying empty rows. The behavior is same in the demo "http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpagingclientbinding/defaultcs.aspx". Please find attach image for more information.
Maria Ilieva
Telerik team
 answered on 21 Feb 2012
1 answer
104 views
I am trying to use the following code from your demo to try and use the windows control:

function openRadWin() {
        radopen("http://www.telerik.com", "RadWindow1");
    }

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="400px"
            Height="400px" Title="Telerik RadWindow" Behaviors="Default">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

<button style="width: 150px; margin-bottom: 3px;" onclick="openRadWin(); return false;">open RadWindow</button>

I get an error, screen capture attached. 

Marin Bratanov
Telerik team
 answered on 21 Feb 2012
1 answer
88 views

Team

 

I am using radalert in my application.

I have a requirement to close radalert box on ESC key press.

I have done some search & found the following link

http://www.telerik.com/community/forums/aspnet-ajax/window/using-radalert-as-server-side-quot-messagebox-quot.aspx

Is it available in DLL V2011.3.1115.40?

Can you please let me know whether it is possible or not & if yes then please let me know How I can implement this?

Marin Bratanov
Telerik team
 answered on 21 Feb 2012
6 answers
145 views
Hi Team,

          May i know can we install different version in same PC. Currently i'm installed Ver. 2010.3 1317 Jan 17, 2011  on my developing pc. It's not integrate  project template in VS2010 professional (not sure express). Ver 2011.3 1115 Nov 16, 2011 is support for that (not sure express). Now i need to develope new project with VS2010. All of my projects are used Ver. 2010.3 1317 Jan 17, 2011 and VS2005. So my question are

1. Can i install new version 2011.3 1115 Nov 16, 2011 on my developing pc?
2. If i can install, what is my old project control it will be change to new version (i don't want to upgrade).
3. Any documentation for that?

Noted: Question for RadControls for ASP.NET AJAX

Regards,
Alex
ALEX
Top achievements
Rank 1
 answered on 21 Feb 2012
2 answers
144 views
I am building a radfilter control from code and added field editors like this:

RadFilterTextFieldEditor textFieldEditor13 = new RadFilterTextFieldEditor();
RadFilter1.FieldEditors.Add(textFieldEditor13);
textFieldEditor13.DisplayName = "Display";
textFieldEditor13.FieldName = "Table.Fieldname";

I need to validate the RadFilterTextFieldEditor above (and any other fields I choose) by having the user enter only integer values.  How does one accomplish this?
Laura
Top achievements
Rank 1
 answered on 21 Feb 2012
9 answers
222 views
Hi Team,

    I'm facing with grid edit mode(InPlace or Popup or EditForm) is always auto fire when i press enter key in search text box. My grid is using OnNeedDataSource property. Problem is become from "RadAjaxManager". If i set setting at ajamanager
<telerik:AjaxSetting AjaxControlID="_btnSearch" EventName="OnClick" >
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
RadGrid Edit Form is auto fired. If i remove it, it's ok.

Code Aspx.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server" autocomplete="false">
        <div>
            <telerik:RadScriptManager ID="RadScriptManager" runat="server">
            </telerik:RadScriptManager>
            <!-- content start -->
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="_btnSearch" EventName="OnClick" >
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
            </telerik:RadAjaxLoadingPanel>
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="300px" OnLoad="RadAjaxPanel1_Load"
             >
                <table>
                    <tr>
                        <td style="width: 150px;">
                            Search By</td>
                        <td style="width: 5px;">
                            :</td>
                        <td style="width: 150px;">
                            <asp:DropDownList ID="_cboSearchBy" runat="server" Width="150px">
                            </asp:DropDownList>
                        </td>
                        <td style="width: 25px">
                            <asp:TextBox ID="_txtPrefix" runat="server" Width="25px" AutoPostBack="false" AutoCompleteType="none"></asp:TextBox></td>
                        <td style="width: 200px;">
                            <asp:TextBox ID="_txtFind" runat="server" Width="200px" AutoPostBack="false" AutoCompleteType="none"></asp:TextBox></td>
                        <td style="width: 25px">
                            <asp:TextBox ID="_txtSuffix" runat="server" Width="25px" AutoPostBack="false" AutoCompleteType="none"></asp:TextBox></td>
                        <td style="width: 50px">
                            <asp:Button ID="_btnSearch" runat="server" Text="Search" Width="50px" OnClick="_btnSearch_Click" />
                        </td>
                    </tr>
                </table>
            </telerik:RadAjaxPanel>
            <telerik:RadGrid ID="RadGrid1" Width="97%" AllowPaging="True" PageSize="15" runat="server"
                AllowSorting="true" OnNeedDataSource="RadGrid1_NeedDataSource" GridLines="None" OnItemCommand="RadGrid1_ItemCommand">
                <MasterTableView Width="100%" EditMode="" AllowAutomaticUpdates="false">
                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                            EditText="Edit" HeaderStyle-Width="30" ItemStyle-Width="30" HeaderStyle-HorizontalAlign="center"
                            ItemStyle-HorizontalAlign="center">
                        </telerik:GridEditCommandColumn>
                    </Columns>
                </MasterTableView>
                <PagerStyle Mode="NextPrevAndNumeric" />
                <FilterMenu EnableTheming="True">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                </FilterMenu>
            </telerik:RadGrid>
            <!-- content end -->
        </div>
    </form>
</body>
</html>

Code Behind

public DataTable GetDataTable(string query)
 {
     String ConnString = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString;
     SqlConnection conn = new SqlConnection(ConnString);
     SqlDataAdapter adapter = new SqlDataAdapter();
     adapter.SelectCommand = new SqlCommand(query, conn);
 
     DataTable myDataTable = new DataTable();
 
     conn.Open();
     try
     {
         adapter.Fill(myDataTable);
     }
     finally
     {
         conn.Close();
     }
 
     return myDataTable;
 }
 
 protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     RadGrid1.DataSource = GetDataTable("SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers");
 }
  
 protected void _btnSearch_Click(object sender, EventArgs e)
 {
     if (_txtFind.Text.Trim()!="")
         RadGrid1.DataSource = GetDataTable("SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers where CustomerID='" + _txtFind.Text.Trim() + "'");
     else
         RadGrid1.DataSource = GetDataTable("SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers");
     RadGrid1.Rebind();
 }
  
 protected void RadAjaxPanel1_Load(object sender, EventArgs e)
 {
 }
  
 protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     //e.Canceled = true;
 }


Anything wrong at my code. . Kindly please reply to me. Sorry! my title is wrong! Problem is "GridEditCommandColumn auto fire".

sample lnk :Sample Code

Regards,
ALEX
Top achievements
Rank 1
 answered on 21 Feb 2012
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?