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

I have a site that is structured as followed:

asp:Content
radA:RadAjaxPanel
asp:DropDownList
asp:DropDownList
asp:DropDownList ... When the selected index changes on DDL 1 the values in DDL 2 should also change but I get a syntax error in auto generated javascript that prevents asp events from happening.
The error is that there is a ' in stead of ' around ctl00_MainContentPlaceHolder_RadAjaxPanel2

Here is the auto generated javascript:
onchange="javascript:setTimeout('AjaxNS.AR(\'ctl00$MainContentPlaceHolder$m_ddlFyrirtaek\',\'\', 'ctl00_MainContentPlaceHolder_RadAjaxPanel2', event)', 0)"

Is this something RadAjaxPanel is causing?

Thanks



Eyup
Telerik team
 answered on 01 Apr 2013
1 answer
103 views
Hi,

We are using the rad grid to display the data and we have export to PDF functionality which export the rad grid data to the PDF file. Everything works fine except one which is star image export to PDF.

When the rad grid is exported to PDF which has star images but in pdf file this star image looks like a small dot. please let us know the resolution of this problem.

PFA -  Rad Grid Image
Kostadin
Telerik team
 answered on 01 Apr 2013
1 answer
125 views
Any chance of adding Stacked functionality to the Area Chart in a future release?
Danail Vasilev
Telerik team
 answered on 01 Apr 2013
3 answers
149 views
Hi,

We have ASP.NET application that consists of master and content page. We load dynamically (using LoadControl method) our user control that has Telerik's grid. There can be 1 master and more detail grids. Detail grids are in separate rad tabs.

How can we get the reference to right grid from master page in case we selected particular tab where grid is placed?

The Ajax is enabled.

Thank you in advance.

Goran
Goran
Top achievements
Rank 1
 answered on 01 Apr 2013
1 answer
200 views
My grid has a mastertable and 1 detail table. 
The master table has heirachyLoadMode="ServerBind"
The detailtable columns has ItemTemplates containing a RadNumericTextBox controls (1 per column).
The master table values are essentially an aggregation of the detail rows.  I have RadNumericTextBox ClientEvents-OnValueChanged javascript that aggregates the detail values and updates the the value in the master row.

That all works.  My problem is when a new row is expanded, a postback occurs and I loose the grid values I calculated and set via javascript.  How do I persist those values?  The values in the RadNumericTextBox controls are persisted so EnableViewState can be eliminated.

This is how I update the master rows:
masterView.getCellByColumnUniqueName(masterView.get_dataItems()[masterRowIndex], "MyColName").innerHTML = parseInt(detailTotal / detailRowCount);
How do I persist that change during postback?  Am I not setting the value correctly?  Do I have add postback code to copy HTML values to a saved datasource then rebind?

I cannot use heirachyLoadMode="Client" because loading takes way too long.
I am using ItemTemplates instead of EditTemplates because I don't want the user to have to click edit on each detail row they want to edit; that would slow them down a lot.
Eyup
Telerik team
 answered on 01 Apr 2013
1 answer
76 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
130 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
305 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
87 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
70 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?