Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views

hi,

I have created a dynamic tab function. When i click button1 it will create dynamic tab and pageview for that tab. But when i deleted that tab that pageview is not deleting. Can any one help me to fix this

HERE IS MY SAMPLE CODE

protected void Button2_Click(object sender, EventArgs e)  
    {  
        Tab currentTab = RadTabStrip1.InnerMostSelectedTab;  
  
        if (currentTab != null)  
        {  
            ITabContainer owner = currentTab.Owner;  
            owner.Tabs.Remove(currentTab);  
            //RadMultiPage1.PageViews.Remove(currentTab.PageView);  
            if (owner.Tabs.Count > 0)  
            {  
                owner.SelectedIndex = 0;  
            }  
        }  
    }  
T. Tsonev
Telerik team
 answered on 27 May 2010
3 answers
380 views
Hi

My grid contain a few data bound columns and one templete column which contain a link button.
At the client side, when a user clicked on (or select) a row I need to find out whether he press the bound columns or the link button, and I need to know the values' of rhe cells in the selected row.

I know how to find the values in the RowSelected event, but I don't know how to find on which column he clicked.

Is there a way to find it ?

Thanks
David

P.S
I'm using RadGrid.Net2.dll Q1 2007 version (file version 5.0.1.0)
Richard
Top achievements
Rank 2
 answered on 27 May 2010
10 answers
111 views
Hi,

This is a question regarding a specific behavior of RadEditor current version for 01/25/2010 (i dont know version number http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx) IE 6.0 and FFox 3.6:

  • Create a simple table (lets say 3x3 for example) using toolbar button
  • Open this new table properties and go to Accessibility tab
  • Input 1 for "Header rows" and close dialog

Behavior i get is : entire first row is deleted from table. Any previous content is lost.

Behavior i expected is : first row html markup changed for <thead><tr><th></th><th></th><th></th></tr></thead> while preserving contents if any.

I'd like to know if the behavior i get is normal or a bug ? If it is normal, how should I proceed to get the behavior I was expecting ?

Thank you !
Rumen
Telerik team
 answered on 27 May 2010
1 answer
88 views
Team

I'm admiring your support given for me(and others) so far.

My company runs with Telerik components since Version 2009.

Since we are implementing your controls one by one in our product, we are stuck with somewhere else.

Right now we are implementing your splitter control in our application.

Our client want the splitter Button should be somewhat bigger (ie. easily catchable). is it Possible?

Pls. provide me your suggestion.

Thanks
Rajesh N.



Bozhidar
Telerik team
 answered on 27 May 2010
2 answers
105 views
Hi,

I'm so close to getting this control to look exactly how I need it but am stuck on one final element.

When I mouse over and click on the radcombo box input I get the required styles (I have set a new skin and image)

Then, when I move away from the input and mouse over the list items, the style of the input reverts back to default (ie. not selected)
Is there anyway of scripting this so that whilst the mouse is over the list items that the main input retains its hover state?

Thanks, in desparation.
Kalina
Telerik team
 answered on 27 May 2010
1 answer
101 views

Hi!

Radeditor  setFocus doesn't work in chrome..
plz help me....

 

Rumen
Telerik team
 answered on 27 May 2010
1 answer
130 views
Hello,

Version: 2010 Q1

By using a GridHTMLEditorColumnEditor without giving a tools property in design page mode, ie <tools> empty, GridHTMLEditorColumn displays, in Edit and Insert mode, the editor with a default toolbar, which includes Bold, Italic and so on.

How to remove this default toolbar directly in design page mode?
(example: <tools><EditorToolGroup Tag="...">)

If not possible, how to remove it in code behind?

Thank you,
Alain
Iana Tsolova
Telerik team
 answered on 27 May 2010
2 answers
130 views

While the grid is insert mode , I need to disable some controls in this mode. I found the code for disabling in edit mode but not in insert mode , can someone help me


protected void DropDownparamType_SelectedIndexChanged(object sender, EventArgs e) { 
            DropDownList DDL = (DropDownList)sender; 
            GridIndexCollection EditItems = RadGrid1.EditIndexes; 
            if (EditItems.Count > 0) { 
                GridDataItem Item = (GridDataItem)RadGrid1.Items[EditItems[0]]; 
                GridEditFormItem ItemEdit = (GridEditFormItem)Item.EditFormItem; 
 
                /*Habilitar el campo de valores aceptados Ãºnicamente cuando el tipo de parámetro es LIST*/ 
                if ((object)ItemEdit["acceptedValues"].FindControl("txtacceptedValues") != null) { 
                    TextBox acceptedValues = (TextBox)ItemEdit["paramType"].FindControl("txtacceptedValues"); 
                    if (DDL.SelectedValue == "3") {//Tipo Lista 
                        acceptedValues.Enabled = true; 
                        acceptedValues.BackColor = System.Drawing.Color.White; 
                    } 
                    else { 
                        acceptedValues.Enabled = false; 
                        acceptedValues.BackColor = System.Drawing.Color.FromArgb(204, 204, 204);//#CCCCCC 
                    } 
                } 
            } 
 
        } 


Thanks in advance
Gerardo
Top achievements
Rank 1
 answered on 27 May 2010
1 answer
149 views
Greetings,
    Sometime after closing a login RadWindow, in IE, upon calling a logout function, an exception occurs in the JQuery lib which says:
Microsoft JScript runtime error: 'undefined' is null or not an object
var events = jQuery.data(this, "events"), handlers = events[ event.type ];

Also, Firebug shows the following error:
this._iframe.contentWindow.document is null.
when running in FireFox.

However, when I added the following links to Microsoft's Ajax scripts,

 

<script src="<%= Url.Content("~/Scripts/MicrosoftAjax.debug.js")%>" type="text/javascript"></script>

 

 

<script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.debug.js")%>" type="text/javascript"></script>

 

the Error: 'Sys.WebForms.PageContentRequestManager' is null or not an object appeared, instead of the other crash.

Could something in RadWindow be causing this error or do you know the cause of the PageContentRequestManager error?

Respectively,
Eugene

Fiko
Telerik team
 answered on 27 May 2010
2 answers
121 views
I have a simple grid that is using UseStaticHeaders="true".

It works fine in IE8, but when I switch to compatibility mode (spoof IE7), the headers are always a few pixels wider than the columns.  Since there are many columns, the alignment is way off for the farthest right column.

Here is the grid and a temp datasource. (I stripped down the grid so it was easier to deal with - it still displays this behavior)
Note: you have to be in compatibility mode to see the mis-alignment.

<telerik:RadGrid ID="theGrid" runat="server" Height="200px" OnNeedDataSource="theGrid_NeedDataSource">  
            <ClientSettings> 
                <Scrolling AllowScroll="true" UseStaticHeaders="true"/>  
            </ClientSettings> 
            <ItemStyle CssClass="editableGridCell"  /> 
            <AlternatingItemStyle CssClass="editableGridCell" BackColor="#ffffff" /> 
            <HeaderStyle CssClass="editableGridHeader" BorderWidth="1px" BorderColor="LightGray" BorderStyle="Solid" /> 
            <MasterTableView DataKeyNames="Code" AutoGenerateColumns="false" TableLayout="Fixed" Width="180px">  
                  
                <Columns> 
                    <telerik:GridBoundColumn DataField="Code" HeaderText="Code Sequence">  
                        <ItemStyle Width="90px" /> 
                        <HeaderStyle Width="90px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Code Name">  
                        <ItemStyle Width="90px" /> 
                        <HeaderStyle Width="90px" /> 
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView>                 
        </telerik:RadGrid> 

And the code behind:
protected void theGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
        {  
            DataTable table = new DataTable();  
            table.Columns.Add("Code", typeof(String));  
            table.Columns.Add("Name", typeof(String));  
 
            table.Rows.Add("asdfasdf", "asdfasdfasdfasdf");  
 
            theGrid.DataSource = table;  
        } 


Let me know what I have to do.

Thanks,
Justin
Justin Lee
Top achievements
Rank 1
 answered on 27 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?