Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
Hi,

i don't know if this problem is telerik or a general problem ..

in my scenario is a master page with 3 contents (toolbar (whole width and top of page), left pane (left of the content), content). the left pane and the content are divided by a RadSplitter (RadSplitBar).

Now when I set the height of the radsplitter to 100%, firefox doens't fit it till the bottom and i when i set a fix height, at example 1000px it looks ok, but when the left pane or content have so much content to show, that scrollbars should be appear, nothing is gonna happen. because the height of 1000px doens't allow it.

so my question is, how can i set the height, that the whole page is filled and scrollbars appears..

sorry for my englisch.. and thx 4 advices
basti
Svetlina Anati
Telerik team
 answered on 31 Aug 2009
7 answers
177 views

Hi,

I using telerik grid with templateform for add and edit data. When i edit data or add data i cant see changes until restart page.

I load data in following method

protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            FillGrid();         
        }
    }

    void FillGrid()
    {
        CompanyControler Com = new CompanyControler();
        RadGrid1.DataSource = Com.CompanyList();
        RadGrid1.DataBind();

    }

After edit i load data like this

protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        Minute.Company Com = new Minute.Company();
        CompanyControler ComCon= new CompanyControler ();
        if (e.Item is GridEditFormItem)
        {
            GridEditFormItem item = (GridEditFormItem)e.Item;

           if( item.ItemIndex>0)                         
            {
                int id = Convert.ToInt32(item.GetDataKeyValue("CompanyID"));
                if (id != 0)
                {
                    Com.CompanyID = id;

                }
            }

            TextBox txtCompanyCode = (TextBox)e.Item.FindControl("txtCompanyCode");
            TextBox txtCompanyName = (TextBox)e.Item.FindControl("txtCompanyName");
            TextBox txtAddressLine01 = (TextBox)e.Item.FindControl("txtAdd1");
            TextBox txtAddressLine02 = (TextBox)e.Item.FindControl("txtAdd2");
            TextBox txtAddressLine03 = (TextBox)e.Item.FindControl("txtAdd3");
            TextBox txtAddressLine04 = (TextBox)e.Item.FindControl("txtAdd4");
            TextBox txtPostCode = (TextBox)e.Item.FindControl("txtPostCode");
            TextBox txtCountry = (TextBox)e.Item.FindControl("txtCountry");
            TextBox txtTelephone = (TextBox)e.Item.FindControl("txtTelephone");

            TextBox txtFax = (TextBox)e.Item.FindControl("txtFax");
            TextBox txtWeb = (TextBox)e.Item.FindControl("txtWeb");
          
            Com.CompanyCode = txtCompanyCode.Text;
            Com.CompanyName = txtCompanyName.Text;
            Com.AddressLine01 = txtAddressLine01.Text;
            Com.AddressLine02 = txtAddressLine02.Text;
            Com.AddressLine03 = txtAddressLine03.Text;
            Com.AddressLine04 = txtAddressLine04.Text;
            Com.PostCode = txtPostCode.Text;
            Com.Telephone = txtTelephone.Text;
            Com.Web = txtWeb.Text;
            Com.Fax = txtFax.Text;
            Com.Country = txtCountry.Text;
        }        
        
        if (e.CommandName == RadGrid.InitInsertCommandName ) //"Add new" button clicked
        {
            GridEditCommandColumn editColumn = (GridEditCommandColumn)RadGrid1.MasterTableView.GetColumn("EditCommandColumn");
            editColumn.Visible = false;
           
        }
        else if (e.CommandName == RadGrid.RebindGridCommandName && e.Item.OwnerTableView.IsItemInserted)
        {
            e.Canceled = true;
        }
        else
        {
            GridEditCommandColumn editColumn = (GridEditCommandColumn)RadGrid1.MasterTableView.GetColumn("EditCommandColumn");
            if (!editColumn.Visible)
                editColumn.Visible = true;            
        }

        if( e.CommandName=="PerformInsert")
            ComCon.InsertCompany(Com);

        if (e.CommandName == "Update")
        {
            ComCon.UpdateCompany(Com);
          
           
        }
      //  RadGrid1.Rebind();
        FillGrid();
       
    }

Where is error?

krds

lakmal

Veli
Telerik team
 answered on 31 Aug 2009
3 answers
123 views
Hello,
I've a master page (with <head> without runat=server) and a content page where I've put a telerik RadTextBox control (named "RadTextBox1").
I'm trying to access this object  in javascript with the following code:
 - var tb=$find("<%=RadTextBox.ID%>");

but when executing this line I get the following error at runtime: Impossible to modify Controls entirely because the control contains code blocks .

I'd the same problem with a normal page (not in the master/content paradigm) when putting the javascript function definition in the <head> segment but shifting it in the body area the error disappeared.

Now I've tried to put the javascript at the beginning and at the end of the <ContentPage> tag but nothing changes.

Any help?
Thanks.
Sebastian
Telerik team
 answered on 31 Aug 2009
4 answers
322 views
Hello Sir

           I want Hove menu (AJAX) on grid first column Item. Is this possible. How to achieve this ? How to catch the gird first column item ?

    Its Urgent

Thanks
Regards
Rahul
Rahul
Top achievements
Rank 1
 answered on 31 Aug 2009
2 answers
209 views
I want to hide the header of sub group property.
<GroupByExpressions>
                            <telerik:GridGroupByExpression>
                                <GroupByFields>
                                    <telerik:GridGroupByField FieldName="ProdName" />
                                </GroupByFields>
                                <SelectFields>
                                    <telerik:GridGroupByField FieldName="ProdName" HeaderValueSeparator=" : " HeaderText="Product Name" />
                                </SelectFields>
                            </telerik:GridGroupByExpression>
                            <telerik:GridGroupByExpression>
                                <GroupByFields>
                                    <telerik:GridGroupByField FieldName="TerritoryName" />
                                    <telerik:GridGroupByField FieldName="CropName" />
                                </GroupByFields>
                                <SelectFields>
                                    <telerik:GridGroupByField FieldName="TerritoryName" HeaderValueSeparator=" : " HeaderText="Territory : " />
                                    <telerik:GridGroupByField FieldName="CropName" HeaderValueSeparator=" : " HeaderText="Crop : " />

                                </SelectFields>
                            </telerik:GridGroupByExpression>
                        </GroupByExpressions>


How to hide ? when i am not setting the propery that time it give error selectfields error.

I want to hide the above bold content  header text. It only show the first one header ....
Rahul
Top achievements
Rank 1
 answered on 31 Aug 2009
1 answer
69 views
Hello,

We have a grid (Office 2007 theme) with many small columns. When one of these columns is sorted, IE increases the header height and shows the icon below the text. We want to force the header to always have the same height though.

overflow and text-overflow work for the text, but not for the image.
This happens only in IE. Firefox and Chrome correctly hide the overflowing image.

Any thoughts?

Thanks in advance.
Dimo
Telerik team
 answered on 31 Aug 2009
3 answers
248 views
I know RadAJAXManager uses updatepanels internally was wondering if there is an easier manner in which to set the ChildrenAsTriggers property other than programatically using the OnAjaxSettingCreated event?  Could there be property added to the AjaxUpdatedControl class?

Thanks
Matt
BaiH
Top achievements
Rank 1
 answered on 31 Aug 2009
6 answers
614 views
Hi,

I have a radGrid to which I am adding GridButtonColumn of type link at runtime. When I click on that link, it is calling  my code behind item command. I am able to retrive text and index from GridCommandEventArgs. I want to know how to get the header text that this link is clicked.

Please provide me some solution.

    protected void radGrid_ItemCommand(object source, GridCommandEventArgs e)
    {
        if (e.CommandSource.ToString() == "Telerik.Web.UI.GridLinkButton")
        {
            LinkButton lb = (LinkButton)e.CommandSource;
            string text = lb.Text;
            int index = e.Item.DataSetIndex;

        }
    }


Thanks,
Mahesh
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2009
2 answers
98 views
I downloaded and installed the latest version of the ASP.NET AJAX RadControls (v. 2009.2 826) and now my SeparatedButtons hack on my toolbars isn't working correctly.  In IE everything looks great, but in Firefox 3 the toolbar has a minimum height (maybe 5px) and the buttons and displayed under the toolbar.  If I remove the SeparatedButtons class attribute from the Toolbar then it works fine in Firefox (except all buttons are now pushed to the left)

In IE 7 (and IE8): Toolbar in IE

In Firefox 3: Toolbar in Firefox

I'm going to see what I can track down in Firefox but I was just wondering if anyone else has run into this issue and already solved it.

FYI...
The SeparatedButtons hack I'm talking about can be found here:
http://www.telerik.com/community/forums/aspnet-ajax/toolbar/button-alignment-questions.aspx
Alex Gyoshev
Telerik team
 answered on 31 Aug 2009
1 answer
94 views
Hi ,
My team is working with telerik controls . We are having licence also.We came across a scenario that is kind of show stoper for us now.

The application contains a radtabstrip with 8 tabs , all declaratively assigned in main.aspx page. Each tab is binded with usercontrols.
We have used Radajax manager to avoid post back whenever we click on any tab ( kind of updatepanel ).

Problem - When ever the main start page(Page having radtabstrip)  is loaded it's hitting all the usercontrols pageload which are binded to the other tabs & it makes the page nonresponsive for a while . Requirement is to load the tab contents when we click on the tab only . If we click on tab 2 then only 2nd tab's page load should hit it should not hit other tab's pageload. Can you please help us regarding the same so that it will help us solving the performance issue.

Let me know in case more details required.
In advance thank you.

Regards
Chinmay
Paul
Telerik team
 answered on 31 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?