Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
138 views
Hi I'm using RadEditor and the modal popup ImageManager.  I'm finding that the image manager is loading too far to the right.  Is there a way to set this so that when the image manager pops up it will be in the top left?

Thanks!
Devin
Rumen
Telerik team
 answered on 06 Apr 2011
10 answers
746 views
I've recently migrated one of my web forms from VS2005 and Telerik Q3 2008 to VS2010 and Telerik Q2 2010.  The form contains a RadMultiPage with (12) RadPageView objects.  I get the following error when I try to browse this web form.  I can build the page without any errors and can view the multipage\pageviews successfully in design view, so I'm not sure what causes this error.

Any assistance would be greatly appreciated.

RadPageViewCollection must contain RadPageView objects




Veronica
Telerik team
 answered on 06 Apr 2011
3 answers
86 views
I am inheriting RADtoolbar in my own class and its not working. Any advice ? Other controls like radgrid are working fine.
Veronica
Telerik team
 answered on 06 Apr 2011
3 answers
119 views
Is it possible to just enable sorting on the grid and then allow the users to sort the data in the grid, without having to add any code, behind the scenes? 
Princy
Top achievements
Rank 2
 answered on 06 Apr 2011
3 answers
146 views
I have a calendar that has EnableMultiSelect=true. The user is now able to select one or multiple dates on the calendar. On the server side I need to know the date that user clicks if he is selecting one at a time. Currently the selected date property seems to be good only for single selection mode. The selecteddates property for the multiselectionmode has all the selected dates which does not help me. I need to know the date the user clicked on when the calendar is in multiselection mode. The focused date does not seem to hold the correct value either.

Thanks,
Vithiya
Shinu
Top achievements
Rank 2
 answered on 06 Apr 2011
3 answers
124 views
Hi,

I want to use Scheduler for resource availability, The way I want to show the scheduler is
On header, I want to show dates and sub level number of hours for each day
On side, I want work orders followed by employers mapped to each work order


10/01/2010

11/01/2010

9am

12pm

3pm

9am

12pm

3pm

Work Order 1

Employee1







Employee2







Employee3







Work Order 2

Employee1







Employee5







Employee6








Can anyone suggest, is it possible, If so please explain how to do.

Thank you.
Veronica
Telerik team
 answered on 06 Apr 2011
3 answers
253 views
I'm trying to implement a RadGrid with a dropdownlist filter column much like the demos provided on this site. The only difference is when I databind the grid I get only a filtered page of data from the database. So I don't really need the dropdownlist to do any actual filtering of the grid, just trigger the rebind of the grid so it checks the filter values and gets an appropriate page of data from the database.

Here's my custom filter column:
public class FilteringByDropDownBoundColumn : GridBoundColumn
{
    private object listDataSource = null;
    private Unit filterControlWidth = Unit.Percentage(90); // default
    private string filterTextField = "Text";
    private string filterValueField = "Value";
    public string FilterTextField
    {
        get { return filterTextField; }
        set { filterTextField = value; }
    }
    public string FilterValueField
    {
        get { return filterValueField; }
        set { filterValueField = value; }
    }
    protected override void SetupFilterControls(TableCell cell)
    {
        base.SetupFilterControls(cell);
        Control oldFilter = cell.Controls[0];
        cell.Controls.RemoveAt(0);
        DropDownList list = new DropDownList();
        list.ID = "list" + DataField;
        list.AutoPostBack = true;
        list.SelectedIndexChanged += new EventHandler(list_SelectedIndexChanged);
        list.DataTextField = FilterTextField;
        list.DataValueField = FilterValueField;
        list.DataSource = ListDataSource;
        list.Width = FilterControlWidth;
        list.Height = Unit.Pixel(20);
        list.EnableViewState = true;
        list.Attributes.Add("style", "font-size:.9em");
        cell.Controls.AddAt(0, list);
        cell.Controls.RemoveAt(1);
    }
    void list_SelectedIndexChanged(object sender, EventArgs e)
    {
        GridFilteringItem filterItem = (sender as DropDownList).NamingContainer as GridFilteringItem;
        filterItem.FireCommandEvent("Filter", new Pair());
    }
    public new Unit FilterControlWidth
    {
        get
        {
            return (Unit)filterControlWidth;
        }
        set
        {
            filterControlWidth = value;
        }
    }
    public object ListDataSource
    {
        get { return listDataSource; }
        set { listDataSource = value; }
    }
    protected override void SetCurrentFilterValueToControl(TableCell cell)
    {
        base.SetCurrentFilterValueToControl(cell);
        DropDownList list = (DropDownList)cell.Controls[0];
        if (CurrentFilterValue != string.Empty)
        {
            list.SelectedValue = CurrentFilterValue;
        }
    }
    protected override string GetCurrentFilterValueFromControl(TableCell cell)
    {
        DropDownList list = (DropDownList)cell.Controls[0];
        return list.SelectedValue;
    }
    protected override string GetFilterDataField()
    {
        return FilterValueField;
    }

Here's my aspx code-behind:
protected override void OnInit(EventArgs e) 
    InitializeComponent(); 
    base.OnInit(e); 
private void InitializeComponent() 
    SetupTabs(); 
    SetupFilters(NeedsActionAccountsGrid); 
private void DataBindGrid(string view, RadGrid grid) 
    if (grid != null && !string.IsNullOrEmpty(view)) 
    
        QueueViewType viewType = (QueueViewType)(Enum.Parse(typeof(QueueViewType), view)); 
        Rep rep = LoggedInUser; 
        DateTime? LastModifiedBeginDate = null; 
        DateTime? LastModifiedEndDate = null; 
        DateCriteria.SetDate(ref LastModifiedBeginDate, ref LastModifiedEndDate, GetLastModifiedDateCriteria(grid)); 
        List<AccountQueueRecord> datasource = AccountQueueLogic.GetAccountsQueueItems(rep, 
                             viewType, 
                             LastModifiedBeginDate, 
                             LastModifiedEndDate, 
                             GetRegistrationTypeID(grid), 
                             grid.PageSize, 
                             grid.CurrentPageIndex); 
        grid.DataSource = datasource; 
        grid.DataBind(); 
    
private string GetRegistrationTypeID(RadGrid grid) 
    string RegistrationTypeID = null; 
    FilteringByDropDownBoundColumn col = grid.Columns.FindByDataFieldSafe("Registration") as FilteringByDropDownBoundColumn; 
    if (col != null && col.CurrentFilterValue != "All") 
        RegistrationTypeID = col.CurrentFilterValue; 
    return RegistrationTypeID; 
private void SetupFilters(RadGrid grid) 
    if (grid == null) 
        return; 
    LookupTypeService lookupService = new LookupTypeService(); 
    FilteringByDropDownBoundColumn col = grid.Columns.FindByDataFieldSafe("Registration") as FilteringByDropDownBoundColumn; 
    if (col != null) 
    
        List<RegistrationType> list = new List<RegistrationType>(); 
        list.Add(new RegistrationType() { Display = "All", Code = "All" }); 
        list.AddRange(lookupService.GetAllEnabled(LookupTypeEnum.RegistrationType).Cast<RegistrationType>().ToList()); 
        col.ListDataSource = list; 
        col.FilterTextField = "Display"; 
        col.FilterValueField = "Code"; 
    
protected void GridAccountQueue_ItemCommand(object source, GridCommandEventArgs e) 
    if (e.CommandName == RadGrid.FilterCommandName) 
    
        e.Canceled = true; 
        RadGrid grid = (RadGrid)source; 
        grid.MasterTableView.FilterExpression = ""; // clear this since we're providing a filtered datasource 
        string viewID = ""; 
        string gridID = grid.ID; 
        switch (gridID) 
        
            case "NeedsActionAccountsGrid": 
            case "NeedsActionProposalsGrid": 
                viewID = NeedsActionTabs.SelectedTab.SelectedTab.Value; // go to second level of tabs 
                break; 
        
        DataBindGrid(viewID, grid); 
    

And here's my grid declaration:
                    <telerik:RadGrid ID="NeedsActionAccountsGrid" runat="server" OnItemCommand = "GridAccountQueue_ItemCommand"
                        OnSortCommand="GridAccountQueue_SortCommand"
OnPageSizeChanged="GridAccountQueue_PageSizeChanged" 
                        OnPageIndexChanged="GridAccountQueue_PageIndexChanged"
                        AutoGenerateColumns="false" PageSize="10" ShowStatusBar="true" AllowSorting="true"
                        AllowPaging="true" AllowCustomPaging="true" Skin="Simple" AllowFilteringByColumn="true">
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"/>
                        <StatusBarSettings LoadingText="Loading..." />
                        <MasterTableView HeaderStyle-BackColor="Gray" HeaderStyle-ForeColor="White" EnableColumnsViewState="true" TableLayout="Auto">
                            <SortExpressions>
                                <telerik:GridSortExpression FieldName="LastModified" SortOrder="Descending" />
                            </SortExpressions>                  
                            <Columns>
                                <telerik:GridHyperLinkColumn AllowFiltering="false" HeaderText="AC ID" DataTextField="AccountID" DataNavigateUrlFields="AccountID" DataNavigateUrlFormatString="/Administratin/AccountSummary.aspx?id={0}" HeaderStyle-Width="5%" ItemStyle-Width="5%" ItemStyle-CssClass="AccountLink" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridHyperLinkColumn>
                                <custom:FilteringByDropDownBoundColumn HeaderText="Rep code" DataField="RepCode" HeaderStyle-Width="6%" ItemStyle-Width="6%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></custom:FilteringByDropDownBoundColumn>
                                <custom:FilteringByDropDownBoundColumn HeaderText="Registration" HeaderAbbr="Reg." DataField="Registration" HeaderStyle-Width="10%" ItemStyle-Width="10%"></custom:FilteringByDropDownBoundColumn>
                                <custom:FilteringByDropDownBoundColumn HeaderText="Platform" DataField="Platform" HeaderStyle-Width="12%" ItemStyle-Width="12%"></custom:FilteringByDropDownBoundColumn>
                                <custom:FilteringByDropDownBoundColumn HeaderText="Product Type" HeaderAbbr="Prod. Type" DataField="ProductType" HeaderStyle-Width="12%" ItemStyle-Width="12%"></custom:FilteringByDropDownBoundColumn>
                                <telerik:GridBoundColumn HeaderText="Account Holders" HeaderAbbr="Acct. Holders" DataField="AccountHolders" FilterControlWidth="90%" AutoPostBackOnFilter="false"></telerik:GridBoundColumn>
                                <custom:FilteringByDropDownBoundColumn HeaderText="Last Modified" HeaderAbbr="Last Mod." DataField="LastModified"  DataFormatString="{0:M/dd/yyyy h:mm tt}" HeaderStyle-Width="13%" ItemStyle-Width="13%"></custom:FilteringByDropDownBoundColumn>
                                <telerik:GridBoundColumn AllowFiltering="false" HeaderText="Status" DataField="Status" HeaderStyle-Width="15%" ItemStyle-Width="15%"  ></telerik:GridBoundColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton"  HeaderText="Notes" HeaderStyle-Width="4%" ItemStyle-Width="4%" ImageUrl="../Images/grid/icon_attachment.gif" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Docs" HeaderStyle-Width="4%" ItemStyle-Width="4%" ImageUrl="../Images/grid/icon_attachment.gif" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridButtonColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings>
                            <Resizing AllowColumnResize="true" />
                        </ClientSettings>
                    </telerik:RadGrid>

A couple things are happening. CurrentFilterValue is never set. I'm assuming because I call e.Canceled = true. The dropdownlists also are not saving the user selection on postbacks (also because I cancel the event?)

Any ideas?

Chris
Mira
Telerik team
 answered on 06 Apr 2011
1 answer
103 views
Hi,

Is there any way to increase the width of the drop dwon box poulated, because the the style names render are not fully visible to the users. Please see the attached image for more details.

Also want to customize the editor to have only selective icons/buttons int it.

Thanks & Regards,
Jagadish
Stanimir
Telerik team
 answered on 06 Apr 2011
1 answer
171 views

Greetings,

How i can get SelectedItemIndex in listview to client-side?

Regards,

Vasil
Telerik team
 answered on 06 Apr 2011
5 answers
886 views
Hi,

I want particular index item values in radcombobox in client side. in code behind we have get easily like ddlCountyName.Items(1).Text but how to get the same in client side.

Please give me a tips for this one.


Thanks,
Dhamu.
Shinu
Top achievements
Rank 2
 answered on 06 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?