Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
298 views
Hi,
I have a question about tool tip in RadUpload. After selecting a file and putting mouse over a text box, a tool tip with file name is displayed. I'd like to change this text(text should be dependent on selected file name ) or disabled this functionality. Is it possible ?
Genady Sergeev
Telerik team
 answered on 06 Jul 2010
1 answer
127 views
Hi ALL,

I'm probably missing something obvious, but I can't spot it. I have a structure like:

public class Room 
{ 
    public string Name { get; set; } 
    public List<Resource> Resources { get; set; } 
} 

public class Resource
{
public int Id { get; set; }
public string Name { get; set; }
}

I need to build a RadGrid with edit capabilities for a List<Room>, where that Resources property can be edited as a databound populated CheckBoxList. What event should I use to bind that CheckBoxList to my datasource and define those selected values?

TIA,

Rubens
Veli
Telerik team
 answered on 06 Jul 2010
5 answers
516 views
Hi,
I have a RadDateTimePicker.. I want to edit date format in it.. And I am editing it like the code below;
 <telerik:RadDateTimePicker  AutoPostBackControl="Both" ID="RadTimePicker1" runat="server"> 
                        <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy"></DateInput>  
                        <TimePopupButton Visible="false" /> 
                 </telerik:RadDateTimePicker> 

When my dateformat is "dd/MM/yyyy" (like the code above) it is still showing time part...
But when I change dateformat and displaydateformat to "MM/dd/yyyy" it hides the time part... It works fine..

But I want to use "dd/MM/yyyy"..

Help please?



Tristan
Top achievements
Rank 1
 answered on 06 Jul 2010
5 answers
154 views

Hi,
I am using ASP.Net RadControls -Q1 2010 for development.
I am using ColumnFilteringColumn class for filtering.
This working fine without paging, if I select any filtering and click on paging then this displays all record without filtering but just keep selection no actual filtering.

Please suggest any modification for below class for filtering.

public class CustomFilteringColumn : GridTemplateColumn  
    {  
        private GridKnownFunction gridKnownFunction;  
        /// <summary>  
        /// Get Set Filter Function  
        /// Predefined filter expression enumaration. Used by CustomFilteringColumn class.  
        /// </summary>  
        public GridKnownFunction FilterFunction  
        {  
            get { return gridKnownFunction; }  
            set { gridKnownFunction = value; }  
        }  
        private String uniqueId;  
        public String UniqueId  
        {  
            get { return uniqueId; }  
            set { uniqueId = value; }  
        }  
 
        public CustomFilteringColumn()  
        {  
            //  
            // TODO: Add constructor logic here  
            //  
        }  
        public DataTable GetDataTable(string strHeaderText)  
        {  
               return new DataTable();//external source...here  
        }  
 
        protected override void SetupFilterControls(TableCell cell)  
        {  
            base.SetupFilterControls(cell);  
            Object obj = cell.Controls[0];  
            cell.Controls.RemoveAt(0);  
            RadComboBox list = new RadComboBox();  
            list.ID = "list" + this.DataField;  
            list.Width = Unit.Percentage(100);  
            list.AutoPostBack = true;  
 
            list.ValidationGroup = this.CurrentFilterFunction.ToString();  
            list.SelectedIndexChanged += rcBox_SelectedIndexChanged;  
 
            DataTable table = GetDataTable(this.DataField);  
            DataRow row = table.NewRow();  
            row[this.DataField] = "All";  
            table.Rows.InsertAt(row, 0);  
            list.DataSource = table;  
            cell.Controls.AddAt(0, list);  
            cell.Controls.RemoveAt(1);  
            list.DataTextField = this.DataField;  
            list.DataValueField = this.DataField;  
        }  
        protected override void SetCurrentFilterValueToControl(TableCell cell)  
        {  
            base.SetCurrentFilterValueToControl(cell);  
            RadComboBox list = (RadComboBox)cell.Controls[0];  
            list.Items[0].Value = Resources.GeneralMessages.DefaultValue;  
            if (this.CurrentFilterValue != string.Empty)  
            {  
                list.SelectedValue = this.CurrentFilterValue;  
 
                //GridFilteringItem filterItem = list.NamingContainer as GridFilteringItem;  
                //filterItem.FireCommandEvent("Filter", new Pair(gridKnownFunction.ToString(), this.UniqueName));  
                rcBox_SelectedIndexChanged(list, new RadComboBoxSelectedIndexChangedEventArgs("", "", "", ""));  
            }  
        }  
 
        protected override string GetCurrentFilterValueFromControl(TableCell cell)  
        {  
            RadComboBox list = (RadComboBox)cell.Controls[0];  
            if (list.SelectedValue == Resources.GeneralMessages.DefaultValue)  
                return String.Empty;  
            return list.SelectedValue;  
        }  
 
        private void rcBox_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)  
        {  
            GridFilteringItem filterItem = (sender as RadComboBox).NamingContainer as GridFilteringItem;  
            filterItem.FireCommandEvent("Filter", new Pair(gridKnownFunction.ToString(), this.UniqueName));  
 
        }  
 
    } 


<%@ Register TagPrefix="custom" Namespace="FilteringTemplateColumns" %> 
 
-----------------------------  
<custom:CustomFilteringColumn DataField="strCustomerTypeDefault" SortExpression="strCustomerTypeDefault" 
                                                                    HeaderText="Customer Type" FilterFunction="Contains" UniqueName="strCustomerTypeDefault">  
                                                                    <ItemTemplate> 
                                                                        <%# Eval("strCustomerTypeDefault")%> 
                                                                    </ItemTemplate> 
                                                                </custom:CustomFilteringColumn> 

Thanks in advance,
Naresh Goradara

Thanks in advance,Naresh Goradara
Pavlina
Telerik team
 answered on 06 Jul 2010
1 answer
159 views
Hi,
I want to know that can i change the Font Sytle (Bold or Italic) or the size of font etc for some special folders. I know we can assign attributes to each folder that are created through directory object, But what i want is that all the folders with the attribute "folderType" set to the value "Shortcut". Their text should be eight italic or bold or their font color could be changed?
while all other folders should be displayed with normal text.
or If you have any other good option suggest me that option.

reply me ASAP.

Regards,
Samee Javaid
Fiko
Telerik team
 answered on 06 Jul 2010
0 answers
184 views
Problem: The recurrence editing controls will break if you're using custom advanced templates based on the examples from the 2010 Q1 release or earlier. See the attached screenshot.

Reason: The recurrence editing part of the advanced form is now implemented as a separate control. It has separate skins and scripts from RadScheduler.

Solution: Update the advanced form template to use the RadSchedulerRecurrenceEditor control as in the example. You need to update AdvancedForm.js to the latest version as well.

Workaround:
Step 1: Register the RadSchedulerRecurrenceEditor skins manually:
<telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1"> 
    <StyleSheets> 
        <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.SchedulerRecurrenceEditor.css" /> 
        <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Vista.SchedulerRecurrenceEditor.Vista.css" /> 
    </StyleSheets> 
</telerik:RadStyleSheetManager> 
 

Step 2: In AdvancedFormVB/CS.ascx locate RecurrencePanel and add RecurrenceEditor CSS class:
<asp:Panel runat="server" ID="RecurrencePanel" Style="display: none;" CssClass="rsAdvRecurrencePanel RecurrenceEditor"> 


Telerik Admin
Top achievements
Rank 1
Iron
 asked on 06 Jul 2010
2 answers
124 views
I'm trying to change the RadGrid column header tooltip with the following code snipet:

 

protected void grdDetail_PreRender(object sender, EventArgs e)

 

{

 

GridHeaderItem header = (GridHeaderItem)grdDetail.MasterTableView.GetItems(GridItemType.Header)[0];

 

header[

"CatHMO"].ToolTip = "Custom Tooltip";

 

}


When I hover over the column header it still says "Click here to sort". What am I doing wrong.

Thanks
Richard
Top achievements
Rank 1
 answered on 06 Jul 2010
1 answer
111 views
Hi,

We have been using the RadEditor for a while now and several of our clients have reported quite a few issues with the way that the editor works. We have recently upgraded to the latest version, hoping that these issues would have been resolved. However, there are still several issues that we have found:
  • I pasted some text into the editor, part of which was in a bulleted list and had bold text. I tried to remove the bullet point and remove the bold formatting but neither of these worked. So there was no way to remove the bullet point and I was stuck with bold text where it wasn't wanted. I decided to leave the bullet in so I saved the page that I was editing and this took me back to a different page. When I went back onto that page, all formatting was gone (the text was no longer bold and there was no bullet point). I tried again to put the bullet point in and save the content but once again, when I went back to the page, the formatting was gone.
  • I have also tried other formatting such as underlining text but this formatting is also lost.
  • After pasting text, backspace does not work unless the 'Enter' key is pressed first.

I hope someone can offer some help on this as, so far, we are a bit disappointed with the new editor.
Rumen
Telerik team
 answered on 06 Jul 2010
1 answer
170 views
Hi,
    in my application, i have used url rewriting(Seo friendly url) ,
in one my aspx page i am using radgrid with EnableSeoPaging true. when i set EnableSEOPaging false then paging is working fine.
when i set EnableSEOpaging true then radgrid paging does not work while in url querystring appned with page no.
like this
http://localhost:53500/alabama/alabaster?ctl00_MainContent_BusinessList1_RadGridListingChangePage=2

but page index of radgrid does not change only 1st page of data show in radgrid.
I also want url shoul look like,
http://localhost:53500/alabama/alabaster/2
how to handle these things
i did not analyze why paging does not work when i set EnableSEOPaging true.

 

<telerik:RadGrid ID="RadGridListing" runat="server" AutoGenerateColumns="false" ShowHeader="false"

 

 

BorderWidth="0" AlternatingItemStyle-BackColor="White" ItemStyle-BackColor="White"

 

 

OnNeedDataSource="RadGridListing_NeedDataSource" GridLines="None" ItemStyle-BorderStyle="None"

 

 

AlternatingItemStyle-BorderStyle="None" Skin="Vista" AllowPaging="true" PageSize="5"

 

 

PagerStyle-Mode="NextPrevAndNumeric" PagerStyle-BackColor="#F3F4F3"

 

OnItemCreated

 

="RadGridListing_ItemCreated">

 

 

 

 

 

 

 

<PagerStyle EnableSEOPaging="true"/>

 

 

<MasterTableView DataKeyNames="UserId" AllowPaging="true">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

 

<div style="vertical-align: top">

 

 

<asp:HyperLink ID="HypPracticeName" runat="server" Text='<%#bind("PracticeName")%>'

 

 

ForeColor="#0A0A0A" Font-Bold="true" Font-Size="12px">

 

 

</asp:HyperLink>

 

 

</div>

 

 

<div>

 

 

<asp:Label ID="LblAddress" runat="server" Text='<%#Bind("StreetName") %>' Font-Size="12px"></asp:Label></div>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 


in aspx.cs page

 

protected void RadGridListing_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

 

{

 

 

 

TList<BusinessUsers> objUsers = DataRepository.BusinessUsersProvider.GetByCityId(this.CityId);

 

objUsers.Sort(

"UserId asc");

 

 

if (objUsers.Count > 0)

 

RadGridListing.DataSource = objUsers;

}

 

 

 

 

 

protected void RadGridListing_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridDataItem)

 

{

 

long UserId = long.Parse(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["UserId"].ToString());

 

 

TList<BusinessPerCity> objPerCity = DataRepository.BusinessPerCityProvider.GetByCityId(this.CityId);

 

objPerCity.Filter =

"IsFeatured = True";

 

objPerCity.ApplyFilter();

objPerCity.Sort(

"UserId asc");
//here is my business logic

 

}

}






Veli
Telerik team
 answered on 06 Jul 2010
2 answers
98 views
Hello Telerik people,

I had a question about if its possible to fire the browse event of the radupload with a dedicated button.

<asp:ScriptManager ID="ScriptManager" runat="server" /> 
 
<telerik:RadUpload ID="CVUpload" runat="server" MaxFileInputsCount="1" ControlObjectsVisibility="None" /> 
 
<script type="text/javascript">  
    var a = getRadUpload("<%= CVUpload.ClientID %>");   // this is null  
    var b = $find("<%= CVUpload.ClientID %>");   // this is null  
</script> 

Found a bit code on this site but here it only returns null.

Greetings,
Jeroen Speldekamp
Suneco
Top achievements
Rank 2
 answered on 06 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?