Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
192 views

Hi!

 

I´ve been fighting with this for a long time and hope someone can help me.

 

I have a RadTreeview as a usercontrol. The control is placed inside a pagelayout.  Everything work great on my local computer. When I put the dll on live server I end up with a javascript error: Object excepted, when trying to use the control (hoover,clicking,checking whatever!).
When debugging it I received this (in ScriptResource.axd):


this._properties.setValue("hoveredCssClass",_54,true);

},get_childListElement:function(){

if(!this._nodeListElement){

this._nodeListElement=$(this.get_element()).children("ul").get(0)||null;

}

return this._nodeListElement;

},get_contentElement:function(){

if(!this._contentElement){

this._contentElement=$(this.get_element()).children("div").get(0)||null; ß Here it stops.

}

return this._contentElement;

},get_contextMenuID:function(){

 

The thing is that it works when pagelayout is in another .master-file except the default one?
I´ve managed to recreate the problem locally but could fix it by adding following lines to web.config (the Fiddler-program was telling me ScriptResources couldn´t be loaded):

<add verb="GET,HEAD" path="ScriptResource.axd"

type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

validate="false"/> 

 

and

 

<add path="Telerik.Web.UI.WebResource.axd" verb="*"

type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.1.318.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

validate="false" /> 

and checkbox “Verify that the file exists” on .adx extension is unchecked(IIS6)
Happy I logged in to the live server and checked the web.conig. The lines where already there!!!!!!

I´ve compared the Telerik dll´s in GAC and they are identicly with my local computer:

      Telerik.Web.Design, Version=2009.1.318.20
      Telerik.Web.UI, Version=2009.1.318.20

      Telerik.Web.UI, Version=2008.3.1314.20    ß RadEditor is using this one.

 

I´ve also tried to create a new RadTreeview control with just 3 nodes and width and height set. Still the same problem, ON THE SERVER, NOT locally on my machine?

My treeview also check´s for scriptmanagers and adds one if needed. On the failing .master file there is already a scriptmanager defined with EnablePartialRendering=true; . Besides errors is instant shown if there missing and i never recieved these so....

So, same set of dll´s and same web.config, master and pagelayout? 

i´ve read every post about "RadTreeview Object exptected" but none of them seems like mine?

Any ideas?
Joakim
Top achievements
Rank 1
 answered on 08 May 2009
1 answer
153 views
I see in your new skins that you have changed the "selected" tab background color to white in most cases. This does not look particularly good in most of my implementations, as most of my tabstrips are on white backgrounds. However, I assume there must be some straightforward way to set the tabstrip CssClass and specify a different background-color for the selected tabs.
Princy
Top achievements
Rank 2
 answered on 08 May 2009
7 answers
156 views
Hi,

I am currently having a problem regarding the left, center and right alignment button on the rad editor.
When I try to click any of the alignment, all the text in the body of the rad editor moves to that position.

I would like the behavior of the alignment button to be like the microsoft word which only aligns the lines that the user highlighted, and this is not happening in telerik rad editor Q1 2008. Is there any option to make the alignment buttons work like the alignment buttons on microsoft word?

Regards,
Jonathan
Martin
Telerik team
 answered on 08 May 2009
2 answers
278 views
Dear,
I use RadGrid with checkbox to select row .I set up a delete button outside the grid.When I click button,1 javascript confirm delete,this script return value exactly (true or false).But after,it can not jump to code behind althougn value return true or false.Is problem I set RadAjaxManangerProxy for delete button ?If I remove delete button out to RadAjaxManagerProxy,It works well.If I remove oncilck attribute ,it also delete well.How I can do?Please give me a solution.
This is my code:
 <telerik:RadAjaxManagerProxy ID="rproxyEmpList" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="UR001001grvEmployee">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="UR001001grvEmployee" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="UR001001btnDelete">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="UR001001grvEmployee" />
                </UpdatedControls>
            </telerik:AjaxSetting>            
        </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script language="javascript" type="text/javascript">  
            function ProcessDeleteClient(mesY,mesN)
            {
                var grid = $find("<%=UR001001grvEmployee.ClientID %>");
                var MasterTable = grid.get_masterTableView();
                var selectedRows = MasterTable.get_selectedItems();               
                if(selectedRows.length > 0)
                {
                    if(confirm(mesY) == true)
                    {
                        return true;        
                    }
                    else
                        return false;
                }
                alert(mesN);
                return false;  
             }
        </script>


    </telerik:RadScriptBlock>

Page Load(I set atttribute onlick):
     UR001001btnDelete.Attributes.Add("onclick", "return ProcessDeleteClient('" + Resources.Strings.UR001001msgConfirm + "','" + Resources.Strings.UR001001messAlert + "');");

Detelete button click event:
   protected void UR001001btnDelete_Click(object sender, EventArgs e)
        {
            helper.WriteLog(Constant.LogInfo, Resources.Strings.ListEmployee, Resources.Strings.UR001001btnDelete_Click, Resources.Strings.Initiation);
            try
            {

                DeleteItem();
                ListData = empFuc.GetListEmployee(Int32.Parse(SessionManager.Department), "", "", "");
                DisplayData(true);
            }
            catch (Exception ex)
            {
                helper.WriteLog(Constant.LogError, Resources.Strings.ListEmployee, Resources.Strings.UR001001btnDelete_Click, ex.Message);
            }
            helper.WriteLog(Constant.LogInfo, Resources.Strings.ListEmployee, Resources.Strings.UR001001btnDelete_Click, Resources.Strings.Success);

        }

HTML:
  <telerik:RadGrid ID="UR001001grvEmployee" Width="100%" runat="server" AutoGenerateColumns="False"
                                EnableLinqExpressions="false" GridLines="None" AllowPaging="True" AllowMultiRowSelection="True"
                                AllowSorting="True" OnSortCommand="UR001001grvEmployee_SortCommand" AllowFilteringByColumn="True"
                                OnNeedDataSource="UR001001grvEmployee_NeedDataSource" Font-Names="Arial" OnItemCreated="UR001001grvEmployee_ItemCreated"
                                PageSize="10" OnPreRender="UR001001grvEmployee_PreRender">
                                <HeaderStyle Font-Names="Arial" />
                                <GroupingSettings CaseSensitive="false" />
                                <ClientSettings>
                                    <Selecting AllowRowSelect="true" />
                                </ClientSettings>
                                <HeaderContextMenu EnableTheming="True">
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </HeaderContextMenu>
                                <MasterTableView Width="100%" DataKeyNames="EmployeeID" Font-Italic="False" Font-Names="Arial"
                                    Font-Overline="False" TableLayout="Fixed">
                                    <RowIndicatorColumn>
                                        <HeaderStyle></HeaderStyle>
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn>
                                        <HeaderStyle></HeaderStyle>
                                    </ExpandCollapseColumn>
                                    <Columns>
                                        <telerik:GridClientSelectColumn ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                            <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                        </telerik:GridClientSelectColumn>
                                        <telerik:GridHyperLinkColumn UniqueName="EmployeeCode" CurrentFilterValue="" DataType="System.String"
                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="EmployeeCode"
                                            DataNavigateUrlFields="EmployeeID" DataNavigateUrlFormatString="~/User/EmployeeInfo.aspx?form=EmployeeInfo&id={0}"
                                            DataTextField="EmployeeCode" HeaderText="<%$ Resources:Strings, UR001001lblEmployeeCode %>"
                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle HorizontalAlign="Center" Width="100px"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Left" Width="100px"></ItemStyle>
                                        </telerik:GridHyperLinkColumn>
                                        <telerik:GridBoundColumn UniqueName="FirstName" FilterListOptions="VaryByDataType"
                                            AutoPostBackOnFilter="true" SortExpression="FirstName" CurrentFilterFunction="Contains"
                                            DataField="FirstName" HeaderText="<%$ Resources:Strings, UR001002lblFristName %>"
                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle HorizontalAlign="Center" Width="100px"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Left" Width="100px"></ItemStyle>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="SureName" DataType="System.String" AutoPostBackOnFilter="true"
                                            CurrentFilterFunction="Contains" SortExpression="SureName" DataField="SureName"
                                            HeaderText="<%$ Resources:Strings, UR001001lblLastName %>" HeaderStyle-HorizontalAlign="Center"
                                            ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle HorizontalAlign="Center" Width="100px"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Left" Width="100px"></ItemStyle>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridHyperLinkColumn DataType="System.String" SortExpression="EmailAddress1"
                                            DataNavigateUrlFields="EmailAddress1" DataNavigateUrlFormatString="#" DataTextField="EmailAddress1"
                                            HeaderText="<%$ Resources:Strings, UR001002lblEmail %>" HeaderStyle-HorizontalAlign="Center"
                                            ItemStyle-HorizontalAlign="Left" AllowFiltering="false">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                        </telerik:GridHyperLinkColumn>
                                        <telerik:GridBoundColumn DataType="System.String" SortExpression="Phoneno" DataField="Phoneno"
                                            HeaderText="<%$ Resources:Strings, UR001002lblPhoneNo %>" HeaderStyle-HorizontalAlign="Center"
                                            ItemStyle-HorizontalAlign="Right" AllowFiltering="false">
                                            <HeaderStyle HorizontalAlign="Center" Width="90px"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Right" Width="90px"></ItemStyle>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataType="System.String" SortExpression="Mobileno" DataField="Mobileno"
                                            HeaderText="<%$ Resources:Strings, UR001002lblMobilePhone %>" HeaderStyle-HorizontalAlign="Center"
                                            ItemStyle-HorizontalAlign="Right" AllowFiltering="false">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </MasterTableView>
                                <FilterMenu EnableTheming="True">
                                    <CollapseAnimation Type="None" Duration="200"></CollapseAnimation>
                                </FilterMenu>
                            </telerik:RadGrid>  <asp:Button runat="server" ID="UR001001btnDelete" Text="<%$Resources:Strings,UR001001btnDelete%>"
                    OnClick="UR001001btnDelete_Click"  />





huynh
Top achievements
Rank 1
 answered on 08 May 2009
1 answer
86 views
We need to rebuild a treeview from values stored in the database.  We'd like to be able to reset the tri-state checkbox for the treeviews if there are both checked and unchecked child nodes for a given node however, the CheckState property is read-only.  Is there any specific reason for this or any way to set the CheckState server-side?

Thanks,
Adam
Shinu
Top achievements
Rank 2
 answered on 08 May 2009
3 answers
244 views
hi

i am using  Q1 version.  we are saving text with  the Font size and font family in to the  database in Html format.
when i show that text in Editor,  i want to set database Font size and font family  for that Text.. how do i replace editor Font size and font family with database Font size and font family.  please give me solutions ASAP.

Regards

Rahul



Rumen
Telerik team
 answered on 08 May 2009
7 answers
831 views
I know in the editor configuration file, we can set the default font name and font size for a rad editor control. But I want to set them from server side.

I have a page with a rad editor control. For the available fonts, I will get all the fonts available to the web server. Than I want to set the default font name and default font size to whatever a user has chosen and saved in our database.

For an editor object, I can finf properties such as DefultFontName or DefaultFontSize. How can I get that done?

Thanks.


Chris
Rumen
Telerik team
 answered on 08 May 2009
1 answer
223 views
Hi,

 I am using the MultiView aspect of the calendar as such:

<

 

telerik:RadCalendar ID="RadCalendar1" runat="server" Font-Names="Arial, Verdana, Tahoma"

 

 

ForeColor="Black" Style="border-color: #ececec" ShowRowHeaders="false" ShowOtherMonthsDays="false" EnableNavigation="false" EnableMultiSelect="false" FocusedDate="2009-01-01" MultiViewColumns="3" MultiViewRows="4">

 

</

 

telerik:RadCalendar>

 



It all looks good, however when I hover over the Column Header, it highlights all of the column even though the multiselect is set to false.

Is there a way I can fix this?

Cheers,
Jonathan
Princy
Top achievements
Rank 2
 answered on 08 May 2009
1 answer
128 views
Hi All, Excel export feature works fine, but would like to add a Listbox values in one of the columns during the export.  For example, There is a column called category and when exported this column should not only have category value but also choice for other categories (Apple, Orange, Grape) in a drop down list.  Please let me know.

Thanks,

Shinu
Top achievements
Rank 2
 answered on 08 May 2009
1 answer
109 views
I am working on a bill of material that can be displyayed as autoexpanded or expanded as necessary. The problem I have is that the expansion icon is available for all items, not just the one with children underneath. I need a way to hide the details grids that do not have children underneath (instead of shown "no records to display") when using autoexpand and hide the expansion icon for the rows with no children when the grid is collapsed.

Currently looks like this:

Expanded
-  Row1
     + Row A
-  Row2
   + No Records to display
- Row3
  +  Row B

Collapsed

+  Row1
+  Row2
+ Row3
 


Should look like this:

Expanded
-  Row1
      Row A
  Row2
 - Row3
    Row B

Collapsed

+ Row1
   Row2
+ Row3


Shinu
Top achievements
Rank 2
 answered on 08 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?