Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
HI,
In grid i am taken on bound column . In this one row contain name like "Sample         Text"  but its displaying "Sample Text" . Here Problem is that if have any space in the row values . its displaying only one space .

Problem in Live Demo also Please check below link
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx

In this example please double click on row for edit In Product Column having value "Chai" .
i am enter new value like that "Testing    double     space "  but its displaying only single space like that "Testing double space".

Princy
Top achievements
Rank 2
 answered on 27 Dec 2011
3 answers
91 views
Hello Telerik team,

I have created a telerik grid and customized it to implement hierarchy (The default Telerik hierarchical gridview does not solve our requirements). Within header template I have included the required column headers and column data within multiple item templates. I am using javascript to implement Expand and collapse functionality.

Now, there is a requirement to implement scrolling within this hierarchical grid. I have enabled the 'AllowScroll' property to 'true' as follows:
<ClientSettings>
          <Scrolling AllowScroll="True">
          </Scrolling>
 </ClientSettings>

this is working fine. but, when I set 'UseStaticHeaders' property to 'true' (to get static headers), the whole content of grid gets shrinked. And on expanding and collapsing multiple tables, the table content gets misaligned with the headers.
Can you help me in implementing scrolling for hierarchical grid views with static headers?
Note: I am using 2009 version of Telerik. Is this issue resolved in any newer version?

Thanks, 
Pooja
Shinu
Top achievements
Rank 2
 answered on 27 Dec 2011
1 answer
490 views
Tengo un problema con el RadGrid de Asp.Net Ajax: ¿Como hago para agregar otro Radgrid en un <EditItemTemplate> de un <telerik:GridTemplateColumn> para que se muestre en Modo Editar del RadGrid?, tengo una formulario de mantenimiento donde uno de los campos hace referencia a una gran tabla de cientos de registros, necesito desplegar estos registros en un Grid para poder paginarlos o hasta filtrarlos para que se le haga más facil al usuario seleccionar el detalle. Gracias

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Translated by Google!:

I have a problem with the RadGrid for Asp.Net Ajax: How do I add another RadGrid in a <telerik:GridTemplateColumn> <EditItemTemplate> to display the Edit Mode RadGrid?, I have a maintenance form where one of fields refers to a big table of hundreds of records, these records need to deploy a grid to page or to filter them to make it easier for users to select the item. thanks
Shinu
Top achievements
Rank 2
 answered on 27 Dec 2011
1 answer
84 views
Hi, 

I have this problem with RadGrid: 
1- I have  a editable grid with javascript, when a try to make double click the event don't return the initial values from the grid. Also I dont know how to fill my grid without SessionDataSource. 

 
I need help please,
Shinu
Top achievements
Rank 2
 answered on 27 Dec 2011
6 answers
109 views
I have a page that contains 2 rotators that I want to move in sync with each other -- when the top one moves, I want that movement to trigger the movement of the bottom one.

I have set up the code to do this except I cannot seem to address the second rotator.  I capture the movement of the first, then try to find the second in the control collection and set it's index -- similar to an example on your site.  But every time I try to find the second rotator, I find that I have grabbed a "div" control instead. 

Can you tell me what I need to do?  This needs to run on pages with and without master pages.

I ahve attached 2 related screen captures below from during execution.

Thanks in advance!

Lynn
<body>
    <script type="text/javascript">
        function OnClientItemShown(sender, eventArgs) {
            var idx = eventArgs.get_item().get_index();
            var oRotator = document.getElementById("<%= RadRotator2.ClientID %>");
            alert(oRotator);
            oRotator.set_currentItemIndex('1');
        }
    </script>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <div>
            <br /><br />
            <telerik:RadRotator runat="server" DataSourceID="xmlDataSource1" ID="rotator1" OnClientItemShown="OnClientItemShown"
                ScrollDirection="Left" SlideShowAnimation-Type="Fade" RotatorType="SlideShow"
                FrameDuration="6000" Width="955px" ItemWidth="955px" Height="398px" ItemHeight="398px">
                <ItemTemplate>
                    <div class="itemTemplate">
                        <img src="<%# XPath("Image") %>" alt="<%# XPath("Title") %>" style="border: 0px;" />
                    </div>
                </ItemTemplate>
            </telerik:RadRotator>
            <br /><br />
            <div class="xscrollContainer" >
                <telerik:RadRotator runat="server" DataSourceID="xmlDataSource2" ID="RadRotator2" ScrollDirection="Left"
                    SlideShowAnimation-Type="Fade" RotatorType="SlideShow"
                    FrameDuration="6000" Width="390px" ItemWidth="390px" Height="30px" ItemHeight="30px">
                    <ItemTemplate>
                        <div class="itemTemplate">
                            <%# XPath("Title") %>
                        </div>
                    </ItemTemplate>
                </telerik:RadRotator>
            </div>
            <br /><br />
        </div>
        <asp:XmlDataSource ID="xmlDataSource1" runat="server" DataFile="photos.xml"></asp:XmlDataSource>
        <asp:XmlDataSource ID="xmlDataSource2" runat="server" DataFile="titles.xml"></asp:XmlDataSource>


Lynn
Top achievements
Rank 2
 answered on 27 Dec 2011
4 answers
94 views
Hi. I'm using the scheduler control and would appreciate some help.

Ultimately I would like to implement a custom form to create and edit events but for now the standard forms are fine. However, the data isn't stored in a simple single table and it would be impossible to write an sql to act as a datasource to load the scheduler.

I can build the data in code behind and bind it. That's fine and I'm ok doing that. However, how do I reference the recordId/datakey in events like appointInsert or appointmentDelete? If I have a recordId (primary key in the underlying table) I obviously want to store that in the Appointment and access it in the update/delete event code.

Thanks
Peter
Telerik team
 answered on 26 Dec 2011
10 answers
844 views
Working with version 2009.2.826.20.

I have a RadListBox on a page that I need to enable/disable via javascript.  When the page loads, the control defaults to Enabled="False", which seems to work fine.  However, in the javascript, there doesn't appear to be a way to enable the control itself directly.  The enable/disable functions are on the items only.

So I tried disabling all the items in the RadListBox at load, leaving the control itself enabled.  But when the items are disabled, I can't seem to get the client script to enable them (I can get it to work the other way though for some odd reason - disabling items from an enabled state works OK).

This has been a maddening problem today!  Seems like there should a simple enable/disable functionality on both the server and the client RadListBox object.  Can someone there please provide a working example of how this works?

Thanks,
--nick
Bozhidar
Telerik team
 answered on 26 Dec 2011
2 answers
56 views
I have a user control with several RadComboBoxes.  My user control implements IScriptControl. It also has properties to allow the person using the control to set the handlers for events I am raising from the user control.  I would like to handle the events from the comboboxes in my userControl javascript prototype, but I'm having an issue with this code:

_onDropDownSelectedIndexChanged: function(source, e){
    if(!this._events) return;
    var handler = this._events.getHandler("selectedIndexChanged");
    if(handler)
    handler(this,e);
}

The problem is the context of "this".  I had expected it to be my prototype object, but it's not even though this is defined within my prototype.

Here's my hook up in my initialize:
ddlStore.add_selectedIndexChanged(this._onDropDownSelectedIndexChanged);

Any help or examples would be greatly appreciated.
Ivana
Telerik team
 answered on 26 Dec 2011
2 answers
95 views

Hi. Here's my scenario:

One RadProgressArea and one RadProgressManager and one button on my aspx page. I want to monitor the call to my simple web service and display time until process is complete.

Here is C# code behind for button onClick event:

public partial class IISProcess : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            RadProgressArea1.Localization.UploadedFiles = "Completed Steps: ";
            RadProgressArea1.Localization.CurrentFileName = "Step: ";
            RadProgressArea1.Localization.TotalFiles = "Total Steps: ";
        }
    }
   
    protected void myProgressButton_Click(object sender, EventArgs e)
    {
        UpdateProgressContext();
    }

    private void UpdateProgressContext()
    {
        RadProgressContext progress = RadProgressContext.Current;
        IIS_1 IISWebService = new IIS_1();
        string theOrder = "0038240";
        IISWebService.GetOrdersFromIIS(theOrder);       
    }
}

My question is how can I monitor my web service process via the RadProgressArea control ???? What is missing in my code?

Thank You in advance.

Bozhidar
Telerik team
 answered on 26 Dec 2011
3 answers
1.0K+ views
Hi,

I know that this question is little bit off-topic since RadioButtonList control is belong to original ASP.NET controls and isn't a part of Telerik, but I saw that you guys are so expert in doing CSS Style, please help me solve this problem as I couldn't find the answer anywhere on the internet.
I can easily set the "Selected Item Style" in the Code-Behind, however, I didn't want to do it for every other RadioButtonList control, I want to have something that is Universal.

Thanks

Lamk.
Rumen
Telerik team
 answered on 26 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?