Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
121 views
Hi there

I am having problems with the tabstrip and wondered if anyone can help.

Basically the problem is when the tabstrip loads it displays all of the pages content - I have 4 pageviews - rather than just the selected tab.

When I have clicked all of the of the 4 tabs then the pages display properly.

I believe the issue is related to themes as we are using masterpages. When I try the same code on a non-master page aspx then it works fine,

It is a strange one as we have a couple of other sites that use exactly them same mechanism and they all work spot on. We have made substantail use of the tabstrip before and have never encountered this.

Can anybody point me a where the issue may lay as I have tried just about everything I can. As a said I think it is a setup issue rather than coding but cannot get to the bottom of it.

Any help greatly appreciated.
Kate
Telerik team
 answered on 16 Jan 2012
1 answer
127 views

Hi

I have used the following code for a while but after updating to 2011.3 from 2011.2.Sp1
The combox is not displaying the dropdown when clicked. Have reproduces the issue in a simple standalone webform and it seems as if the child controls (asp:DropDownList) is causing the issue somehow?

Any ideas about how I can fix this?

Thanks in advance
Johan

EDIT:
Updating to 2011 Q3 SP1 solved it. Dont know what caused it but it works after the service pack

<telerik:RadComboBox ID="rcbxChartSerie" runat="server" DropDownWidth="240px" Height="200px"
    SkinID="radComboBox" Width="150px" CollapseDelay="1000">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="Serie X" Value="_header" />
    </Items>
    <CollapseAnimation Duration="1500" Type="OutQuint"></CollapseAnimation>
    <ExpandAnimation Duration="350" Type="OutQuint"></ExpandAnimation>
    <ItemTemplate>
        <div onclick="event.cancelBubble=true" style="padding: 8px 3px 3px 8px;">
            <div>
                <asp:Label ID="lblEnabled" runat="server" Text="Enabled" />
            </div>
            <div>
                <asp:DropDownList ID="ddlEnabled" runat="server" Width="200px" Enabled="false" />
            </div>
            <div style="margin-top: 8px;">
                <asp:Label ID="lblColumn" runat="server" Text="Column" />
            </div>
            <div>
                <asp:DropDownList ID="ddlColumn" runat="server" Width="200px" Enabled="false" />
            </div>
            <div style="margin-top: 8px;">
                <asp:Label ID="lblType" runat="server" Text="Type" /></div>
            <div>
                <asp:DropDownList ID="ddlType" runat="server" Width="200px" Enabled="false" />
            </div>
            <div style="margin-top: 8px;">
                <asp:Label ID="lblYAxis" runat="server" Text="Y Axis" />
            </div>
            <div>
                <asp:DropDownList ID="ddlAxis" runat="server" Width="200px" Enabled="false" />
            </div>
        </div>
    </ItemTemplate>
</telerik:RadComboBox>        
Helen
Telerik team
 answered on 16 Jan 2012
1 answer
58 views
Hi i have this page for my college project...
tour.timemites.com
user id-admin
password-123

transaction->new booking
when we click on grids add hotel...its takes way too long to load...i have other forms too..but this page is the only one with 4 grids

& the add & edit forms are usercontrol forms

Any idea..wat cud be the issue??

Regards
Asma


Princy
Top achievements
Rank 2
 answered on 16 Jan 2012
3 answers
103 views
I'm specifically talking about the editor used hwere in these forums.

If you set a target for the hyperlink, it is not saved.

This Jing video will demonstate what I mean.

--
Stuart
Rumen
Telerik team
 answered on 16 Jan 2012
4 answers
111 views
Hello,

I am using the AsyncUpload control on a site and we have to make the site ADA compliant. Is there a way to make this control keyboard friendly? Using Access Keys or being able to opening to select file popup with with space bar or enter key?

Thank you,
Chris Marfia
Peter Filipov
Telerik team
 answered on 16 Jan 2012
2 answers
632 views
Hello!

I'm not sure how to filter correctly RadGrid using FilterTemplates and RadButton which selects values from filters to create filtering expression. I'll explain more in the text below.

This is my RadGrid layout:

<telerik:RadGrid ID="gvDaily" runat="server" AllowPaging="True" PageSize="30" AllowSorting="True"
    EnableLinqExpressions="false" AllowFilteringByColumn="true" AutoGenerateColumns="False"
    CellSpacing="0" GridLines="None" OnNeedDataSource="gvDaily_NeedDataSource" Skin="Hay"
    OnItemDataBound="gvDaily_ItemDataBound" OnInsertCommand="gvDaily_InsertCommand"
    OnItemCommand="gvDaily_ItemCommand" OnUpdateCommand="gvDaily_UpdateCommand" OnPreRender="gvDaily_PreRender">
    <MasterTableView DataKeyNames="idDaily" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage"
        Caption="Activity" TableLayout="Fixed">
        <CommandItemSettings ShowAddNewRecordButton="true" AddNewRecordText="Dodaj novi activity" />
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumnTicket" HeaderStyle-Width="50px">
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn UniqueName="Manager" HeaderText="Manager" DataField="DailyManager"
                HeaderStyle-Width="150px" ShowFilterIcon="false" AutoPostBackOnFilter="false">
                <FilterTemplate>
                    <telerik:RadComboBox ID="rcbManagerDailyFilter" runat="server" AppendDataBoundItems="true"
                        OnSelectedIndexChanged="rcbManagerDailyFilter_SelectedIndexChanged" MarkFirstMatch="true"
                        AutoPostBack="false" Width="130px" Skin="Hay">
                    </telerik:RadComboBox>
                </FilterTemplate>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Datum" HeaderText="Datum" UniqueName="Datum"
                DataFormatString="{0:dd.MM.yyyy.}" AutoPostBackOnFilter="true" HeaderStyle-Width="200px">
                <FilterTemplate>
                    <telerik:RadDatePicker ID="txtDatumPrijaveDailyOdFilter" runat="server" Culture="hr-HR"
                        Width="80px" Skin="Hay">
                    </telerik:RadDatePicker>
                    -
                    <telerik:RadDatePicker ID="txtDatumPrijaveDailyDoFilter" runat="server" Culture="hr-HR"
                        Width="80px" Skin="Hay">
                    </telerik:RadDatePicker>
                </FilterTemplate>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Vrijeme" HeaderText="Vrijeme obavljanja" DataField="Vrijeme"
                HeaderStyle-Width="120px" AllowFiltering="false">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="TicketNumber" HeaderText="Broj incidenta"
                DataField="TicketNumber" HeaderStyle-Width="60px" FilterControlWidth="40px" AutoPostBackOnFilter="false"
                ShowFilterIcon="false" CurrentFilterFunction="Contains">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TicketNumber") %>'>
                    </asp:Label>
                    <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label1" Width="150px"
                        RelativeTo="Element" Position="MiddleRight" EnableShadow="false">
                        <%# DataBinder.Eval(Container, "DataItem.TicketOpis") %>
                    </telerik:RadToolTip>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn UniqueName="Tvrtka" DataField="Tvrtka" HeaderText="Tvrtka"
                CurrentFilterFunction="Contains" AutoPostBackOnFilter="false" HeaderStyle-Width="200px">
                <FilterTemplate>
                    <telerik:RadComboBox ID="rcbTvrtkaDailyFilter" runat="server" AppendDataBoundItems="true"
                        OnSelectedIndexChanged="rcbTvrtkaDailyFilter_SelectedIndexChanged" AutoPostBack="false"
                        MarkFirstMatch="true" Width="180px" Skin="Hay">
                    </telerik:RadComboBox>
                </FilterTemplate>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Opis" HeaderText="Opis" DataField="Opis" HeaderStyle-Width="300px"
                AllowFiltering="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="EfektivnoSati" HeaderText="Efektivno sati" DataField="EfektivnoSati"
                HeaderStyle-Width="60px" AllowFiltering="false">
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn UniqueName="Dolazak" HeaderText="Dolazak" DataField="Dolazak"
                HeaderStyle-Width="120px">
                <FilterTemplate>
                    <asp:RadioButtonList ID="rblDolazakFilter" runat="server" RepeatDirection="Vertical"
                        RepeatLayout="Flow">
                        <asp:ListItem>Dolazak</asp:ListItem>
                        <asp:ListItem>Nije dolazak</asp:ListItem>
                        <asp:ListItem>Sve</asp:ListItem>
                    </asp:RadioButtonList>
                </FilterTemplate>
            </telerik:GridCheckBoxColumn>
            <telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"
                ConfirmDialogType="RadWindow" ConfirmText="Brisanje activityja!" HeaderStyle-Width="60px">
            </telerik:GridButtonColumn>
            <telerik:GridTemplateColumn UniqueName="FilterColumn" AllowFiltering="False" HeaderStyle-Width="70px">
                <HeaderTemplate>
                    <telerik:RadButton ID="btnFilter" runat="server" Text="Filter" Skin="Hay" CommandName="FilterAll">
                    </telerik:RadButton>
                </HeaderTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
        <EditFormSettings UserControlName="UserControls/DailyUserControl.ascx" EditFormType="WebUserControl">
            <EditColumn UniqueName="EditCommandColumn2">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

NeedDataSource event:

protected void gvDaily_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
 
            var dailyList = (from d in db.Daily
                             select d).ToList();
 
            gvDaily.DataSource = (from d in dailyList
                                  orderby d.Datum descending
                                  select new { d.idDaily, d.Biljeske, d.Datum, d.EfektivnoSati, Tvrtka = d.Ticket.Firma.Naziv, DailyManager = d.Kontakt.Ime + " " + d.Kontakt.Prezime, Ticket = d.Ticket.Opis, Vrijeme = d.VrijemeOd + "-" + d.VrijemeDo, d.VrijemeDo, d.VrijemeOd, d.Opis, d.Ticket.Zatvoren, d.Ticket.IzdanRacun, TicketNumber = d.Ticket.idNadredeniTicket + "-" + d.Ticket.RedniBroj, d.Dolazak, TicketOpis = d.Ticket.Opis }).ToList();
        }


This is the ItemCommand inside RadGrid ItemCommand event used for filtering, but it doesn't work properly. When I try to execute filtering separately (for example, when I'm filtering only "rcbManagerDailyFilter" or only "rcbTvrtkaDailyFilter") it works perfectly, but when I try to filter RadGrid using multiple filters only get my RadGrid filtered by one of those filters). Also, I'm not sure how to properly filter using RadDatePicker control.

else if (e.CommandName == "FilterAll")
{
    GridFilteringItem item = gvDaily.MasterTableView.GetItems(GridItemType.FilteringItem)[0] as GridFilteringItem;
 
    RadComboBox rcbManagerDailyFilter = (RadComboBox)item.FindControl("rcbManagerDailyFilter");
    RadComboBox rcbTvrtkaDailyFilter = (RadComboBox)item.FindControl("rcbTvrtkaDailyFilter");
    RadDatePicker txtDatumPrijaveDailyOdFilter = (RadDatePicker)item.FindControl("txtDatumPrijaveDailyOdFilter");
    RadDatePicker txtDatumPrijaveDailyDoFilter = (RadDatePicker)item.FindControl("txtDatumPrijaveDailyDoFilter");
    RadioButtonList rblDolazakFilter = (RadioButtonList)item.FindControl("rblDolazakFilter");
 
    string tvrtka = rcbTvrtkaDailyFilter.SelectedItem.Text;
    string manager = rcbManagerDailyFilter.SelectedItem.Text;
    string datumPrijaveOd = (txtDatumPrijaveDailyOdFilter.SelectedDate).ToString();
    string datumPrijaveDo = (txtDatumPrijaveDailyDoFilter.SelectedDate).ToString();
 
    string expression = "";
 
    if (tvrtka != "Odaberi tvrtku")
    {
        expression += "([Tvrtka] = '" + tvrtka + "')";
    }
 
    if (manager != "Odaberi managera")
    {
        expression += " AND ";
        expression += "([DailyManager] = '" + manager + "')";
    }
 
    if (datumPrijaveOd.Length != 0)
    {
        expression += " AND ";
        expression += "([Datum] >= '" + datumPrijaveOd + "')";
    }
 
    if (datumPrijaveDo.Length != 0)
    {
        expression += " AND ";
        expression += "([Datum] = '" + datumPrijaveDo + "')";
    }
 
 
    gvDaily.MasterTableView.FilterExpression = expression;
    gvDaily.Rebind();
}

EDIT: It seems like code is ok, but the problem is that values are lost on postback. Any help on how to fix it would be appreciated.

Regards,

Hrvoje
Hrvach
Top achievements
Rank 1
 answered on 16 Jan 2012
1 answer
156 views
dear All,
i hope you are doing well...
i using RAD CHART control from the attached picture (database table) , i want to make chart like the attached picture (project-schedule.gif)

i want to be the x axis is Date from tha table (from minimum date to maximum date)
and the y axis is Type

note for every type have date from and date to (i want these value to be as line between the 2 values) as shown in the chart picture.

help me please ASAP.

Best Regards.


Yavor
Telerik team
 answered on 16 Jan 2012
1 answer
89 views
Hi!

I wonder if theres a way to get all contextmenus in the editor?
Ive seen a demo where you can get a contextmenu by tagname. But I need all context menus.

I have users that can insert articles (some html) generated from RSS into the editor via a custom dialog.

I want to catch the contextmenu clicks within my rssarticle html tag. And change the normal contextmenu for an image to a context menu for the rss article with items like "Edit", "Remove". And I dont want to hard code to override contextmenus A,P,H1,TD etc. I must override all contextmenus within an article.

Is there a way to find out if a contextmenu clicks originates from within another tag?
Rumen
Telerik team
 answered on 16 Jan 2012
3 answers
223 views
When I try to make a BAR chart , I get an error message The type of column with name ... is not numeric. The data source for the chart is retrieved from SQL 2005 using this query:

SELECT DepartmentName, COUNT(*) AS departmentSummary FROM DimEmployee GROUP BY DepartmentName

which give me 2 coloums - one contains department name, one contains the number of employee in department name (please see attach image).





Ves
Telerik team
 answered on 16 Jan 2012
2 answers
122 views
Is it possible to change the Yvalue of a chart series item using a javascript funtion?

I have a pie chart that is displaying two values, i would like a value to change on the chart when the contents of a corresponding input box is changed. ie two input boxes determine the values displayed on the pie chart.

I think this can be done with C# in the code behind, but i don't know C# very well and as the page needs to be loaded into the sitefinity CMS i would like  to get pie chart and input boxes to work in a page with just html and javascript.

can it be done?

Any advice greatly appreciated.
Evgenia
Telerik team
 answered on 16 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?