Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
99 views
Hi,

I was trying to get ExcelML based export working. I was able to achieve some formatting and other Goals using ExcelML but as for ExcelML based export we need to implement Advanced databinding using NeedDataSource event, I had to do some changes to my existing code - which i did.
The problem I am facing now after doing all the changes is:

Page data source is changing as per requirement but page is not showing changed data. It's staying one step back. Here is scenario:

1. Page has a drop down with 3 types, suppose A, B and C.
2. First time page shows data depending upon the selection which is A.
3. I change selection to B. Page posts back, datatable is re-built and Grid's dataSource is Set to it but not ReBinded (as stated by Telerik). Page is still showing data shown previously i.e. data for type A.
4. I change selection to C. Page posts back, datatable is re-built and Grid's dataSource is Set to it but not ReBinded. Now page shows data for type B - which was selected in step 3.
5. If you keep changing the selection. Page shows data for previous type i.e. one step previous. Please note that datasource is built and set properly but page's view is not updated.

I tried rebinding the Grid and it some times works properly but it crashes other times. what to do? Any help?

Thanks.
Maria Ilieva
Telerik team
 answered on 07 Dec 2011
3 answers
88 views
Hey,
Guys i am really stuck here, needs some help. The scenario is something like this,

I have three separate controls, and one of these controls consist of Rad List boxes. Now i created a new control, named as Main.ascx and put in Rad Panel bar inside Rad ajax referred from this link
http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx.
Now the issue is that Rad list boxes has stopped working, i can not select the items in the rad list box, whereas if i am running the control which has rad list boxes separately, its running perfect. but when it is dropped in radpanelbar, it stps working, rest everything is ok
Can you plz help me with this
Dimitar Terziev
Telerik team
 answered on 07 Dec 2011
1 answer
75 views
hi

please let me know that can we insert shapes from word to editor?! or is there any way to create shapes in editor?


Thanks a lot

Neda
Rumen
Telerik team
 answered on 07 Dec 2011
3 answers
139 views
Hi

I have a RadComboBox in RadGrid.

How do I get the Attribute of the RadCombo box. I have tired the following code but I get an error :

    Protected Sub rcbPortList_Grid_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)
 
        Dim rcbPortList_Grid As RadComboBox = New RadComboBox
        rcbPortList_Grid = DirectCast(sender, RadComboBox)
 
        Dim EditedItem As GridDataItem = DirectCast(rcbPortList_Grid.NamingContainer, GridDataItem)
        Dim gvddlEmployee As RadComboBox = DirectCast(EditedItem.FindControl("rcbPortList_Grid "), RadComboBox)
 
        Dim rtxtLongDegree_Grid As RadNumericTextBox = DirectCast(EditedItem.FindControl("rtxtLongDegree_Grid"), RadNumericTextBox)
        Dim rtxtLongMin_Grid As RadNumericTextBox = DirectCast(EditedItem.FindControl("rtxtLongMin_Grid "), RadNumericTextBox)
        Dim rtxtLongSec_Grid As RadNumericTextBox = DirectCast(EditedItem.FindControl("rtxtLongSec_Grid "), RadNumericTextBox)
 ' Object reference not set to an instance of an object. error at line below
        rtxtLongDegree_Grid.Text = rcbPortList_Grid.SelectedItem.Attributes(0)("Longitude")
 
end if
Tsvetina
Telerik team
 answered on 07 Dec 2011
2 answers
144 views
Hi Telerik Team,

I'm using the ComboBox with Multi Columns using the OnItemsRequested event and LoadOnDemand.

However my datatable is about 100K records. How can I handle this in RadComboBox?
It is giving me error: "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property."

The idea is I do not want to change the maxJsonLength property. I want the ComboBox to load only the items requested and not all the data once with the EnableVirtualScrolling property enabled.

Please do let me know how can I achieve such scenario.

P.S.: I do not want to go with RadGrid inside the RadComboBox.

Thanks,
Bilal
Dimitar Terziev
Telerik team
 answered on 07 Dec 2011
2 answers
179 views
Hi
I am using rad menus in my Asp.net page. i Have Taken two radmenus in my asp.net web page which overlaps with each other
what should i Do for not overlap these menus with each other
Need Your Feedback
please find following attachment
Kate
Telerik team
 answered on 07 Dec 2011
1 answer
57 views

I have a RadPanelBar with multiple items. In one of them I have 2 RadTreeView items in the item template. One is for Available and the other for Selected items.  The transfer back and forth of nodes work in IE as expected, but  fails in both Chrome and Firefox.

Thanks and regards,

M

Here's the code:

<radTS:RadPanelItem  runat="server" Text="Filters" Enabled="True">
                                                        <Items>
                                                            <radTS:RadPanelItem runat="server" Value="FiltersTemplatedItem" >
                                                                
<radTS:RadPanelItem  runat="server" Text="Filters" Enabled="True">
                                                        <Items>
                                                            <radTS:RadPanelItem runat="server" Value="FiltersTemplatedItem" >
                                                                <ItemTemplate>
                                                                    <!-- Filters -->
                                                                    <div class="prop_item_wrap">
                                                                          
                                                                        <table ID="Table1"  cellpadding="0" cellspacing="0" 
                                                                            class="tbl_filters">
                                                                            <tr>
                                                                                <td>
                                                                                    Available:</td>
                                                                                <td>
                                                                                     </td>
                                                                                <td>
                                                                                    Selected:</td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="available_fields">
                                                                                    <asp:Panel ID="PanelAvailable" runat="server">
                                                                                     
                                                                                        <radTS:RadTreeView   ID="RadTreeViewAvailable" runat="server" multipleselect="true" BorderColor="#888888" BorderStyle="Solid" BorderWidth="1px"  Height="300px" Width="250px" Skin="Windows7" >
                                                                                        </radTS:RadTreeView>
                                                                                    </asp:Panel>
                                                                                </td>
                                                                                <td class="hierarchy_btns">
                                                                                    <table cellpadding="0" cellspacing="0">
                                                                                        <tr>
                                                                                            <td>
                                                                                                 </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <button ID="FilterMoveRight" runat="server" disabled="disabled">
                                                                                                    >
                                                                                                </button>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <button ID="FilterMoveLeft" runat="server" disabled="disabled">
                                                                                                    <
                                                                                                </button>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <button ID="FilterMoveAllRight" runat="server">
                                                                                                    >>
                                                                                                </button>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <button ID="FilterMoveAllLeft" runat="server">
                                                                                                    <<
                                                                                                </button>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                 </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                <td class="selected_fields">
                                                                                    <asp:Panel ID="PanelSelected" runat="server">
                                                                                        <radTS:RadTreeView ID="RadTreeViewSelected"  runat="server"  MultipleSelect="true" BorderColor="#888888" BorderStyle="Solid" BorderWidth="1px"  Width="250px"
                                                                                             Height="300px" Skin="Windows7">
                                                                                        </radTS:RadTreeView>
                                                                                    </asp:Panel>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                        <asp:HiddenField ID="txtSelectedTreeViewDirty" Value="" runat="server" />
                                                                    </div>
                                                                </ItemTemplate>
                                                            </radTS:RadPanelItem>
                                                        </Items>
                                                    </radTS:RadPanelItem>
<ItemTemplate>
                                                                    <!-- Filters -->
                                                                    <div class="prop_item_wrap">
                                                                          
                                                                        <table ID="Table1"  cellpadding="0" cellspacing="0" 
                                                                            class="tbl_filters">
                                                                            <tr>
                                                                                <td>
                                                                                    Available:</td>
                                                                                <td>
                                                                                     </td>
                                                                                <td>
                                                                                    Selected:</td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="available_fields">
                                                                                    <asp:Panel ID="PanelAvailable" runat="server">
                                                                                     
                                                                                        <radTS:RadTreeView   ID="RadTreeViewAvailable" runat="server" multipleselect="true" Skin="Windows7" >
                                                                                        </radTS:RadTreeView>
                                                                                    </asp:Panel>
                                                                                </td>
                                                                                <td class="hierarchy_btns">
                                                                                    <table cellpadding="0" cellspacing="0">
                                                                                        <tr>
                                                                                            <td>
                                                                                                 </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <button ID="FilterMoveRight" runat="server" disabled="disabled">
                                                                                                    >
                                                                                                </button>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <button ID="FilterMoveLeft" runat="server" disabled="disabled">
                                                                                                    <
                                                                                                </button>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <button ID="FilterMoveAllRight" runat="server">
                                                                                                    >>
                                                                                                </button>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <button ID="FilterMoveAllLeft" runat="server">
                                                                                                    <<
                                                                                                </button>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                 </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                <td class="selected_fields">
                                                                                    <asp:Panel ID="PanelSelected" runat="server">
                                                                                        <radTS:RadTreeView ID="RadTreeViewSelected"  runat="server"  MultipleSelect="true" Skin="Windows7">
                                                                                        </radTS:RadTreeView>
                                                                                    </asp:Panel>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                      </div>
                                                                </ItemTemplate>
                                                            </radTS:RadPanelItem>
                                                        </Items>
                                                    </radTS:RadPanelItem>





Kate
Telerik team
 answered on 07 Dec 2011
1 answer
79 views
Is there an example of related combo boxes using a WCF service. I'm fimilar with the related combobox example that uses server side code.

Thanks.
Dimitar Terziev
Telerik team
 answered on 07 Dec 2011
1 answer
162 views
Using your simple example "Monitoring Custom Progress" does not update anything but elapsed time. 
http://demos.telerik.com/aspnet-ajax/upload/examples/customprogress/defaultcs.aspx

However, the codebehind runs and when completed the progress UI disappear as expected.
Changing the Culture sometimes makes the progress UI show the complete progress.
Stopping the debug and rerun the same code will not show progress.

My current Culture is da-DK, changing the page culture to en-US does not do the trick though.
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Upload2.aspx.cs" Inherits="PackageManagement.Pages.Common.Upload2" UICulture="en" Culture="en-US" %>

Please advise. My code:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Upload2.aspx.cs" Inherits="PackageManagement.Pages.Common.Upload2" UICulture="en" Culture="en-US" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
 
    <asp:button ID="buttonSubmit" runat="server" Text="Submit" OnClick="buttonSubmit_Click" CssClass="RadUploadButton" />           
    <telerik:RadProgressManager id="Radprogressmanager1" runat="server" />           
    <telerik:RadProgressArea id="RadProgressArea1" runat="server"
        Culture="en-US" DisplayCancelButton="True" HeaderText="Uploading files" />
    <br /><br /><br /><br /><br /><br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
Codebehind:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using Telerik.Web.UI.Upload;
 
namespace PackageManagement.Pages.Common
{
    public partial class Upload2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!IsPostBack)
            {
                //Do not display SelectedFilesCount progress indicator.
                RadProgressArea1.ProgressIndicators &= ~ProgressIndicators.SelectedFilesCount;
                //RadProgressArea1.Culture = System.Globalization.CultureInfo.CurrentCulture;
                //RadProgressArea1.Culture = new System.Globalization.CultureInfo("da");
            }
            RadProgressArea1.Localization.Uploaded = "Total Progress";
            RadProgressArea1.Localization.UploadedFiles = "Progress";
            RadProgressArea1.Localization.CurrentFileName = "Custom progress in action: ";
        }
 
        protected void buttonSubmit_Click(object sender, System.EventArgs e)
        {
            UpdateProgressContext();
        }
 
        private void UpdateProgressContext()
        {
            const int total = 100;
 
            RadProgressContext progress = RadProgressContext.Current;
            progress.Speed = "N/A";
 
            for (int i = 0; i < total; i++)
            {
                progress.PrimaryTotal = 1;
                progress.PrimaryValue = 1;
                progress.PrimaryPercent = 100;
 
                progress.SecondaryTotal = total;
                progress.SecondaryValue = i;
                progress.SecondaryPercent = i;
 
                progress.CurrentOperationText = "Step " + i.ToString();
 
                if (!Response.IsClientConnected)
                {
                    //Cancel button was clicked or the browser was closed, so stop processing
                    break;
                }
 
                progress.TimeEstimated = (total - i) * 100;
                //Stall the current thread for 0.1 seconds
                System.Threading.Thread.Sleep(100);
            }
        }
 
    }
}

Current version is 2011.3.1115.40
Dimitar Terziev
Telerik team
 answered on 07 Dec 2011
4 answers
930 views
Hi

I just started a new project were ASP.NET Ajax Teleriks components are used.
We use a RadGrid to present the result of a db search and a simple ASP.NET Button ctrl to submit the search. This button is, as I understand it, ajaxified:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
             <telerik:AjaxSetting AjaxControlID="buttonSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgCustomers" />
                </UpdatedControls>
            </telerik:AjaxSetting>  
            ....

rgCustomers is the ID of the RadGrid ctrl.

When this button is pressed on error occurs:
Uncaught TypeError: Cannot read property 'id' of undefined
The callstack is:

            Telerik.Web.UI.RadAjaxControl._initializeRequestScriptResource.axd:107
   Type$callBaseMethodScriptResource.axd:1261
   Telerik.Web.UI.RadAjaxManager._initializeRequestScriptResource.axd:662
   $type.createDelegateScriptResource.axd:628
   $type.getHandlerScriptResource.axd:4338
   Observer$raiseEventScriptResource.axd:2685
   PageRequestManager$_onFormSubmitScriptResource.axd:1355
   PageRequestManager$_doPostBackScriptResource.axd:911
   $type.createDelegateScriptResource.axd:628
   WebForm_DoPostBackWithOptionsWebResource.axd:42
   PageRequestManager$_doPostBackWithOptionsScriptResource.axd:916
   $type.createDelegateScriptResource.axd:628
   (anonymous function)Customers.aspx:1217
          onclick

and the RadGrid is not updated dispite that AjaxRequest event fired, an updated datasource was set and DataBind() method of the RadGrid ctrl was called.

I should say that everything works if you tab to the button and then press enter. And after this even mouse clicks works.
Problem seem to occur using all browsers (IE,FF,chrome)

Any ideas?

Thanks
Mira
Telerik team
 answered on 07 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?