Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
268 views
Hello,
I have a Telerik Radgrid with Export to Excel, CSV and Word buttons on it. Since I am exporting huge amounts of data it takes some time for the Save pop up to display. Is there any way to specify the user that some background work is going on in order to prepare the excel or csv during that particular period of time.

I have gone through the following post, but I could not get an ideal solution.
http://www.telerik.com/community/forums/aspnet-ajax/grid/display-loading-panel-during-export.aspx

Could you suggest me any alternative such as the mouse icon turning to an hour glass or a loading panel getting displayed during the time etc?

Thanks,
M N V Koundinya
Daniel
Telerik team
 answered on 15 Jul 2011
2 answers
952 views
Hi

I am updating an old project to use some of the Telerik controls - I am new to your controls.  A standard ASP.NET Listbox was previously used in a modal popup to re-order items in a list  - once the user was happy with the new order of items they click a 'Save Order' button to save the new order of items and close the popup. The function that works fine and does this is:
 
Protected Sub SaveOrder(ByVal sender As Object, ByVal e As EventArgs)
 
       Dim intID As Integer
       Dim intIndex As Integer
         Dim strUpdate As String
       Dim cmdUpdate As SqlCommand
 
       connTC.Open()
 
       For Each item As RadListBoxItem In ListBox1.Items 
 
           'get the ID of the item
           intID = item.Value
 
           'get the index number in the listbox
           intIndex = ListBox1.Items.IndexOf(item)
 
           'increase by 1 since listbox index starts at 0
           intIndex = intIndex + 1
 
           strUpdate = "Update tblGalleryImages SET fldOrder=@fldOrder WHERE fldGalleryImageID=@fldGalleryImageID"
 
           cmdUpdate = New SqlCommand(strUpdate, connTC)
           cmdUpdate.Parameters.AddWithValue("@fldOrder", intIndex)
           cmdUpdate.Parameters.AddWithValue("@fldGalleryImageID", intID)
 
           cmdUpdate.ExecuteNonQuery()
 
       Next
 
 
       connTC.Close()
 
 
       'hide the modal popup
       ModalTextPopup.Hide()
 
 
 
   End Sub



I have tried applying the same function to the RadListBox (ID =ListBox1) .  I have made the following change on one of the lines:

" For Each item As RadListBoxItem In ListBox1.Items"

However there is an error on the following line:

intIndex = ListBox1.Items.IndexOf(item)

I can not get the index of the Radlistbox item.  The error is:

'Telerik.Web.UI.ControlItemCollection.Protected Friend Overridable Function IndexOf(item As Telerik.Web.UI.ControlItem) As Integer' is not accessible in this context because it is 'Protected Friend'.

Any help in getting the index of the Radlistbox item would be appreciated.  The 'save order' must be done with an 'external' button as the user must be happy with the display order etc. before they save it - in other words I can not use Autopostback etc.

Thanks in advance.

Kevin



Kevin
Top achievements
Rank 1
 answered on 15 Jul 2011
1 answer
100 views
Hi All....
i am trying to implement the TabStrip wizard example from the demo page...

but my tabstrip in the first tab, there are child tabs...

i load a user control for the first child tab by default...

when the user click the next button in this user control, i noticed the second user control for the second child control is also loaded but the this tab is not selecetd!!! and the first child is still selected!!!!

i debugged the code that makes this tab to be seleceted and no exception occurrs!!!

also i changed the code to get the second child tab of the first tab to get it and and it is not null...

my page is containing the RadAjaxManager...
when i removed moved it the  second user control is loaded and its tab is seleced and enabled...

but when i click the first child tab its user control is displayed again but when i reclick the second tab the first user control of the first child tab is persist and i can see the second user control again...

how can i implement it with ajax and also make the wisard works properly????

i will be very gratefull for any comment...

thanks
Asa'ad...

Plamen
Telerik team
 answered on 15 Jul 2011
1 answer
86 views
hi i got problem, adding new nodes dynamically.
the nodetemplates are assigned by the templateneeded event:

protected void tree_TemplateNeeded(object sender, RadTreeNodeEventArgs e)
{
 
    ANDNode x=new ANDNode();
 
    e.Node.NodeTemplate = x;
 
}


my root node is a dropdownlist and when i change the selected index of the ddl, new child nodes should be added to the node.
My problem is, that the selectedchangedindex event will be not performed. Do you have an idea, why it will be not performed?

public class ANDNode : ITemplate
{
 
    public ANDNode()
    {
 
 
    }
    public void InstantiateIn(System.Web.UI.Control container)
    {
        DropDownList ddl = new DropDownList();
 
        ddl.AutoPostBack = true;
 
        ddl.ID = "ddl"+Guid.NewGuid().ToString();
        ddl.DataBinding+=new EventHandler(ddl_DataBinding);
        ddl.SelectedIndexChanged += new EventHandler(ddl_SelectedIndexChanged);
         
        
        container.Controls.Add(ddl);
    }
 
    void  ddl_DataBinding(object sender, EventArgs e)
    {
        Global.FillExpressionItems((DropDownList)sender);
    }
 
 
    void ddl_SelectedIndexChanged(object sender, EventArgs e)
    {
        DropDownList ddl = (DropDownList)sender;
 
        RadTreeNode node = (RadTreeNode)ddl.NamingContainer;
        node.ExpandMode = TreeNodeExpandMode.ServerSide;
        node.Expanded = true;
 
        RadTreeNode child = new RadTreeNode();
        child.NodeTemplate = new ANDNode();
        node.Nodes.Add(child);
    }
 
}
Plamen
Telerik team
 answered on 15 Jul 2011
2 answers
125 views
Is there anyway to setup the FileExplorer so the right hand "FileView" side excludes folders and only shows files? I'd like to use the left hand "FolderView" side for navigation through my directory structure, and the right hand side for only accessing files.

P.S. Is there any way to hide the address/path bar?
Xorcist
Top achievements
Rank 1
 answered on 15 Jul 2011
7 answers
329 views
Hi all,

I've read the post here: http://www.telerik.com/support/kb/aspnet-ajax/general/adding-visual-studio-intellisense-support-for-radcontrols.aspx and then I noted a forum post showing how to get this functionality in a separate JS file.

So, I have this:

//Dashboard.js
/// <reference name="MicrosoftAjax.js"/>
/// <reference name="Telerik.Web.UI.Common.Core.js" assembly="Telerik.Web.UI"/>

and then I have Dashboard.aspx reference Dashboard.js:

<telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True" EnablePageMethods="True">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Path="~/Scripts/Dashboard/Dashboard.js" />
    </Scripts>
</telerik:RadScriptManager>

I continue to not see the intellisense shown in screenshots. Doing $telerik does not find anything in the intellisense dropdown.

What am I doing wrong?

Thanks,

Sean
Martin
Telerik team
 answered on 15 Jul 2011
1 answer
88 views
Hi,

I am using Telerik Nested Grid and I have applied filter template for one of my colmns and that's work fine for me but the problem is that after filtering when I click on a button to see my nested view template it doesn't open. Any Help would be greatly appreciated.

<telerik:GridTemplateColumn HeaderText="Shop Name" UniqueName="PortalID" DataField="PortalID"
                    SortExpression="PortalID">
                    <ItemTemplate>
                        <asp:Image ID="imgPortal" runat="server" ImageAlign="AbsBottom" />
                        <asp:Label ID="lblPortalName" runat="server" Text='<%# Eval("PortalID") %>'></asp:Label>
                    </ItemTemplate>
                    <FilterTemplate>
                        <telerik:RadComboBox ID="rcbPortal" Height="200px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("PortalID").CurrentFilterValue %>'
                            runat="server" OnClientSelectedIndexChanged="TitleIndexChanged" DataTextField="PortalName" DataValueField="PortalID" >
                            <Items>
                                <telerik:RadComboBoxItem Text="All" />
                            </Items>
                        </telerik:RadComboBox>
                        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                            <script type="text/javascript">
                                function TitleIndexChanged(sender, args) {
                                    var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");                                   
                                    tableView.filter("PortalID", args.get_item().get_value(), "EqualTo");
 
                                }
                            </script>
                        </telerik:RadScriptBlock>
                    </FilterTemplate>
                </telerik:GridTemplateColumn>
Genti
Telerik team
 answered on 15 Jul 2011
3 answers
1.3K+ views
Hi,
I want to highlight the current date in a datepicker control. I have tried setting it programmatically but it doesnot work.
How can I get the datepicker to highlight the date?

Thanks!
Ram
Top achievements
Rank 1
 answered on 15 Jul 2011
6 answers
1.2K+ views
Hi,
I want to higlight the current date in the rad date time picker,  if a user selects any other date, other than today, today's date should still be highlighted, while he selects other date of his desire. I want to higlight today's date, so that it serves as a reference to user, just in case he forgets what today';s date is. Please help.

Thanks
Shashank
Ram
Top achievements
Rank 1
 answered on 15 Jul 2011
2 answers
135 views
HI,

Well, I think that the title say almost everything : How can I do a google-like filtering on a treeList like in this demo (is it even possible ?). Look like I just have to use a RadFilter (cause it seem that there is no filtering propriety for a treeList) and override it, but I don't know how to do so. 

Thank you in advance for your answer,
David

PS: Well, in fact, I have another question : is it possible to filter a treeList ? I tried a radFilter, but it doesn't seem to work. And I read here that treeList doesn't support filtering. So, is it only me or the treeList isn't compatible with a radFilter.
David
Top achievements
Rank 1
 answered on 15 Jul 2011
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?