Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
211 views
I have a date field for which I want to allow the user to group on, but I want to actually sort the grouping by another field.

For instance... the field being grouped on is formatted like so "10/12/2007", etc. It is a regular date field. But when the user groups on this field, my group by expression actually uses a different field, which is a text representation as found in Outlook ("Today, Yesterday, Last Week, etc.). The problem is when the user sorts the grouping, i need to use a different field to sort on since my text representation would not end up in the correct order (it would be alphabetical instead). I need to instead override this and use the original data field to sort the groups on. Is this possible?

Thanks!
Levi
Princy
Top achievements
Rank 2
 answered on 02 Feb 2012
5 answers
182 views
Hi,

I need to known how can I check if parent node has a child.

Thanks,

Allan.
Tsvetina
Telerik team
 answered on 02 Feb 2012
4 answers
279 views

Hi sir,

 

I have used a rad combobox for listing states, I have set data source and AllowCustomText="true". When focus on the combobox then listed all items, I wants the items are listed only after enter a text in the rad combobox (drop down disabled on focus) .  eg:- if user enter ‘a’ then first letter of the sate will appear in the list.

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 02 Feb 2012
3 answers
295 views
Now, I know by design RadDataPager is implimented to work the way it is for my scenario (described below), but I am wondering how to work around it.

I am using ASP.NET AJAX... I saw a suggestion for Silverlihgt RadDataPager to use some sort of RadDataPager.PagedSourse.PageIndexChanged or something maybe.

My Scenario:
  • I am binding a RadDataPager using the TotalRowCountRequest event.
  • I start by binding the RadDataPager (PageSize=5) to have a TotalRowCount of 10 (item count of a collection I'm keeping in ViewState).
  • User clicks to view Page #2 (which means PageIndex 1)   <-------------- so far so good
  • User deletes one of the items in my ViewState item collection.
    • Now the TotalRowCountRequest gets the updated count (which is now 9 because the User removed 1 from the original 10)
      • PageIndexChanged is now fired with a NewPageIndex of 0        <------------------ this is what I want to prevent

I understand that this is the way it's suppose to work, as it's really meant for a User to do something like going to last page, and then filtering items (since the item collection would chage Telerik assumes the RadDataPager should take the User to the first Page).

So is there a good way to do what I want and prevent TotalRowRequest from firing PageIndexChanged with a PageIndex of zero?

Thanks for your time to read and reply!
-Dan
Veli
Telerik team
 answered on 02 Feb 2012
2 answers
121 views

Have a look at http://www.iytworldwide.com/MFSchools.aspx

I edited my post because i was able to get the scroll bar to appear

However, If you go to the site and scroll left and right the performance is AWFUL.
Galin
Telerik team
 answered on 02 Feb 2012
2 answers
140 views
Hi,
    I have implemented ToolTip to display user details(in a User Control) on mouseover event of radgrid row. It;s working perfectly in IE & Chrome.., but the dynamically generated labels are not being displayed in firefox browser. 

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


                Control ctrl = Page.LoadControl("~/UserControls/UserDetailsForAdminMessage.ascx");
                panel.ContentTemplateContainer.Controls.Add(ctrl);
                UserControls_UserDetailsForAdminMessage details = (UserControls_UserDetailsForAdminMessage)ctrl;
                Literal lblFName = ((Literal)(details.FindControl("lblFName")));
                Literal lblLName = ((Literal)(details.FindControl("lblLName")));
                Literal lblCity = ((Literal)(details.FindControl("lblCity")));
                Literal lblEmailId = ((Literal)(details.FindControl("lblEmailId")));


                List<usp_SelectUsersResult> lst = new TemplateDomain().SelectRetailerDetails(hdnUserName.Value, "/MenUs.Web");
                lblFName.Text = lst[0].ContactFirstName;
                lblLName.Text = lst[0].ContactLastName;
                lblEmailId.Text = lst[0].CompanyEmail;
                lblCity.Text = lst[0].City;
                this.Load += new System.EventHandler(this.Page_Load);
-----------------------------------------------------------------
Regards,
Aditya
Aditya
Top achievements
Rank 1
 answered on 02 Feb 2012
1 answer
125 views
Hi,

Would like to get some sample using RadGrid + jQuery + ValidationSummary like display. Any Help would be appreciated.
Antonio Stoilkov
Telerik team
 answered on 02 Feb 2012
1 answer
113 views

I am having issues when using an edit template to create a new record. On insert, the same binding is assumed and does not work as there is nothng to bind to. For example, I have a date picker for which I have resricted the range from 2011 to 2050. On insert, there is no value being passed in and so an exception raised (Object cannot be cast from DBNull to other types.)
e.g.

<td>

 <asp:CheckBox ID="Critical_E" runat="server" Text="Critical" Checked='<%# DataBinder.Eval( Container, "DataItem.Critical" ) %>' />

 </td>


How do I either 1) disable the binding on insert, 2) create a separate insert template without having to create user controls?

Thanks,

Neil.

Veli
Telerik team
 answered on 02 Feb 2012
4 answers
570 views
Hi,

I have two related comboboxes here in Edit Form Template . and OnSelectedIndexChanged Loads the Items in the second ComboBox.

This Code works Fine on Insert Mode but on Edit Mode it Can't see the ComboBoxes ( return Nothing ):

Protected Sub CustomerName_SelectedIndexChanged(ByVal o As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs)
 
 
        Dim editedItem As GridEditFormItem = DirectCast(rgOpportunities.MasterTableView.GetItems(GridItemType.EditFormItem)(0), GridEditFormItem)
        
        Dim CustomerCombo As RadComboBox = DirectCast(editedItem.FindControl("rcbCustomerName"), RadComboBox)
        Dim ContactsCombo As RadComboBox = DirectCast(editedItem.FindControl("rcbContactName"), RadComboBox)
 
        If (CustomerCombo.DataSourceID IsNot Nothing) Then
            CustomerCombo.DataSourceID = String.Empty
        End If
        ContactsCombo.DataSource = LoadContacts(e.Value)
        'ContactsCombo.Items.Clear()
        ContactsCombo.OpenDropDownOnLoad() = True
        ContactsCombo.DataBind()
        If ContactsCombo.Items.Count > 0 Then
            Session("ContactID") = ContactsCombo.Items(0).Value
        Else
            Session("ContactID") = ""
        End If
 
 
    End Sub


--- > CustomerCombo and ContactsCombo Access the edit form and gets the RadComboBoxes and Works Fine in InsertMode
But in Edit Mode , Iam not able to Access The editform and get controls by this way or any other way !

Can anyone helps me in this Please ( Urgent ).
Mahmoud
Top achievements
Rank 1
 answered on 02 Feb 2012
1 answer
109 views
How to set colour for emptymessage and show the text in normal font?
Princy
Top achievements
Rank 2
 answered on 02 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?