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

I have several comboboxes in a form that are OK in IE but when using firefox the drop down is shown too low (the deviation changes between boxes).
Since the distance of the comboboxes from the top of the screen is fixed, I used the following fix:
<telerik:RadComboBox ID="customer" runat="server" OnClientDropDownOpened="FirefoxDropDownCorrection" ... 
The JS function is (inspired by RadComboBox in ModalPopupExtender - wrong DropDown position under Firefox & Safari):
function FirefoxDropDownCorrection(sender, eventArgs)  
{  
   if (!$telerik.isIE) {  
        var dropDownWrapper = sender.get_dropDownElement().parentNode;         
        var sID = sender.get_id();  
        if ( sID == "customer") { 
            dropDownWrapper.style.top = "63px"
        } 
        if (sID == "searchby" || sID == "FindCombo") { 
            dropDownWrapper.style.top = "125px"
        } 
        if (sID == "CombinedType") { 
            dropDownWrapper.style.top = "212px"
        } 
    } 
}  

This works fine for the "fixed" comboboxes, the problem is for the "load on demand" box which after every "items request" gets positioned wrong again.

How can i fix this issue?

Thanks,
Nir.
Atanas Korchev
Telerik team
 answered on 04 Dec 2008
2 answers
126 views
Dear All,

I have a context menu in a TreeView, and one of the options is to rename the title.  that is working fine, i am doing this

        function onClientContextMenuItemClicked(sender, eventArgs)
        {
            var menuItem = eventArgs.get_menuItem();
            var treeNode = eventArgs.get_node();

            switch(menuItem.get_value())
            {
                case "View":
                    break;
                case "Edit":
                    break;
                case "Rename":
                    treeNode.get_treeView()._startEdit(treeNode);
                    break;
                case "New":
                    break;
                case "Delete":
                    break;
            }
        }

Now I noticed that after changing the treeNode, I am going back to the Page_Load in C#.  From that pageLoad, I want to check if the treeNode was changed, and if changed, get the value, so that I can update the database with that value.

Is this possible to do from the C# code-behind?

Thanks for your help
Johann
Top achievements
Rank 1
 answered on 04 Dec 2008
5 answers
208 views
Hi,

Can I find documentation on changes in the resx files somewhere? It's a huge timesaver for those who do localize the editor if there is a changelog available of these files, so we don't have to translate each file from top to bottom every time there is a new release.

Please say yes! :)

Regards,
-DJ-
Gary Davis
Top achievements
Rank 2
 answered on 04 Dec 2008
15 answers
440 views

Dear Terelik Support,

Please it's an urgent need.

I want to add a TreeView to the ComboBox and I want to populate the treeview from the code behind. I followed the instructions in the following link

http://www.telerik.com/help/aspnet-ajax/combo_templatesaddingtemplates.html

But when I run the page I treeview did not show up. This is my first time trying to accomplish this task and it's very important to my application. I'm using VS 2008 and VB.NET and most.

I tried to read the available posts about this subject but I couldn't do it.

Please is there is any one can help me to accomplish this task?

Thank you.

Veselin Vasilev
Telerik team
 answered on 04 Dec 2008
1 answer
182 views

I am looking for dynamically adding Tabs in Tabstrip and adding pageView in Multipage and then associate the newly created pageView to Tab (similar to tabs in IE).  But I couldn’t find a way to do this from the documentation. Can you please help?


here is the sample code I am trying. 

 

<body>

<script language="javascript" type="text/javascript">

 

    function AddNewTabs() {

       

 

        var multiPage = $find("<%=RadMultiPage1.ClientID %>");

        multiPage.trackChanges();

        var pageView = new Telerik.Web.UI.RadPageView();

        pageView.set_id("id1");

        multiPage.get_pageViews().add(pageView);

        pageView.get_element().innerHTML = "PageView1";

        //pageView.get_element().id = "id1";

        multiPage.commitChanges();

 

        var tabstrip = $find("<%= RadTabStrip1.ClientID %>");

        var roottab = new Telerik.Web.UI.RadTab();

        roottab.set_text("ReportPageView");

        roottab.set_pageViewID("id1");

        tabstrip.trackChanges();

        tabstrip.get_tabs().add(roottab);

        tabstrip.commitChanges();

    }

   

 

   

    </script>

    <form id="form1" runat="server" defaultfocus="Button1">

   

    <asp:ScriptManager ID="ScriptManager" runat="server" />

   

    <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="AddNewTabs();"/>

   

    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">

       <Tabs>

           <telerik:RadTab runat="server" Text="Root RadTab1" PageViewID="CommencePageView"/>

       </Tabs>

    </telerik:RadTabStrip>

      

    <telerik:RadMultiPage ID="RadMultiPage1" runat="server">

        <telerik:RadPageView ID="CommencePageView" runat="server">

            <div>Comments</div>

        </telerik:RadPageView>

    </telerik:RadMultiPage>

   

    </form>

</body>

Atanas Korchev
Telerik team
 answered on 04 Dec 2008
1 answer
113 views

Hello everybody,

I'm building a grid with edit and delete options.
In the edit option i need to show only some of the fields i have available in the grid for update, but i'm having problems achieving this.

I saw several examples in the forum but i can't put it to work in my project

I'm populating the grid on run time this way:

                '. Preencher a Grid  
                rg_shoppinglist.DataSourceID = "SqlDataSource1" 
                SqlDataSource1.SelectParameters.Item("idClient").DefaultValue = "1" 
                rg_shoppinglist.MasterTableView.DataKeyNames = New String() {"idwebchart"}  
                rg_shoppinglist.Width = Unit.Percentage(98)  
                rg_shoppinglist.PageSize = 5  
                rg_shoppinglist.AllowPaging = True 
                rg_shoppinglist.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric  
                rg_shoppinglist.AutoGenerateColumns = False 
                rg_shoppinglist.AutoGenerateEditColumn = True 
                rg_shoppinglist.AutoGenerateDeleteColumn = False 
                rg_shoppinglist.AllowSorting = True 
                rg_shoppinglist.Skin = "Sunset" 
                rg_shoppinglist.EnableViewState = True 
 
                '. Configurar   
                Dim boundColumn As GridBoundColumn  
                '. Referência  
                boundColumn = New GridBoundColumn()  
                rg_shoppinglist.MasterTableView.Columns.Add(boundColumn)  
                boundColumn.DataField = "ref" 
                boundColumn.HeaderText = "Referência" 
                boundColumn.EditFormColumnIndex = False 
                Dim myEdit As Boolean = boundColumn.IsEditable  
                '. Designação  
                boundColumn = New GridBoundColumn()  
                rg_shoppinglist.MasterTableView.Columns.Add(boundColumn)  
                boundColumn.DataField = "description" 
                boundColumn.HeaderText = "Designação" 

                '. MORE FIELDS ETC ETC ETC......

After this i tryed doing somethign like this:

    Protected Sub rg_shoppinglist_ItemCommand(ByVal source As ObjectByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rg_shoppinglist.ItemCommand  
        Dim val As Object 
        If e.CommandName = "Edit" Then 
            e.Item.Edit = True 
            e.Item.OwnerTableView.Rebind()  
 
 
            For i As Integer = 0 To e.Item.Controls.Count - 1  
                val = e.Item.Controls(i)  
                val = e.Item.Controls(i).ID  
                e.Item.Controls(i).......... several try outs without sucess  
 
            Next 
 
 
        End If 
    End Sub 

But nothing seems to work...
Please help
Rogério
Top achievements
Rank 2
 answered on 04 Dec 2008
1 answer
99 views
Hello!

The editor is behaving in an unwanted way with Firefox 2 & 3. A br tag gets inserted right after the template content, selected through the Template Manager button. You can check it out on one of your demo pages: enter HTML mode, erase the html code that's in there, switch to design mode, click the Template Manager button, open the marketing folder and insert 2007-07.html. Back in HTML mode you'll see that there's a br tag right at the end of it.
As some of our clients aren't that html savvy, we would like them to be able to use the editor with as little interaction with the actual html as possible. In other words, no switching from design mode to html mode just to remove something that shouldn't be there to begin with.

Another thing that bothers me with the wysiwyg interface is the indentation button. This button generates a blockquote tag, which has nothing to do with indentation. in fact, it should be used to mark up quotations. HTML tags should not be used for how they look, but for what they actually represent. CSS is the way to go here (margin-left).

And finally. I made a post on the forum back in April about some IE 7  issues, which you can find here: http://www.telerik.com/community/forums/aspnet/editor/annoying-ie-problems-latest-version-of-radeditor.aspx
After upgrading to the latest version of the editor, these problems still remain...
Have any attempts been made to sort these problems out?

Thanks in advance!
Rumen
Telerik team
 answered on 04 Dec 2008
1 answer
206 views
Hi!

How can I close RadWindow from the server side?

What I want is just do some actions on the server side and immediately close the window after these actions.

But as far as I understand, I should close window on the client side?
Kirill
Top achievements
Rank 1
 answered on 04 Dec 2008
1 answer
80 views
How to set Differant Color to Same Series Bar? , I wan to set Differant Color to each & every bar in the same series.
Velin
Telerik team
 answered on 04 Dec 2008
3 answers
115 views
Hi I am using a Panel bar that is being populated from a db, and I want to be able to disable or remove an item on page load.

I am using the following code, but it does not seem to do anything.
I tried using an onclick event instead and that worked, is there something wrong with my code?

Sub

 

Page_Load()

 

 

If Not (Page.IsPostBack) Then

 

 

Dim item As RadPanelItem = RadPanelBar1.FindItemByText("Forum")

 

item.Owner.Items.Remove(item)

End

 

If

 

 

End Sub

Any help would be greatly appreciated.

Jason

 

RW
Top achievements
Rank 1
 answered on 04 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?