Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
211 views
Hi Telerik,

I am unable to create asp checkbox, button, dropdown etc.. controls in RadPanelBar.
My requirement is to create checkbox, button, dropdown in panel bar and also event for these item should fire.
Could u please help me.
Reply me as soon as possible
Its very urgent.

Thanks,
Monalisa
Stuart Hemming
Top achievements
Rank 2
 answered on 15 Jul 2009
1 answer
92 views
Dear sir,

In dynamic creation of DOCK , how can we create custom button with refresh functioning.
I need to refresh each and ever dock with its owm custom refresh button.

thanks & regards


Jim
Top achievements
Rank 1
 answered on 15 Jul 2009
4 answers
165 views
I'm working on an app that uses CSS Themes.

We have a skin file that, in turn, points to an external stylesheet for the Grids that we use, using the SkinID="rad_grid". In addition, there is a skin file entry for the ComboBoxes we use.

If I set the grid up to use "NextPrevAndNumeric" paging the ComboBox doesn't render properly. I can make it render properly by intercepting the ItemCreated event in my code, looking for the creation of the PagerItem, finding the ComboBox control and the a) setting EnableEmbeddedSkins = "true" and b) setting the Skin name. I can't change the SkinID to use my in-built themed ComboBox skin 'cos you get an error telling you that it's only possible to set this property before the control is added to the container's control collection.

So, how do I get the out-of-the-box pager to use my Themed skin for the ComboBox?

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 15 Jul 2009
1 answer
132 views
Dear sir,

I am Craeating a pie chart and disaplay in RadDock.
the problem is chart shows scroll in dock. I wants to remove scroll.
I am not giving chart heigth and dock also [dock created dynamically).

and how can I change chart colors.?
help me plz

thank with regards

Pero
Telerik team
 answered on 15 Jul 2009
1 answer
170 views
I am implementing some custom columns templates,  Consulting the samples when i use a "Textbox" as a editor control everything works fine, but if a change to a RadCombo or RadEditor as a main grideditor, i get one error in databinding event, even to insert.

I am a little confusing about container's, data item, editmode etc.

Someone to help plz.

Thanks

 public class ComboItemEditTemplate : ITemplate
    {

        protected RadComboBox comboBox;
        private string columnName;
        protected Field campo;
        protected String errorMessage = string.Empty;
        String connectionString;
        public ComboItemEditTemplate(string ColumnName, string ErrorMessage, Field _Campo, String _connectionString)
        {
            columnName = ColumnName;
            errorMessage = ErrorMessage;
            campo = _Campo;
            connectionString = _connectionString;
        }
        public void InstantiateIn(System.Web.UI.Control container)
        {
            comboBox = new RadComboBox();
            comboBox.ID = String.Format("RadCombo{0}", columnName);
            comboBox.DataBinding += new EventHandler(comboBox_DataBinding);
            comboBox.DataBind();
            comboBox.DataTextField = campo.Description.GetElementsByTagName("DataTextField")[0].InnerText;
            comboBox.DataValueField = campo.relation.PkKey;
            container.Controls.Add(comboBox);

        }

        public void comboBox_DataBinding(object sender, EventArgs e)
        {
            RadComboBox combo = (RadComboBox)sender;

            Helper helper = new Helper();

            combo.DataSource = helper.RetornaDatasetCombo(campo, connectionString);


            // GridDropDownColumnEditor container = (GridDropDownColumnEditor)combo.NamingContainer;
            //  combo.SelectedValue = ((DataRowView)container.DataItem)[columnName].ToString();
        }
    }

Gilberto

Sebastian
Telerik team
 answered on 15 Jul 2009
2 answers
160 views
I want to know if the Telerik Menu has the ability to postback server side and be able to grab the event arguments
to determine what menu item was selected, then do something with it. 

Something similar to this code that their competitors have at CA.

As you can see.  It gets into the Event Arg, I pull the value I assigned in the HTML side, then determine where I want to go.

Is this possible?  Or something the same? 

private

void Menu1_ItemSelected(object sender, ComponentArt.Web.UI.MenuItemEventArgs e)

 

{

MenuItemSelected = e.Item.Value;

Session[

"MenuItemSelected"] = MenuItemSelected;

 

ChooseMenu();

 

}

Bryan Page
Top achievements
Rank 1
 answered on 15 Jul 2009
10 answers
356 views
I'd like to check the row visibility of a radgrid's row at client.

I always get false in display variable in code below, even using masterTableView.get_dataItems()[i].style.display, then i get always none

obs: any rows could be hidden at client side.

var radGrid = $find('<%= RadGridFuncionalidades.ClientID %>'); 
                if (radGrid != null) { 
                    var masterTableView = radGrid.get_masterTableView(); 
                    for (var i = 0; i < masterTableView.get_dataItems().length; i++) { 
                        // debugger 
                        var gridItemElement = masterTableView.get_dataItems()[i].get_element(); 
                        var display = masterTableView.get_dataItems()[i].get_display(); 

Any suggestions?
Pavlina
Telerik team
 answered on 15 Jul 2009
1 answer
173 views
Hello Telerik,

Here is the scenario:

I have created 4 RadComboBoxes, each containing data selections, retrieved dynamically, in the form of CheckBoxes. I would like to enable users to view their selections before submitting. I saw a Telerik example wherein the selections were displayed in the input text field of a RadComboBox, but that is too limiting for the numbers of data items the boxes will contain.

I reviewed the Dock control and an example of dynamic creation and thought that this would be perfect for the project provided I could get everything working properly. I implemented the idea nearly successfully for one box. Perhaps someone can help me with the issues I'm facing.

1. The Dock disappears on a postback. I'd like for the user to be able to see the contents of all the boxes at once. Thus, the postback issue only permits only one display of a RadDock control at a time.
2. I tried to format the list of box items using: \r\n. However, the display of contents wrapped, ignoring carriage return and line feed.
3. I tried to manually insert a ListBox into the markup, but that control is rejected. It's not a valid RadDock object.
4. I've thought of using a RadGrid, but manipulating its contents within a RadDock control using javascript seems a little daunting. I would have to handle switching the visibility off the RadDock in javascript, too, since it should not be visible unless summoned.
5. I think adding a RadGrid server side into a dynamically created RadDock would be OK, but I don't know how to do that.

Basically, I want:

  1. Display on demand for each of the ComboBoxes
  2. Persistence of all the displays through postbacks, until the user dismisses the control
  3. The kind of data legibility and organization that can be achieved using a ListBox or a Grid

Do you have some suggestions/examples for a Telerik beginner?

Thank you in advance,

Arnold
Pero
Telerik team
 answered on 15 Jul 2009
0 answers
49 views
Hi:
     I have a drop down list which is a part of the resource collection. I want to be able to set the value of this dropdown when the advanced form loads. I was thinking I could do it in the databound event but did not see one for the resource collection.

Thanks,
Aditya
Aditya
Top achievements
Rank 1
 asked on 15 Jul 2009
2 answers
125 views

I have been working on a problem related to use of the default content filters in RadEditor, and have reduced the problem to:

If ConvertFontToSpan is enabled, then, if the HTML has "overlapping" P and SPAN elements (I believe that this is invalid HTML), e.g.

<p>
<span>
</p> 
text

</span>

then, when the default content filtering is done, the result inclues an &nbsp:

<span>
<p>&nbsp;</p>
text </span>


This can be demonstrated by using the online demo at:

http://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx

and switching to HTML view, first replacing the HTML with:

<p>
<span>
</p> 
text

</span>

then switching to design view and then back to HTML view again, at which time, the contents are:

<span>
<p>&nbsp;</p>
text </span>

Disabling ConvertFontToSpan and repeating this results in:

<p><span>text </span></p>
text

No &nbsp;

So, I am wondering: Although the input is invalid, is ConvertFontToSpan doing the right thing by introducing a non-break space?

I am not sure.

-Jon





Jon
Top achievements
Rank 1
 answered on 15 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?