Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
142 views
hi we have a telerick rotator in the designcrowd website
whats happening is if im using chrome or safari an im scrolling down whilst the mouse is on the rotator everything inside the
rotator goes up or dissapears. an this doesnt happen in other browsers just those two.

 

<telerik:RadRotator runat="server" ID="rotatorImages" Width="828" ScrollDuration="500" ScrollDirection ="Left"

 

 

 

WrapFrames="true" ItemWidth="206" ItemHeight="80" RotatorType="AutomaticAdvance"

 

 

 

PauseOnMouseOver="false">

 

 

<ControlButtons LeftButtonID="imgLeftArrow" RightButtonID="imgRightArrow" />

 

 

<Items>

 


this is ust the sample of the rotator hearder. do i need to do more stuff for this to stop?

and this is inside a table width set to 100% and no hieght specified

Pawan
Top achievements
Rank 1
 answered on 02 Apr 2012
3 answers
104 views
I just downloaded and installed the latest release.  I upgraded two different web sites to the new controls (when your code asked if I wanted to upgrade).

I now have two projects that were previously using the Sitefinity skin and now everything is blowing up when it tries to display using that skin.  I haven't tried any other skins because I'm hopping mad that my producitivity has just been shot in the foot.

Do you have a way of fixing these large projects or can you send someone over to rebuild them for me?

I have attached a screen capture of the yellow screen of .net death for your enjoyment.

Lynn

Chavdar Dimitrov
Telerik team
 answered on 02 Apr 2012
19 answers
387 views
I have a RadDatePicker in an EditItemTemplate of a RadGrid that needs to change the forground color on an onclick event.
I get the Client id and add the onclick event to the RadDatePicker in the Grid's on ItemDataBound event.

In the Javascript function, I am using code recomended by Telerik to change the RadDatePicker's forground color (below), but it does not work as suggested.

Thank you,

SteveO
-----------------------------------------------------------------------------------------------------------------------------------

 

function HighlightRow(chkB) {

 

chkB.get_dateInput()._textBoxElement.style.forgroundColor =

"red";

 

}


-----------------------------------------------------------------------------------------------------------------------------------

 

protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)

 

{

 

RadDatePicker rdp1 = e.Item.FindControl("nextactdate") as RadDatePicker;

 

 

RadDatePicker rdp2 = e.Item.FindControl("finalactdate") as RadDatePicker;

 

 

if (rdp1 != null && rdp2 != null)

 

{

rdp1.Attributes.Add(

"onclick", string.Format("HighlightRow({0})", rdp1.ClientID));

 

rdp2.Attributes.Add(

"onclick", string.Format("HighlightRow({0})", rdp2.ClientID));

 

}

}


Tsvetina
Telerik team
 answered on 02 Apr 2012
1 answer
195 views
In the application there is a editresults page where the radeditor is being used. The results data is copied from a word document and pasted into the radeditor. The data that is saved is show on a front end website and the styling was exact to what was on the editor. The application was originally built under telerik version under 2011.1.519.35. This year the application was updated to version 2012.1215.35. Now the data looks different. When I pasted the data from the word document into the editor the formatting seemed to be fine but when checking the data on the front end site it would appear the styling is different. As a test I copied the data that was formatted with the previous version of telerik and pasted into a word document saved it and copied that data into the radeditor and the styling still changes. Has the rad editor changed on how it would paste the data?
Rumen
Telerik team
 answered on 02 Apr 2012
3 answers
103 views
The grid is set to multi-page.  When I scroll down and click select a checkbox, the grid jumps jumps off the page where the bottom of the grid is showing at the top of the screen.  I cannot seem to fix this issue.  Anyone have any idea what's going on here? 

Pavlina
Telerik team
 answered on 02 Apr 2012
1 answer
161 views
Hello,

I want to use a simple HeaderTemplate for my ComboBox:

internal class MyHeaderTemplate : ITemplate
   {
      private readonly RadButton _okButton;
 
      public MyHeaderTemplate()
      {
         _okButton = new RadButton();
         _okButton.ID = "OkButton";
         _okButton.Text = "OK";
      }
 
 
      internal RadButton ButtonOk
      {
         get { return _okButton; }
      }
 
      public void InstantiateIn(Control container)
      {
         container.Controls.Add(_okButton);
      }
   }

But I get this error when the pare is generated: Script controls may not be registered after PreRender. When I don't set the HeaderTemplate to the ComboBox, everything works as expected.

Princy
Top achievements
Rank 2
 answered on 02 Apr 2012
1 answer
170 views
How can I make a datepicker show warning symbol like  RadNumericTextBox ?
Princy
Top achievements
Rank 2
 answered on 02 Apr 2012
2 answers
98 views
Hi everybody,

i have a little problem which may be caused by misunderstanding some logic in RadChart.

My RadChart is drawed as Pie and bound two a DataTable. The result is one Series with dynamic count of items.
Whenever the Items count is getting higher than 15 the ChartControl is drawing two pies.
Searching the Forum and Support i found that the DataGroupColumn is responsíble vor mulitple Pies but i haven't set it to any value.

My Qestion is:
Is this behavior by Design or what else can be the reason that a Series with more than 15 items is drawed into two pies?

Thank you guys

P.s. I use the newest version of Telerik RadControls
Peshito
Telerik team
 answered on 02 Apr 2012
3 answers
212 views
I'm using client-side binding to a WebMethod, and I need to intercept the AJAX response object. I can get the row objects that are children of the response in the OnRowDataBound through args.get_dataItem(); how to do I get the return object from the WebMethod (either before or after the grid is bound at client-side)?
Antonio Stoilkov
Telerik team
 answered on 02 Apr 2012
1 answer
715 views
Hello,

I am having trouble adding "OnChecked" events to my GridTemplateColumns I am creating programmatically.

Here is the code I am using to create my columns (and the new column "RoleColumn"):
               public void DefineGridStructure()
            {
                var templateColumn = new GridTemplateColumn();
                templateColumn.UniqueName = "myColumn" + i;
                templateColumn.ItemTemplate = new RoleColumn("myColumn" + i);
  
                 // add the dynamically created columns to the grid
                dgLoginRequest.MasterTableView.Columns.AddAt(COLUMN_START_POS - 1, templateColumn);
            }
  
  
    public class RoleColumn : ITemplate
    {
  
        protected CheckBox roleCheckbox;
        private string _columnName;
  
        public RoleColumn(string columnName)
        {
            _columnName = columnName;
        }
  
        public void InstantiateIn(Control container)
        {
            roleCheckbox = new CheckBox { ID = "cbx" + _columnName };
            roleCheckbox.AutoPostBack = true;
            roleCheckbox.DataBinding += new EventHandler(roleCheckbox_DataBinding);
            container.Controls.Add(roleCheckbox);
        }
  
        private void roleCheckbox_DataBinding(object sender, EventArgs e)
        {
            var cBox = (CheckBox)sender;
            var container = (GridDataItem)cBox.NamingContainer;
            cBox.Checked = ((EntityUserRole)container.DataItem).Roles[0][_columnName];
        }
  
    }


Now when I call the DefineGridStructure routine I then bind a data source to my grid (the datasource is an ArrayList type which holds "Role" objects):

           public void BindDataGrid()
        {
            try
            {
                DefineGridStructure();
                dgLoginRequest.DataSource = DataSource;
                dgLoginRequest.DataBind();
            }
            catch (Exception ex)
            {
                throw;
            }
        }

    public

 

 

interface IRole

 

    {

 

 

        Int16 RoleID { get; set; }

 

 

 

        string RoleName { get; set; }

 

 

 

        Int16 OrderID { get; set; }

 

    }



I then capture the OnItemDataBoundEvent and add my event handler at this point;
            protected void dgLoginRequest_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            

                    var i = 0;
                foreach (Role role in Roles)
                {
                    var checkbox = (e.Item as GridDataItem)["myColumn" + i].Controls[0] as CheckBox;
                    checkbox.CheckedChanged += new EventHandler(cbxReader_CheckedChanged); 
                            i++;
                }
                  
            }
        }

However, when I click my checkboxes they do not fire the event (cbx_CheckedChanged).

What am I missing?

All I want to do is create a checkbox column for each role that I have in my Arraylist (currently 4).  And I want to be able to handle the "OnCheckedChanged" event in code whenever any of these checkboxes are checked.

Please help.  I have went through the documenation already - that's how i got this far.  A sample application would be appreciated.

Thanks,
Antonio Stoilkov
Telerik team
 answered on 02 Apr 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?