Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
I have a sort expression that works on multiple columns in the listview, but anything that is blank in the datasource comes up first in the sort. For instance I have a name and a business, but sometimes there isn't a business associated with the name. I am sorting in the order of Business, Last Name, then First Name. The blank businesses come up first because "" or null comes before it in sort order. Is there any way to work around this.

Thanks,
Lonnie
Tsvetina
Telerik team
 answered on 21 Oct 2011
2 answers
137 views
Hello,

I'm using TreeView combined with ComboBox just like it's here:
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx?product=treeview

First basic question is - is that connection client-side and it's only possible that way? 

Next:
I'm trying to load nodes into TreeView instead of writing them manually like in the example.
But I can't access TreeView from server-side code.

How can I do it other way?

Regards
Darek
Dariusz
Top achievements
Rank 1
 answered on 21 Oct 2011
2 answers
136 views
Hello,

I have to open rad window of small size which will just show progress icon and progress.... message
for that i have given size of rad window to by using below code in java script
ownd is rad window object .

oWnd.setUrl("Test.aspx",10,10);

but rad winodw is taking somw default height and not taking 10 whar i have given in above code  .

kindly advise

 

Marin Bratanov
Telerik team
 answered on 21 Oct 2011
1 answer
72 views
How can I force the axis label to line wrap? I have word wrapping sort of working. I basically have 2 words in my label per item and always want the 2nd word to wrap - it does on the longer words but not the shorter ones.
Evgenia
Telerik team
 answered on 21 Oct 2011
2 answers
120 views
I'd like to first thank the Telerik support team for replying to my previous inquiries.

Now I've got another one.

We are using the Real Font Sizes for the RadEditor.
We would like to rename that "Real Font Sizes" label to display "Font Sizes" (or some other label) instead.

Is there a way to do this?

Thanks,
Cameron
Rumen
Telerik team
 answered on 21 Oct 2011
3 answers
334 views
Hi All,

I want to remove the plus(Add) button from all the child nodes. How can i achieve it?

Thanks,
Amit Choudhary
Veli
Telerik team
 answered on 21 Oct 2011
6 answers
149 views
Hi,
I have developed the parent page three radwindows. There are two radwindows to be open by click event of image button by calling the code behind command as below coding:
 Protected Sub btnStaff_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnStaff.Click
        Singleton.Windows(0).VisibleOnPageLoad = True
    End Sub

    Protected Sub btnGuest_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnGuest.Click
        Singleton.Windows(1).VisibleOnPageLoad = True
    End Sub 

Actually Singleton.Windows(0) is only with one button to closed itself by 
 Protected Sub btnCancel_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnCancel.Click
        InjectScriptLabel.Text = "<script>RefreshParentPage()</" + "script>"
  End Sub

The function of the Javascript -RefreshParentPage
 function RefreshParentPage()
    {
      //alert ("Dialog is about to reload parent page");
     
      GetRadWindow().BrowserWindow.location.reload();
    }
Now, I want to open the third Radwindows when Singleton.Windows(0) is closed. - Singleton.Windows(2) by the below function:
 Protected Sub ShowCostCenter()
         Singleton.Windows(2).VisibleOnPageLoad = True
End Sub

How can I created the close event to catch Singleton.Windows(0) is closed and call the code behind function "ShowCostCenter"?

Thank

J
Top achievements
Rank 1
 answered on 21 Oct 2011
1 answer
114 views
In disable mode user mousemove over calender cursor hand comes.
I want to change cursor in pointer mode in case of disable mode.


Please suggest on it.
Galin
Telerik team
 answered on 21 Oct 2011
2 answers
120 views
I am farely new to Telerik, First I ran into a problem where I could not load multiple RadAjaxManger on multiple user controls. I read a couple threads on this and found a solution that is working for me, Here. Problem now is that the listview is updating and everything on the server side  and the javascript part is working as well, but when it is done, the listview disappears. Can anyone see what i am doing wrong? Thanks for any answers.
ListView(UserControl)
<telerik:RadAjaxManagerProxy  ID="FullAlbumAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="FullAlbumAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lvFullControlAlbums" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="FullAlbumCounter" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ListViewPanel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lvFullControlAlbums" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="FullAlbumCounter" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdoSortDate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lvFullControlAlbums" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdoSortName">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lvFullControlAlbums" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy >
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" MinDisplayTime="0" />
    <asp:Panel ID="ListViewPanel1" runat="server">
     <div>
        <asp:RadioButton runat="server" ID="rdoSortDate" Text="Sort by date" AutoPostBack="true"
            OnCheckedChanged="rdosortDate_Change" GroupName="Sorter" />
        <br />
        <asp:RadioButton runat="server" ID="rdoSortName" Text="Sort by Name" AutoPostBack="true"
            OnCheckedChanged="rdosortName_Change" GroupName="Sorter" />
       <asp:Button runat="server" ID="ResyncFullAlbum" Text="Resync Full Album"
             onclick="ResyncFullAlbum_Click"/>
    </div>
        <telerik:RadListView ID="lvFullControlAlbums" AllowPaging="true" runat="server" GroupItemCount="5"
            OnPageIndexChanged="Pager_Change" OnItemDataBound="AlbumSetup">
            <ClientSettings>
                <ClientEvents OnListViewCreated="SetupListviewAccess"></ClientEvents>
            </ClientSettings>
            <LayoutTemplate>
                <table id="Table2" runat="server">
                    <tr id="Tr1" runat="server">
                        <td id="Td3" runat="server">
                            <table id="groupPlaceholderContainer" runat="server" border="0" style="">
                                <tr id="groupPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="Tr2" runat="server">
                        <td id="Td4" runat="server" style="">
                            <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="lvFullControlAlbums"
                                PageSize="10">
                                <Fields>
                                    <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                    <telerik:RadDataPagerTemplatePageField>
                                        <PagerTemplate>
                                            <div style="float: right">
                                                <b>Items
                                                    <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                    to
                                                    <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                                    of
                                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                    <br />
                                                </b>
                                            </div>
                                        </PagerTemplate>
                                    </telerik:RadDataPagerTemplatePageField>
                                </Fields>
                            </telerik:RadDataPager>
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
            <EmptyDataTemplate>
                <table id="Table1" runat="server" style="">
                    <tr>
                        <td>
                            No shared or created albums.<a href="#" id="NoDataCreateAlbum">Create New Album.</a>
                        </td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <EmptyItemTemplate>
                <td id="Td1" runat="server" />
            </EmptyItemTemplate>
            <ItemTemplate>
                <td id="Td2" runat="server" style="display: inline-block; position: relative; margin: 0.7em;
                    text-align: left; vertical-align: top;">
                    <asp:HiddenField runat="server" ID="ShareCounter" />
                    <div id="HypeShareAlbum" style="padding: 0; margin: 0">
                        <input type="hidden" value="<%#Eval("ID") %>" />
                        <asp:HyperLink runat="server" ID="hypShareAlbum"></asp:HyperLink>
                        <input type="hidden" value="<%#Eval("CreatorID") %>" />
                    </div>
                    <div class="EditAlbumClass">
                        <asp:ImageButton ToolTip='<%#Eval("AlbumDescription") %>' runat="server" ID="AlbumImage"
                            Width="110" Height="110" ImageUrl='<%#Eval("AlbumDefaultImageUrl") %>' /></div>
                    <img src="../SiteImages/private.png" style="margin: 0" />
                    <span style="margin: 0">photos:
                        <%#Eval("PhotoCount")%></span><br />
                    <div id="hypDeleteAccess" style="padding: 0; margin: 0">
                        <input type="hidden" value="<%#Eval("ID") %>" />
                        <asp:LinkButton runat="server" ID="hypeDeleteAlbum" Visible="false" Text="Delete Album"></asp:LinkButton>
                        <asp:HyperLink ID="hypeDeleteMyAccess" runat="server" Visible="false" Text="Remove my Access"></asp:HyperLink>
                    </div>
                    <div class="EditAlbumClass">
                        <asp:HyperLink runat="server" ID="EditAlbum" ToolTip='<%#Eval("AlbumDescription") %>'
                            Font-Underline="false">
                            <p class="titleAlbums" runat="server" id="pTitle">
                                <%#Eval("AlbumName") %></p>
                        </asp:HyperLink></div>
                </td>
            </ItemTemplate>
            <GroupTemplate>
                <tr id="itemPlaceholderContainer" runat="server">
                    <td id="itemPlaceholder" runat="server">
                    </td>
                </tr>
            </GroupTemplate>
        </telerik:RadListView>
        <asp:HiddenField runat="server" ID="AccessChoice"/>
    </asp:Panel>
Code Behind c#
protected void Page_Load(object sender, EventArgs e)
       {
           manager1 = RadAjaxManager.GetCurrent(Page);
           manager1.AjaxSettings.AddAjaxSetting(manager1, lvFullControlAlbums);
           manager1.AjaxSettings.AddAjaxSetting(manager1, ListViewPanel1);
           manager1.AjaxSettings.AddAjaxSetting(manager1, FullAlbumCounter);
           manager1.AjaxSettings.AddAjaxSetting(FullAlbumAjaxManager1, lvFullControlAlbums);
           manager1.AjaxSettings.AddAjaxSetting(FullAlbumAjaxManager1, ListViewPanel1);
           manager1.AjaxSettings.AddAjaxSetting(FullAlbumAjaxManager1, FullAlbumCounter);
           manager1.AjaxSettings.AddAjaxSetting(ListViewPanel1, ListViewPanel1);
           manager1.AjaxSettings.AddAjaxSetting(ListViewPanel1, lvFullControlAlbums);
           manager1.AjaxSettings.AddAjaxSetting(ListViewPanel1, FullAlbumCounter);
           manager1.AjaxSettings.AddAjaxSetting(rdoSortDate, ListViewPanel1);
           manager1.AjaxSettings.AddAjaxSetting(rdoSortDate, lvFullControlAlbums);
           manager1.AjaxSettings.AddAjaxSetting(rdoSortName, ListViewPanel1);
           manager1.AjaxSettings.AddAjaxSetting(rdoSortName, lvFullControlAlbums);
           manager1.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(FullAlbumAjaxManager1_AjaxRequest);
            
       }
protected void FullAlbumAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
       {
           string accesschoice = AccessChoice.Value;
           bool resetFullList = false;
           string id = "";
           if (e.Argument != null)
           {
               id = e.Argument;
               if (accesschoice == "Delete Album")
               {
                   if (mygreatappz.control.Data.Albums.DeleteAlbum(id))
                   {
                       resetFullList = true;
                   }
               }
               else if (accesschoice == "Remove my Access")
               {
                   if (mygreatappz.control.Data.AlbumAcesses.RemoveAccess(GlobalClass.GlobalVariables.User.ID, id))
                   {
                       resetFullList = true;
                   }
               }
 
           }
           if (resetFullList)
           {
               List<Album> newAlbums = new List<Album>();
               foreach (Album album in GlobalClass.GlobalVariables.User.FullControlAlbums)
               {
                   if (album.ID != id)
                   {
                       newAlbums.Add(album);
                   }
               }
               GlobalClass.GlobalVariables.User.FullControlAlbums = newAlbums;
           }
           RebindData();
       }
JS file that makes the ajax call
if (option == 'Remove my Access') {
                        var album = $(this).prev().val();
                        $('[id$=AccessChoice]').val(option);
                        $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(album);
                        return false;
                    }
Maria Ilieva
Telerik team
 answered on 21 Oct 2011
0 answers
109 views
Hello All

Does this method really exist "RadScheduler.Rebind()" i am referring to the rebind().

I am using scheduler view in silverlight and that method cannot be found.

please advice.

regards
Manuel
Top achievements
Rank 1
 asked on 21 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?