Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
60 views
I've read and tried to emulate the tutorials but for the life of me it doesn't seem to be working... I'd be very grateful if someone could point me in the right direction.

I'd like to style the drop down content of my comboboxes, mainly to give me a larger target when using touch in a browser, i.e: larger font and cell size if that needs to be set independantly.  Can someone give me a Reader's Digest version of the necessary CSS selectors?
I'm using the default skin btw.


Much obliged for any assistance.

Paul

EDIT:

Solved it by adding " !important " to my CSS
Paul
Top achievements
Rank 1
Iron
 answered on 12 Nov 2012
4 answers
59 views

I have this column in a grid:
<telerik:GridDateTimeColumn DataField="empfangen" HeaderText="Empfangen" SortExpression="empfangen" UniqueName="empfangen" DataType="System.DateTime" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="True" />
and i must disable the filtering calendar -> AllowFiltering="False" with Formdecorator turned on and using IE8.
(no problem with IE7 or 9 or FF)
Error is Javascript error on line 276 of RadFormDecorator.js -> 'r.height=n+"px";'

Versioninfo: Telerik.Web.UI, v.2012.3.1016.40 (Dev) [Download]   (UI Language mostly German)

does any other out there have this problem? is it possible to turn of filter for IE8 only?

regards Marcel

Marin Bratanov
Telerik team
 answered on 12 Nov 2012
3 answers
85 views
I have a radgrid with a webusercontrol as the form.. in that form, there is another radgrid with yet another webusercontrol as the form... when i go into edit mode in that one, I want to make the (update/cancel) buttons disappear from the first one... How can I do this?

https://www.evernote.com/shard/s9/sh/da95d18c-b3ac-4e2b-89b4-17f9e91951d6/fa7c7ca22fdc41ec37bda2d9816211d5/res/bcfe8a11-1275-4510-9756-dbf32ee22dcf/skitch.png
Angel Petrov
Telerik team
 answered on 12 Nov 2012
2 answers
96 views
Hello everyone!
     I have a problem. When I use RadGrid in UpdatePannel, It performance some unexpect exception.
     e.g, When the grid runs "SortCommand", the "SortOrder" can not be change (e.NewSortOrder=Ascending{1}). I click the sort button in header again and again it still keep ascending order.
<asp:UpdatePanel ID="upnlLeaveHistory" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
   ………………
   <telerik:RadGrid ID="rgLeaveHistory" runat="server">
        <MasterTableView>
            <Columns>
               <telerik:GridTemplateColumn DataField="Remarks">
                    <HeaderTemplate>
                        <asp:LinkButton ID="HeaderRgLeaveHistory_Remarks" CommandName="Sort" CommandArgument="Remarks" Text=“Remarks” runat="server"/>
                     </HeaderTemplate>
                     <ItemTemplate>
                          <asp:Label ID="lblItemRgLeaveHistory_Remarks" runat="server" Text='<%#Eval("Remarks")%>' />
                      </ItemTemplate>
                 </telerik:GridTemplateColumn>
               </Columns>
          </MasterTableView>
        <FilterMenu EnableImageSprites="False"></FilterMenu>
     </telerik:RadGrid>
 
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="btnAction"/>
        <asp:PostBackTrigger ControlID="ddlLeaveYear"/>
    </Triggers>                  
</asp:UpdatePanel>


    How could I deal with it? Thanks~!
Angel Petrov
Telerik team
 answered on 12 Nov 2012
7 answers
124 views
I am adding custom attributes server side and then using them for some basic client side logic. 

I am then accessing them on post-back on the server as well. Is there a way to prevent client side setAttribute? Attributes be accessed via setAttribute and be over written, right? Can I prevent this?

Thanks, Marty
Kalina
Telerik team
 answered on 12 Nov 2012
20 answers
1.3K+ views
Hi,
I am using a Rad combo box with properties
EnableLoadOnDemand ="true"  
OnItemsRequested="ddlCode_ItemsRequested" 
OnSelectedIndexChanged ="ddlCode_SelectedIndexChanged"
MarkFirstMatch="false"
But if I enter a text which is existing in the combo list and press on enter it will not go to selectedIndexChanged event. 

My requirement is if i enter the text and perss on enter key it should go to the selected indexchaned event. and the entered text item should get selected in the combo box.

In the below url i have seen a example when on client key press if "enter Key" is found they invoke serverside button postback event.
  http://www.telerik.com/community/forums/aspnet-ajax/combobox/keypress-event-of-radcombo-box.aspx

How we can achieve this for dropdown enter Key press event. to invoke selectedIndex changed event?

thanks
Siva Kumar KB
Kalina
Telerik team
 answered on 12 Nov 2012
2 answers
135 views

Hi all,

I'm having a problem with PageViewCreated either not firing at all or firing too often.  My markup is this:

<telerik:RadTabStrip ID="rtsReturns" runat="server" MultiPageID="rmpReturns" OnTabClick="rtsReturns_TabClick">
     <Tabs>
         <telerik:RadTab runat="server" Text="Current Returns" Value="Current"></telerik:RadTab>
     </Tabs>
 </telerik:RadTabStrip>
  <telerik:RadMultiPage id="rmpReturns" runat="server" SelectedIndex="0" Width="400">
   <telerik:RadPageView id="pgvwCurrent" runat="server">
       <h1>This is where the current returns will go</h1>
   </telerik:RadPageView>
 </telerik:RadMultiPage>

And my codebehind is:

protected void Page_PreRender(object sender, EventArgs e)
{
  if (!IsPostBack)
  {
    foreach (TrustTaxReturnGroup ttrg in Ctl.FormerTTRGs)
    {
      RadTab tab1 = new RadTab(ttrg.StartDate.ToString());
      tab1.Value = ttrg.StartDate.ToString();
      rtsReturns.Tabs.Add(tab1);
 
      RadPageView pg1 = new RadPageView();
      pg1.ID = ttrg.StartDate.ToString();
      rmpReturns.PageViews.Add(pg1);
    }
  }
}

and

protected void rmpReturns_PageViewCreated(object sender, RadMultiPageEventArgs e)
{
  RadTextBox tb = new RadTextBox();
  tb.Text = "This should be on the page just created";
  tb.ID = e.PageView.ID + "_textbox";
  e.PageView.Controls.Add(tb);
}

If I modify the markup to include

OnPageViewCreated="rmpReturns_PageViewCreated"

the PageViewCreated method fires three times every time I click a tab (since there are three tabs being created programatically).  But if I don't have that in my markup it never enters that routine at all.  I thought maybe it had something to do with the pageviews being created in the PreRender but I moved it to the Page_OnLoad and the results are the same. 

I'm sure it's something I'm just not seeing, but I'm just not seeing it.  Can anyone out there set me straight?  I'd greatly appreciate it.

Nencho
Telerik team
 answered on 12 Nov 2012
1 answer
100 views
I am dynamically creating one panel.  I am adding multiple comboboxs to it and each should have it's own tooltip.

Only the tooltip for the panel displays. If I remove the panel tooltip the item tooltips display but only after an odd delay.

I can post some code if you like, it this an issue I should be aware of?

Marty
Kate
Telerik team
 answered on 12 Nov 2012
2 answers
88 views
I have a bar chart with multiple series. When I have only one series, the bar shows up on the correct X Point. When I add a second series, the bar will no longer sit on its proper x point.

The images below graphandline.png and 2graphandline.png show the bar chart before and after the second series is added. You will notice that the first graph shows a point after 10/24. When a second series is added, that 10/24 point moves to the left of the 10/23 mark on the x axis. The third chart 3graphandline.png shows the graphs after manually setting the range and steps. As you can see, the x points are sitting between days. This graph is databound with the following code

chartResults.DataManager.ValuesXColumn = "iDate"

chartResults.DataGroupColumn = "sType"

chartResults.PlotArea.XAxis.Appearance.ValueFormat = Styles.ChartValueFormat.ShortDate

chartResults.DataSource = dt

 
The snippet below is a sample of data being added to the data table. It converts the date to an object, as suggested in the online documentation.

fValue = rdr("sValue").ToString

Dim dDate As DateTime = rdr("dStartDateTime")
Dim oDate As Date = New Date(dDate.Year, dDate.Month, dDate.Day)

Dim oRow As DataRow = dt.NewRow
oRow("fValue") = fValue
oRow("iDate") = oDate.ToOADate()     
oRow("sDate") = rdr("dStartDateTime").ToString
oRow("sType") = sDrug
dt.Rows.Add(oRow)

Is there something I am missing, or doing wrong. The goal is to have the x points from series 1 remain on the correct x point when another series is added. Any advice, or suggestions are appreciated.

Many thanks in advance!

 

 

 

 

John Willey
Top achievements
Rank 1
 answered on 12 Nov 2012
1 answer
66 views
Hi,

I have drastically simplified my code and cannot figure out a bug that is now happening.

I have a combobox and once values have been selected it goes away and the child gets populated.  I have 100s of these and they work fine.  Now that I've upgraded to Q3 2012 I am finding that when the child combo box has checkboxes I run into issues.

The combo still works and gets populated with the data but when I click on one of the checkboxes the text doesn't appear in the combo box line

BTW your support page is showing a 403 error...

Basic code is as follows: 

<telerik:RadAjaxManager ID="uxRadAjaxManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="uxClient">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="uxPortfolio" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadComboBox ID="uxClient" Runat="server" AllowCustomText="true" CssClass="halfWidthComboBox"
onclientselectedindexchanging="LoadClientChildren" onitemsrequested="uxClient_ItemsRequested" MarkFirstMatch="True"></telerik:RadComboBox>
<br />
<telerik:RadComboBox ID="uxPortfolio" Runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true"
onitemsrequested="uxPortfolio_ItemsRequested" MarkFirstMatch="True"
></telerik:RadComboBox>
Kalina
Telerik team
 answered on 12 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?