Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
296 views
Hello

In Javascript, how should I programmatically click the plus or minus button in a node, in order to programmatically raise the nodeexpand event, or the nodecollapse event. Obviously, calling .expand() on the node object does not raise the event. Would it be something similar to this example (which is in another forum post elsewhere, about programmatically selecting a node):

     var item = $(mytreeid).find(".t-input[name='itemValue'][value='5']").closest("div");

     item.find(".t-in:first").trigger("click");


Presumably the second line would be different, in order to click the expand node, but what should it be? I just can't work it out!

Thanks if you can help with this one.

Regards


Boyan Dimitrov
Telerik team
 answered on 18 Dec 2012
3 answers
1.1K+ views
Hi All,

Is there any way to remove default minimum date and maximum date of rad date picker ? I don't want to set any min date and max date as I don't know what would be date coming from database ?


Regards,
Ruchi
Princy
Top achievements
Rank 2
 answered on 18 Dec 2012
1 answer
50 views
Our website uses a system of pre-caching child menu items to increase performance on a very large webservice-populated RadMenu. When a menu item is expanded, all child items invoke _loadChildrenFromWebService() to fetch its own children, in advance of that sub menu being expanded. This has worked incredibly well up until upgrading to the Q3 and Q3 SP1 Teleriks. Now - on desktop browsers, the behaviour is unchanged, but on Android phones (multiple browsers tested), when _loadChildrenFromWebService() is called - the sub menu filled from the webservice actually displays! Alternatively, on Windows Phone 8, the menus pop up, and are immediately hidden.

Has the internal behaviour of this method been changed in the recent updates?

Kate
Telerik team
 answered on 18 Dec 2012
1 answer
91 views
Hi,

I've created a site where i have a radgrid with the built-in skin Transparent on the page. This works fine & looks good, as it picks up all the CSS from the skin file.
However, i have another Radgrid which is embedded into a formview so it shows records related to the formview selected record. The settings are excatly the same for this Radgrid as they are for the Radgrid in the main page. I even used the same built-in skin. However, the radgrid within the formview does not work properly with the selected skin. There are several noticeable CSS omissions such as the header backgroud, text colour, size, etc that are different or not rendered correctly. It does pick up some of the colour scheme & CSS of the skin but is clearly missing something out too.

is there an explanantion for this?

Regards,

Shuja
Galin
Telerik team
 answered on 18 Dec 2012
3 answers
86 views
Hi guys,
I have a master page and a radajaxpanel radajaxloadingpanel ... from a button I open a second aspx page that loads records from a SQL database server. Because just when I open the second page, the master page the radajaxloading starts, but the animated gif is not moving. This with Internet Explorer 9 instead if I start with google chrome the animated gif works
this my code that call the second page:
Protected Sub ImageButtonRicerca_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImageButtonRicerca.Click
 
Response.Redirect("Resultsearch.aspx?_str1=" & Txt_ricerca1.Text & "&_str2=" & Txt_ricerca2.Text)
 
End Sub

while this is the code of the second page:

Dim lista As List(Of PropertyUtente) = Loadsearch.Search(_str1, _str2)
RadListView1.DataSource = lista
RadListView1.DataBind()




Maria Ilieva
Telerik team
 answered on 18 Dec 2012
2 answers
54 views
Hello Everyone,

Is there a way to save the sorted state of detail table?

I have 2 detail tables and AllowSorting is set to true and EditMode = Inplace. When I sort the detail table and edited one row, the detail table rebinds again and the row that I was trying to edit was not the original one.

Attached are the image for reference and code snippets for Sort Command.  
protected void gridCPDiag_SortCommand(object source, GridSortCommandEventArgs e)
        {
            GridTableView tableView = e.Item.OwnerTableView;
            if (e.Item.OwnerTableView.Name == "Detail2" && e.SortExpression == "VisitFrequency")
            {
                e.Canceled = true;
                GridSortExpression expression = new GridSortExpression();
                expression.FieldName = "VisitFrequency";
                if (tableView.SortExpressions.Count == 0 || tableView.SortExpressions[0].FieldName != "VisitFrequency")
                {
                    expression.SortOrder = GridSortOrder.Descending;
                }
                else if (tableView.SortExpressions[0].SortOrder == GridSortOrder.Descending)
                {
                    expression.SortOrder = GridSortOrder.Ascending;
                }
                else if (tableView.SortExpressions[0].SortOrder == GridSortOrder.Ascending)
                {
                    expression.SortOrder = GridSortOrder.None;
                }
                tableView.SortExpressions.AddSortExpression(expression);
                tableView.Rebind();
            }
        }

Any help is greatly appreciated. Please let me know what else you need from my code.

Thanks!
Zel
Marin
Telerik team
 answered on 18 Dec 2012
1 answer
49 views
Hi,
 
I have opened update form after save then dropdown selected value is not showing in the UI.
 
    <telerik:RadGrid ID="AttachmentGrid" GridLines="None" runat="server" AllowAutomaticDeletes="True"
        AllowAutomaticInserts="True" AllowAutomaticUpdates="False" AllowPaging="True"
        DataSourceID="AttachmentDataSource" Skin="Metro" AllowSorting="True" AutoGenerateDeleteColumn="False"
        OnItemCommand="AttachmentGrid_ItemCommand">
         
        <MasterTableView Width="100%" DataKeyNames="id" DataSourceID="AttachmentDataSource"
            HorizontalAlign="NotSet" AutoGenerateColumns="False" EditMode="PopUp">
             
            <telerik:GridTemplateColumn UniqueName="InitiatorName" Groupable="False" HeaderText="Which entity or company did you receive this file from?"
                DataField="InitiatorName" Visible="false">
                <headerstyle width="1000px" />
                <itemtemplate>
                    <%#DataBinder.Eval(Container.DataItem, "InitiatorName")%>
                    </itemtemplate>
                <edititemtemplate>
                 
                        <asp:DropDownList ID="InitiatorName" runat="server" CssClass="textbox" SelectedValue='<%# Bind("InitiatorName") %>'
                                          DataSourceID="CompanyNameDataSource" DataTextField="InitiatorName" Width="300px"
                                          DataValueField="InitiatorName" OnSelectedIndexChanged="InitiatorName_SelectedIndexChanged"
                                          AutoPostBack="true">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="ReqInitiatorName" runat="server" ControlToValidate="InitiatorName"
                                                    ErrorMessage="Please Select a Company Name" Display="Dynamic" SetFocusOnError="true" />
                    </edititemtemplate>
                     
                <asp:SqlDataSource ID="CompanyNameDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:TaskManagementConnectionString %>"
                    SelectCommand="select distinct InitiatorName from t_TaskMaster where (InitiatorName<>'' and InitiatorName is not null )union all select '' order by InitiatorName asc">
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="AttachmentDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:TaskManagementConnectionString %>"
                    SelectCommand="SELECT id,refid,[filename],[Description],[Content],upper(Status) as [Status],DateUpdated,UpdatedBy, isnull(FileCategory,'') as FileCategory ,isnull(FileMainCategory,'') as FileMainCategory,isnull([MainClassofInsurance],'') as [MainClassofInsurance],isnull([InitiatorName],'') as [InitiatorName],emailrefid FROM [t_Attachments] WHERE (FileCategory is null  or FileCategory='') and  (([UpdatedBy] = @UpdatedBy)) AND [Status] <>'DELETED' and refid<>'0'"
                    DeleteCommand="delete from t_Attachments where id=@id ">
                    <SelectParameters>
                        <asp:SessionParameter Name="UpdatedBy" SessionField="UserName" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
 
 
PLease help me on this why it's not showing selected value even SelectedValue='<%# Bind("InitiatorName") %>' is there ?
Eyup
Telerik team
 answered on 18 Dec 2012
1 answer
75 views
Example code for a megadropdown menu that mimics the Telerik home page menu:

Hi,
I love the Telerik home page menu where you have a black bar, logo on the left, product families in the middle, account info/about us on the right. When clicked on the 'product families' link a 'megadropdown' menu appears. For my project I need a megadropdown menu that have exactly the same functionality: a megadropdown menu that is shown by clicking a button/link in the middle.

Will you share a sample code that will mimic the menu in Telerik's website?
Shinu
Top achievements
Rank 2
 answered on 18 Dec 2012
2 answers
173 views
Hi.,
  I'm using RadCalendar to select highlighted days. The issue is that whenever I hover on these highlighted dates., the date gets selected, which shouldn't be the case. I want the date to get selected only when i click it but no on hover. How can i overcome this issue..??
I'm using this css class to highlight special days
   .CalendarHolidays a
    {
        color: red !important;
        font-weight: bold !important;
        background-color: #f2f2f2 !important;
    }

Regards,
Aditya
James
Top achievements
Rank 1
 answered on 18 Dec 2012
7 answers
268 views
How can I do a subtitle with different font and size? Is possible?
Evgenia
Telerik team
 answered on 18 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?