Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
189 views
Hi,

My module is having one radbutton which is fixed width, but radbutton text need to be changed based on culture, so the text for one country might not be equal to another country, so in this case if radbutton text is not able to fit in the radbutton width, then i want to display  "..." (3 dots) at the end of the radbutton text and i want to display the complete text using radbutton tooltip.
so please provide me the better solution to resovle this issue.
Pero
Telerik team
 answered on 09 Feb 2011
9 answers
624 views
Hi, i'm trying to simulate the action of use aggregate="sum" property for a telerik:gridtemplatecolumn i use this kind of column `cause i need to set links in each cell value , when i use telerik:gridboundcolumn i cant use <item template><asp_hyperlink>, so finally what i need is set groupfooter totals, footer total and set as hyperlinks in each cell value. actually i can set the footer totals and the links but i cant set the group footer totals tnaks a lot and sorry for my english

<telerik:GridTemplateColumn UniqueName="Template1" GroupByExpression = "Febrero"
                                                 
                                                    <ItemTemplate>                                                         
                                                        <asp:HyperLink ID="targetControl" runat="server" NavigateUrl="#" Text='<%# Eval("Febrero") %>'></asp:HyperLink> 
                                                    </ItemTemplate>               
                                                    <FooterTemplate>                                                         
                                                        <asp:HyperLink runat="server" ID="TextBox2"
                                                        </asp:HyperLink>                                                         
                                                    <telerik:GridGroupPanel> 
                                                    <PanelItemsStyle Height="200" BackColor="Aquamarine" /> 
                                                    </telerik:GridGroupPanel> 
                                                    </FooterTemplate>    
                                                                                                                                                          
                                                </telerik:GridTemplateColumn> 
 
protected void tk_Grid_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem dataItem = (GridDataItem)e.Item; 
            sum += double.Parse((dataItem["Template1"].FindControl("targetControl") as HyperLink).Text); 
        } 
        else if (e.Item is GridFooterItem) 
        { 
            GridFooterItem footer = (GridFooterItem)e.Item; 
            (footer["Template1"].FindControl("TextBox2") as HyperLink).Text = sum.ToString(); 
            FooterTotals = (footer["Template1"].FindControl("TextBox2") as HyperLink).Text; 
        } 

siva
Top achievements
Rank 1
 answered on 09 Feb 2011
1 answer
212 views
Hello.

To develop some features in our application we need to get and set caret position (i.e. distance from the beginning of the text or smth like that). It was mentioned by Telerik team in this four-years-old thread that RadEditor did not provide API to get/set caret position.

The only thing we actually need to do is to restore the caret position in design mode after some parts of content are changed (i.e., global reformatting of some keywords). So we store caret position, then some chunks are replaced, then updated HTML is set, and then we set restore caret position.

We have managed to do that in IE using TextRange (such a hack), but it is a really time consuming challenge to get this work properly in all other major browsers.

Browser compatibility is the reason why we use Telerik components. So I hope something have moved further in this area during these four years.

Regards,
Olexandr Vynnychenko
IntraNote a/s
Dobromir
Telerik team
 answered on 09 Feb 2011
1 answer
81 views
OnClientTextChange not firing for me with a webservice bound control

_combo.ID = "servicedd" + this.QuestionIDJavascriptFriendly;
_combo.WebServiceSettings.Path = this.WebServicePath;
_combo.WebServiceSettings.Method = this.WebMethod;
_combo.EnableLoadOnDemand = true;
_combo.EnableItemCaching = true;
_combo.AllowCustomText = true;
_combo.Filter = RadComboBoxFilter.Contains;
 
_combo.MaxHeight = new Unit(300, UnitType.Pixel);
_combo.CollapseAnimation.Type = AnimationType.None;
_combo.ExpandAnimation.Type = AnimationType.None;
_combo.EnableViewState = _viewstate;

I dont want custom text...so I was hoping to handle the OnClientTextChange to check the combo value field and cancel with an alert....
Yana
Telerik team
 answered on 09 Feb 2011
6 answers
581 views
Hi

i am using radcombobox in my page. the load on demand is working fine. 
when i click or place my cursor on the combobox it list out the items. but i want to list my items after typing 2 or 3 letters on the combobox.
how can i do this?

thanks.
geetha.
improwise
Top achievements
Rank 1
Iron
Iron
 answered on 09 Feb 2011
1 answer
90 views
hi all
I have a list view and RadDataPager . Inside the RadDataPager , I have a dropdownlist control, I would like get the value of the dropdownlist control. I try ctype(RadDataPager.findcontrol("dropdownlist"), dropdownlist).selectedvalue but failed. 

how can I get the find the control inside the RadDataPager. Thanks

Regards,
Tam
Princy
Top achievements
Rank 2
 answered on 09 Feb 2011
7 answers
122 views
Hello

How do i insert "Select One" in radcombo that have multiple column
something like http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

When i add radcombo item than it doesnt display in the drop downlist. It display "Blank item". when i select that blank item it display select one in the combo box.

Ideally i want user to see "select one" in rad combo when loaded for the first time.

Regards
Mac
Kalina
Telerik team
 answered on 09 Feb 2011
0 answers
71 views
Hi all,

I'm trying to select some text in a combobox filled with the loadondemand property set to true. For example, if I got a combo with employees and I select an employee, for example "Peter Griffin", I'm trying to select "Peter" clicking in the combobox filter to do another query only with the string "Peter", but everytime I click the combobox filter it selects the whole filter.

As I saw in this demo (http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx) I'm thinking that this is a current feature.

Can it be disabled easily?

Kind Regards,
Francisco
Top achievements
Rank 1
 asked on 09 Feb 2011
1 answer
79 views

Hi, 

I need to get the value of column, and was trying to get it as in the following thread:

http://www.telerik.com/community/forums/aspnet-ajax/grid/how-fetch-column-value-from-detailtables.aspx

protected void RG_SearchResult_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
...
             if (e.CommandName == "History")
             {
                  if (e.Item.OwnerTableView.Name == "Level2")   //check with name of DetailTableView <br>                
                  {
                              GridDataItem item = (GridDataItem)e.Item;
                              foreach (GridDataItem childItem in item.ChildItem.NestedTableViews[0].Items) 
                              {
                                      string value= childItem["PropCode"].Text;
                             }
                
...

But I here - item.ChildItem.NestedTableViews[0].Items get error - Object reference not set to an instance of an object.

What I am doing wrong ?

Kanat
Top achievements
Rank 1
 answered on 09 Feb 2011
0 answers
126 views
hi, i can't delete appointments.. in debug mode i never enter the function
here's the RadScheduler code in aspx
<telerik:RadScheduler runat="server"
ID="RadScheduler1"
 Width="1000px"
    SelectedDate="01-01-2011"
     TimeZoneOffset="03:00:00"
     DayStartTime="08:00:00"
     DayEndTime="18:00:00"
    StartEditingInAdvancedForm="false"
     DataKeyField="ID"
      DataSubjectField="Subject"
    DataStartField="Start"
     DataEndField="End"
      DataRecurrenceField="RecurrenceRule"                  
     OnFormCreating="RadScheduler1_FormCreating"
    DataRecurrenceParentKeyField="RecurrenceParentID"
    Skin="WebBlue" Culture="it-IT" FirstDayOfWeek="Monday"
    LastDayOfWeek="Friday" SelectedView="WeekView" 
    OnAppointmentDelete="RadScheduler1_OnAppointmentDelete" 
    AppointmentStyleMode="Simple" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" AllowDelete="true" OnClientAppointmentDeleting="onAppointmentDeleting"
  >

and the function
protected void RadScheduler1_OnAppointmentDelete(object sender, SchedulerCancelEventArgs e)
 
{
 
    // I never go in this function
 
}

i also set proprietyAllowDelete="true"
i cant' understand why the event don't run.

thanks
Ale

Alessandro
Top achievements
Rank 1
 asked on 09 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?