Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
63 views
I'm using RadControls for ASP.NET AJAX Q3 2012

Is there a way to set ShowRowHeaders = false for the RadDatePicker/Calendar at a global level?
Princy
Top achievements
Rank 2
 answered on 01 Apr 2013
1 answer
118 views

How to set treelist scrolling .
<ClientSettings>
                           <scrolling allowscroll="true" usestaticheaders="true" savescrollposition="true"></scrolling>
                       </ClientSettings>

i add like that but error comes

Type 'Telerik.Web.UI.TreeListClientSettings' does not have a public property named 'scrolling'.

How to add the reference .
i'm using v.2011.1.519.40

Thanks Advance,
Mohamed.
Shinu
Top achievements
Rank 2
 answered on 01 Apr 2013
3 answers
287 views

Hi everyone,
Any and all assistance here is greatly appreciated!

I'm trying to implement a Listbox Transfer scenario - allowing typical moving items from one list box to another.
The transferring of items back and forth is working fine.
The part that isn't working is getting changes to update a SQL database.
But once something is moved, the underlying dataTable doesn't have any changes.

What am I missing in order to acknowledge changes in the Selected dataTable?
Thank you in advance.

Here's the listboxes defined:

<telerik:RadListBox ID="RadListBox1" CssClass="RadListBoxAvailable" runat="server" SelectionMode="Multiple" AllowTransfer="True" TransferToID="RadListBox2" AllowTransferOnDoubleClick="True" EnableDragAndDrop="True" OnTransferred="RadListBox1_Transferred" AutoPostBackOnTransfer="True" Sort="Ascending"></telerik:RadListBox>
                         
<telerik:RadListBox ID="RadListBox2" CssClass="RadListBoxSelected" runat="server" SelectionMode="Multiple" AllowTransferOnDoubleClick="True"  EnableDragAndDrop="True" AutoPostBackOnTransfer="True" Sort="Ascending"></telerik:RadListBox>

And here's the c#:

using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using Telerik.Web.UI;
 
public partial class testX : System.Web.UI.Page
{
    public static DataTable dtSelected;
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadAvailable();
            LoadSelected();
        }
    }
 
    private void LoadAvailable()
    {
        string query = "select personId, person from peopleList";
        RadListBox1.DataSource = GetDataTable(query);
        RadListBox1.DataSortField = "person";
        RadListBox1.DataTextField = "person";
        RadListBox1.DataValueField = "personId";
        RadListBox1.DataBind();
    }
 
    private void LoadSelected()
    {
        string query = "select personId, person from peopleChosen";
        dtSelected = GetDataTable(query);
        RadListBox2.DataSource = dtSelected;
        RadListBox2.DataTextField = "person";
        RadListBox2.DataSortField = "person";
        RadListBox2.DataValueField = "personId";
        RadListBox2.DataBind();
    }
 
    private DataTable GetDataTable(string query)
    {
        String ConnString = ConfigurationManager.ConnectionStrings["wareConnectionString"].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 RadListBox1_Transferred(object sender, Telerik.Web.UI.RadListBoxTransferredEventArgs e)
    {
        if (DataTableHasChanges(dtSelected))
        {
            LabelEditStatus.Text = "Changes not Saved";
        }
        else
        {
            LabelEditStatus.Text = "";
        }
    }
 
    public bool DataTableHasChanges(DataTable dataTable)
    {
        return (dataTable != null) ? dataTable.GetChanges() != null : false;
    }
}
Nencho
Telerik team
 answered on 01 Apr 2013
1 answer
81 views

The following is mentioned in one of the web pages in the telerik site. We are using telerik in our application and the project started nearly 3 years ago. So, is there a way I can ensure I am using the latest RadSplitter which had this performance improvement?


RadSplitter

A brand new mechanism for updating RadSplitter's child controls was introduced that is many times faster than the old one which traversed every single HTML element to test whether it is a RadControl.

Princy
Top achievements
Rank 2
 answered on 01 Apr 2013
1 answer
65 views
Is it possible to have a custom callout on a RadHtmlChart?  (See attached - "Mailer Sent" and "Website Launched")  The chart has three line series within it, using a date along the x-axis.  I tried adding a scatter series to put an individual point on the chart, but when I specified a date for the XValue, it gave me an error (problem converting to integer)

Is this possible?  Is it a matter of mixing two different types of charts?  (lineseries and scatter)  How can I best accomplish this?

Thanks!
Danail Vasilev
Telerik team
 answered on 01 Apr 2013
1 answer
146 views
I love using the AutomaticDeletes, AutomaticEdit, and insert capability. 

I have a list of tasks, and I want to add the ability to "complete" the task, without deleting it.  I also want the leave the ability to edit the existing record, and delete the record.  So, I need the "complete" column to update a single field for the selected record, then remove the line from the grid as the grid only shows uncompleted items.

Is there a way to do this?
Thanks for your help,
Dan
Andrey
Telerik team
 answered on 01 Apr 2013
3 answers
147 views
I have a dynamic grid that is able to change column widths and adjusts the grid's size to accommodate the grid size changes. However, when the user goes to drag a column, the column they are trying to select is not re-sized and instead another column (it changes from datasource to datasource) usually 1 or 2 columns to the right is re-sized instead. The only 2 columns that work as intended are the edit/delete columns which are hard coded into the grid. There is also a hidden column hard coded after the edit/delete columns as well that is required in certain places. Also, a few of the datasources use grouping. We are currently using version 2012.1.411 and do not have the option to update at this time. Below are the current radgrid settings we are using and I attached a screenshot to show the issue.
(in the screenshot I tried re-sizing "Total Acres" and instead it re-sized "Non Federal Acres" 2 columns over)

troubleshooting: I tried removing the hidden column and it did not affect the issue

current grid settings:
AutoGenerateColumns="true"
<GroupingSettings ShowUnGroupButton="true" CaseSensitive="false" />
<ClientSettings AllowDragToGroup="true" AllowColumnsReorder="true">
            <Selecting AllowRowSelect="true" />           
            <
Resizing AllowColumnResize="true" EnableRealTimeResize="true" ResizeGridOnColumnResize="true" />          
            <
Scrolling SaveScrollPosition="false" AllowScroll="false" />
            <ClientEvents OnPopUpShowing="PopUpShowing" />
</ClientSettings>
Marin
Telerik team
 answered on 01 Apr 2013
0 answers
53 views
Hi,

Please delete this thread as this behavior was because of another reason in my code and was present in both releases. I apologize.

Regards,
Navaneeth
Navaneeth Kumar
Top achievements
Rank 1
 asked on 01 Apr 2013
3 answers
86 views
We have a radgrid that polls the server to get updated data. The client rebind causes the winow to focus - often obscuring any other windows (i.e. popups). Is there a way to prevent this focus from occurring on an AJAX rebind?
Maria Ilieva
Telerik team
 answered on 01 Apr 2013
10 answers
1.9K+ views
Hi,

Let me be clearer:

I have limited space in the application so I needed a way to perform some lookups using list boxes without hiding other controls on the page. So I decided to use a RadComboBox with dropdown. Inside the combobox I place a RadListBox that transfers selected item to a different listbox.

my problem is that each time i select an item in the list box, the combobox closes, then I have to open it again to transfer the selected item to other list box. Of course it closes again and I have to repeat the process.

Is there anyway I can check server side if the combo box is open and/or is there a way I can prevent the combobox from closing each time I select an item in the list box? 

Thanks in advance....
<telerik:RadComboBox ID="RadComboBoxStringInLookupValue" Runat="server" 
     Width="325px" EnableTextSelection="False" DropDownWidth="325px"  
    HighlightTemplatedItems="True" Visible="true" 
    CloseDropDownOnBlur="False" >
    <ItemTemplate>
        <ul>
         <li class="col1">
           <telerik:RadListBox ID="RadListBoxSource" runat="server" Height="125px" 
                DataSourceID="ObjectDataSourceLookUpValues" 
                DataTextField="Descr" DataValueField="Code"  
                AllowTransfer="true" TransferToID="RadListBoxDestination" 
                AllowTransferOnDoubleClick="True" SelectionMode="Multiple" Enabled="True" 
                OnClientSelectedIndexChanging="SetDropDownToOpen"
                OnClientSelectedIndexChanged="SetCanvasChanged"
                ondatabound="OnDataBound" onitemdatabound="OnItemsDataBound" >
               <ButtonSettings ReorderButtons="Common"></ButtonSettings>
           </telerik:RadListBox
         </li>    
         <li class="col2">
            <telerik:RadListBox ID="RadListBoxDestination" runat="server" Height="125px"  SelectionMode="Multiple"
               <ButtonSettings ReorderButtons="Common"></ButtonSettings>
            </telerik:RadListBox
         </li>                                 
        </ul>
      </ItemTemplate
      <Items>
          <telerik:RadComboBoxItem Text="" />
      </Items>           
</telerik:RadComboBox>
Kate
Telerik team
 answered on 01 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?