Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
Hello:

We have an application that uses the rad Editor in two different pages of the app, each page resides in a different server, the control works great for the most part (justification, spell check bold, italic, etc), however, when it comes to the Find button, we are observing different behaviors in the to pages, in both we see the iframe with the find and replace options, but while on one it works with no issues, on the other it does not work at all, after further debbuging on the error page, we see  that the find/replace frame is erroring out when loading, it appears that ScriptResource.axd is trying to set f with a value but f s null, here is the code that breaks (highlighted)

if($telerik.isIE){d=f.children
}for(var b=0,e=d.length;
b<e;
b++){var c=d[b];
if(c.nodeType==1&&c.tagName.toLowerCase()==g){Array.add(a,c)
}}return a
},getChildrenByClassName:function(f,d){var a=new Array();
var g=f.childNodes;
if($telerik.isIE){g=f.children
}
 ....

Needless to say, this worked perfectly on dev environment (currently in QA environment) I Believe this has to be a configuration issue, however after looking at the Web.Config we could not find any differences, then we proceed to verify that DLL version's and dates with no luck. would you mind looking at the console error output

Exception ``(null)'' thrown from function (null)() in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 1.
Exception ``TypeError: this.dateTimeFormat is undefined'' thrown from function Sys$CultureInfo$_getAbbrMonthIndex(value=string:"") in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 6391.
[e] message = [string] "this.dateTimeFormat is undefined"
Exception ``TypeError: this.dateTimeFormat is undefined'' thrown from function (null)() in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 620.
[e] message = [string] "this.dateTimeFormat is undefined"
Exception ``(null)'' thrown from function anonymous(e=XPCCrossOriginWrapper:{0}) in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7Xc3guXkB-LfVrgjKswTaCWKgo_6Wrs_o4FtuYwjnbZTA2E782Cw_9Ct6nsf2uIkI6Q2&t=6cba1637> line 423.
Exception ``(null)'' thrown from function anonymous(e=XPCCrossOriginWrapper:{0}) in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7Xc3guXkB-LfVrgjKswTaCWKgo_6Wrs_o4FtuYwjnbZTA2E782Cw_9Ct6nsf2uIkI6Q2&t=6cba1637> line 428.
Exception ``2147500034'' thrown from function XPCOMUtils_QueryInterface(iid=XPComponent:{7}) in <file:/C:/Program%20Files/Mozilla%20Firefox/modules/XPCOMUtils.jsm> line 265.
Exception ``(null)'' thrown from function anonymous(e=XPCCrossOriginWrapper:{0}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7Xc3guXkB-LfVrgjKswTaCWKgo_6Wrs_o4FtuYwjnbZTA2E782Cw_9Ct6nsf2uIkI6Q2&t=6cba1637> line 428.
Exception ``(null)'' thrown from function anonymous(e=XPCCrossOriginWrapper:{0}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7Xc3guXkB-LfVrgjKswTaCWKgo_6Wrs_o4FtuYwjnbZTA2E782Cw_9Ct6nsf2uIkI6Q2&t=6cba1637> line 428.
Exception ``(null)'' thrown from function (null)() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 1.
Exception ``TypeError: this.dateTimeFormat is undefined'' thrown from function Sys$CultureInfo$_getAbbrMonthIndex(value=string:"") in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 6391.
[e] message = [string] "this.dateTimeFormat is undefined"
Exception ``TypeError: this.dateTimeFormat is undefined'' thrown from function (null)() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 620.
[e] message = [string] "this.dateTimeFormat is undefined"
Exception ``TypeError: f is null'' thrown from function anonymous(d=string:"rtsLI", f=null:null) in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 491.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous(b=Object:{3}, a=Object:{33}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XZAh4G12s2fz7leusT5wiF-pxb_P1W-x2d_h2gnxNI0_ILGOE6LuxfFMZFIzK4SCsg2&t=6cba1637> line 483.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XZAh4G12s2fz7leusT5wiF-pxb_P1W-x2d_h2gnxNI0_ILGOE6LuxfFMZFIzK4SCsg2&t=6cba1637> line 530.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZrH-FQ8SvDaMe7l546ew9z75BR8R41pBLQzoV8599q7nljZ3OzS1KKKDAepqV2f1eM1&t=6cba1637> line 363.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZrH-FQ8SvDaMe7l546ew9z75BR8R41pBLQzoV8599q7nljZ3OzS1KKKDAepqV2f1eM1&t=6cba1637> line 313.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function Type$callBaseMethod(baseArguments=void:void, name=string:"initialize", instance=Object:{33}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 1543.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XZAh4G12s2fz7leusT5wiF-pxb_P1W-x2d_h2gnxNI0_ILGOE6LuxfFMZFIzK4SCsg2&t=6cba1637> line 639.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function Sys$Component$endUpdate() in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 2587.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function Sys$Component$create(element=HTMLTableElement:{1}, references=null:null, events=null:null, properties=Object:{6}, type=function:anonymous) in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 2736.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/Telerik.Web.UI.DialogHandler.aspx?DialogName=FindAndReplace&Skin=Default&Title=Find%20And%20Replace&doid=26acc147-571c-4586-84bc-c4d04d4889c5&dpptn=&dp=CgEDR3VOHiAzE3wFETwcNXwCfiYVcH9NYHlpGyQ3ZABFYX4vXiQpFhciEyMyNURfFBBkVkh0M3s1AwsZEVgYNnxneRYeRXdSVnhuXQszShtyXHpzbAsLHx4hHx8KC3VMOhFgaU50LCA7Ax8AES0ALEcCGR8AbWtJVwJ1Qgo0fwlybmJyYDMlBBQiEzULC19XFD1kX3V0Hjo7dB8AEQYiK0cNfhUuGgVUZw1XRiQ3CxRybkQ0YDJkOSwiPio6C3VWO2RjXGFgHhszdRcWHAcmFUUSalACfllAY3pXHxAcZAhAcGIbbwkTOhwPB2w8IUd2OxBad0lrPC0sAXheEgZ7DUMCZRwpYEFsVHtLWR8dAyl1S2I3bwsfMBkwISM%2FMFdqOhB8Z05kDiUzPiEZHy4AHXADXD0pb0lLVx1DVxI3ShFGYEQzdDELBRtGDzc%2BCwJyPQF7Vk5rPCUALg9ZHz4cHGgAVBQfcGduUCF9GhI3QjBAFlAHawwDOhhGDC4yIFtuOhB0d2J0Hic2AgdZHD0qbUVlQCIdQnd7VxJTWREkcEpGYX4UbwkLOQMZMWg9IGFjPQMHd3tODi03AwBcHz0cBGsDQBEecEFAZwx%2BFwlAZE5AYX46WAoXIhwyBzEKIQpLO2d0R0hkAT8zKQsfKFkbLWsWW1IYbwhLbB1DXiMddEpFcRE2byAXYS82Ex4xMUtfAgVBWGBiW3E%3D> line 707.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous(args=Object:{0}, source=Object:{29}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 2399.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function Sys$_Application$_doInitialize() in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 4280.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 47.
[e] message = [string] "f is null"
Exception ``2147500034'' thrown from function XPCOMUtils_QueryInterface(iid=XPComponent:{7}) in <file:/C:/Program%20Files/Mozilla%20Firefox/modules/XPCOMUtils.jsm> line 265.

Lini
Telerik team
 answered on 31 Aug 2009
2 answers
299 views
Hi,

I am having problem in accessing value from a column with ReadOnly="True". Actually i don't want a column (e.g. PriceID) to be displayed in Insert/Edit Form, but i need its value to update the records in database. Currently if I set the readonly="false" it gets the value , but when its "true" then value in PriceID remains NULL.

Please help me in writing code , so that I can access value from a Readonly="true" column, and it should not be visible in grid and in editmode.

Thanks

Cheers, ALi
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2009
2 answers
172 views
Hi,

I am using the version "2009.1.311.35"  for one of our projects in asp.net 3.5; and I am facing a problem while enabling hyperlink manager for the editor.

It gives the error "The Telerik dialogs require a HttpHandler registration in the web.config file.Please use the control's Smart Tag properties to add the handler automatically, or see the help for more information."

We have the following declarations in our web.config:

Handlers in web.config

==================

<add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>

      <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>

      <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>

      <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>

 

Tools added in ToolsFile.xml

======================

    <tool name="LinkManager" shortcut="CTRL+K"/>

    <tool name="Unlink" shortcut="CTRL+SHIFT+K"/>

Lini
Telerik team
 answered on 31 Aug 2009
3 answers
128 views
Hi,

I am using a radcombobox, where I set it as disabled using javascript functions such as
radcombobox1.disable()
or
radcombobox1.set_enabled(false)

But the combobox gets enabled once the page gets refreshed.
How can the viewstate of the combobox be maintained?

Thanks in advance...
Genady Sergeev
Telerik team
 answered on 31 Aug 2009
4 answers
101 views
Hi. I've noticed when using the Simple skin and only in IE7, that the hover appearance is skewed. The problem can be seen in the demos of the decorator if you select the Simple skin. It works on IE6 and FF3 no problems.

http://demos.telerik.com/aspnet-ajax/formdecorator/examples/default/defaultcs.aspx

Daniel
Martin
Telerik team
 answered on 31 Aug 2009
1 answer
123 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
165 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
118 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
315 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
201 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
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?