Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Just upgraded from Q2 2009 to Q3 2009(.net35) and I get this error now when I try to execute a javascript in another pane.  This works in Q2 2009.   In IE7, the error is Object doesn't support this property or function.  Similar error in FF.  I have two versions of the script should work.  This script is called from the pane OnclientResized event like so(OnClientResized="LeftResize").  Here are the scripts:

function LeftResize()
        {
               
        var splitter = $find("<%= NestedSplitter.ClientID %>");
        var pane = splitter.getPaneById("<%= lframe.ClientID %>");
        var myiframe = pane.getExtContentElement();
        var mycontentWindow = myiframe.contentWindow;
                       
        try {
           mycontentWindow.SizeMe();
            
           }
        catch (e) {
            alert('Error calling content resize.  Please report this error to Network Automation.  Error is:  ' + e.message);
            }

            }

function LeftResizeV2() {
                var pane = $find("<%= lframe.ClientID %>");
                pane.getExtContentElement().contentWindow.SizeMe();
            }


they will call this js on the target page in Q2:

function SizeMe()
    {
    
    }





Tsvetie
Telerik team
 answered on 18 Nov 2009
12 answers
221 views
I have the RadTabStrip control setup with 5 tabs and inside each tab is a RadGrid. The tabs indicate a status for the items in the grid and it's the same user control in all 5 places. I'm trying to find a way to use the grid's drag/drop feature to drag a row item to a tab which would allow me to capture it, change the status of the item and rebind the source grid where the item came from (effectively removing it from this list). The MultiPage and Tab controls are setup using a RadAjaxManager so it's 100% callbacks with no postbacks.

Is this possible with Q2 2009?
Tsvetoslav
Telerik team
 answered on 18 Nov 2009
5 answers
154 views
Hi,

I am using the latest version of the RadEditor for Ajax (0619), i want to use the RadEditorNodeInspector, but i dont want to expose the classname, tooltip, target, hyperlink manager etc. I just want to expose only the URL, so the user can change it; also i want to increase the size of the URL box. Is this possible, if yes, how.

Thanks,
Raj
Rumen
Telerik team
 answered on 18 Nov 2009
2 answers
82 views
Hi All,

In a Webform i have two asp.net text boxes (Search fields) and one  asp.net button(Search Button),
one RadGrid to show search results based on the search fields given, after search button click.

On search button click post back is happening and In RadGrid all the grid events are not doing post backs cos i used Ajax manager and AjaxUpdatedControl.

Now i want not to happen post back on search button click, what i need to do to avoid post back on search button click.

Please help me regarding this.
pradeep k
Top achievements
Rank 1
 answered on 18 Nov 2009
1 answer
179 views
We're trying to keep track of a users preferred page size and set that at page load when they return to our site.  This works fine when they set the page size to an amount less than the current number of records.  But when a user has 25 records and sets the page size to 50, it sets it to 25.  50 doesn't get passed to the code behind PageSizeChanged method, instead 25 does.  I've looked into the control and the JS on the change button is:
var cpsi = document.getElementById("grdResults__ChangePageSizeTextBox"); if ( cpsi.value > 12 || cpsi.value == 12){cpsi.value=Math.min(12,12);return false;};

Clearly this amount is being adjusted client side if it is greater than the current record count.  The question is can I turn this off? It's a pain if the user tries to set the max to 50, it gets set to 25, then they add a new record and it's on the next page.

Thanks for your help.
Yavor
Telerik team
 answered on 18 Nov 2009
1 answer
141 views

Hello,

i am developing a user control which is single hierachy.i used the following design and code.
On click of epand button i got an error message like Child_Entity_Id is not found in "Parent_Entity" contract
 in parent grid "PreRender event".
-------Error -------------------

Message : DataBinding: '...DataContracts.Parent_Entity' does not contain a property with the name 'Child_Entity_Id'.
 Source : System.Web
  Data : System.Collections.ListDictionaryInternal
 TargetSite : System.Object GetPropertyValue(System.Object, System.String)
 Stack Trace :    at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName)
    at Telerik.Web.UI.GridTableView.PopulateDataKeys(Object dataItem)

i used the following design and code content

<telerik:RadGrid ID="gvwParent" runat="server" AutoGenerateColumns="false" Width="100%"
                ShowStatusBar="true" PageSize="3" AllowPaging="true" GridLines="None" CellPadding="0"
                OnPreRender="gvwParent_PreRender" CellSpacing="0" CssClass="MainClass" AllowSorting="true"
                OnItemDataBound="gvwParent_OnItemDataBound" ShowHeader="false" ShowFooter="false" DataMember="Parent"
                AllowFilteringByColumn="true" OnNeedDataSource="gvwParent_NeedDataSource"  OnDetailTableDataBind="gvwParent_DetailTableDataBind">
                <AlternatingItemStyle CssClass="Row2" />
                <ItemStyle CssClass="Row1" />
                <PagerStyle CssClass="PagerClass" Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true"
                    ShowPagerText="false" />
                <MasterTableView DataKeyNames="Parent_Entity_Id" AllowMultiColumnSorting="true">
                    <DetailTables>
                        <telerik:GridTableView AutoGenerateColumns="false" AllowPaging="true" AllowFilteringByColumn="true"
                            DataMember="ChildEntities" GridLines="None" CellPadding="0" CellSpacing="0"
                            ShowFooter="false" CssClass="MainClass" DataKeyNames="Child_Entity_Id"
                            DataSourceID='<%# Eval("ChildEntities) %>' AllowSorting="true">
                            <PagerStyle CssClass="PagerClass" Mode="NumericPages" />
                            <HeaderStyle CssClass="HeaderClass" />
                            <AlternatingItemStyle CssClass="Row2" />
                            <FooterStyle CssClass="FooterClass" />
                            <ItemStyle CssClass="Row1" />
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="Parent_Entity_Id" MasterKeyField="Parent_Entity_Id" />
                            </ParentTableRelation>
                            <Columns>                               
                                <telerik:GridTemplateColumn HeaderText="Title" ItemStyle-CssClass="gvwNameWidth"
                                    SortExpression="Child_Entity_Title">
                                    <ItemTemplate>
                                        <asp:Label ID="lblName" Text='<%#Eval("Child_Entity_Title") %>'
                                            ToolTip='<%# Eval("Child_Entity_Desc") %>' runat="server" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>                                                            
                            </Columns>
                            <NoRecordsTemplate>
                                No Records...!
                            </NoRecordsTemplate>
                        </telerik:GridTableView>
                    </DetailTables>
                    <Columns>
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <table class="tblmain">
                                    <tr>
                                        <td width="4px">
                                            <asp:Image ID="imgStatus" runat="server" Style="padding-left: 3px;" ImageUrl="~/Images/spacer.gif"
                                                Width="6px" Height="6px" />
                                        </td>
                                        <td class="Parent_HeaderCss">
                                            <asp:Label ID="lblParentName" runat="server" Text='<%# Eval("Parent_Entity_Title") %>'> </asp:Label>
                                          
                                        </td>                                       
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

 --------Code

 protected void gvwParent_OnItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        try
        {
            if (e.Item.OwnerTableView.DataMember.Equals("Child_Entities"))
            {
          
            }
            else
           {
              
            if (e.Item.OwnerTableView.DataMember.Equals("Parent"))
            {
                if (e.Item.ItemType == Telerik.Web.UI.GridItemType.Item || e.Item.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem)
                {
                  
             }
              
            }
  }
        }
        catch (Exception ex)
        {
            ExceptionManager.HandleException("", ex);
        }
    }

    protected void gvwParent_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        if (!e.IsFromDetailTable)
        {           
            gvwParent.DataSource = Parent_Entities;
        }
    }

    protected void gvwParentt_PreRender(object sender, EventArgs e)
    {
        try
        {
            if (!Page.IsPostBack)
            {
                gvwParent.MasterTableView.Items[0].Expanded = true;
            }
        }
        catch (Exception ex)
        {
            ExceptionManager.HandleException("", ex);
        }
    }

    protected void gvwParent_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
    {
        try
        {
            if (e.DetailTableView.Name.Equals("Chiled_Entities"))
            {
                Parent_Entity parentEntity = Parent_Entities.Find(delegate(Parent_Entity PE) { return PE.Parent_Entity_Id == Convert.ToInt32(e.DetailTableView.ParentItem.GetDataKeyValue("Parent_Entity_Id")); });
                if (parentEntity  != null)
                    e.DetailTableView.DataSource = parentEntity .Child_Entities;
            }
        }
        catch (Exception ex)
        {
            ExceptionManager.HandleException("", ex);
        }
    }



Thanks,
Swetha

Suresh K
Top achievements
Rank 1
 answered on 18 Nov 2009
3 answers
170 views
Hello!

I've moved legend  to the bottom by setting:

                            <Legend> 
                                <Appearance Position-AlignedPosition="Bottom" Overflow="Row"
                                </Appearance> 
                            </Legend> 

and now on the right of chart where was legend previously is empty place (chart width has nod adjusted). How can I fix this?
Marco
Top achievements
Rank 1
 answered on 18 Nov 2009
3 answers
333 views
I am having an issue with my radgrid.  I enabled filtering on my runtime databinded grid.  When I filter on Some fields (non integer) they are working fine but on the INTEGER and BIT field on the that I am recieving the above error on the ajax postback.  Any ideas?
Princy
Top achievements
Rank 2
 answered on 18 Nov 2009
2 answers
167 views

Hi!

Scheduler Version 2008.2.1001.35

The problem is best described in the attached file. The file shows part of the week view, week by week. I have Scheduler that is bound to generic list. I cant find why my appointments are not displying always in the same manner.

Radoslaw
Top achievements
Rank 1
 answered on 18 Nov 2009
2 answers
81 views

Hi Telerik,

We are using ajax rad tree view in our project with the custom skin styles. We found that the background-position values in the styles classes: rtPlus, rtMinuns are replacing with different values. Due to that the expand and collapse images in the tree view nodes are disappearing on mouse over.

Note: But the same skin is working fine if we use it on another project.

Please suggest me to apply only skin styles.

Thanks in advance,
Balaji Velasiri

Balaji
Top achievements
Rank 1
 answered on 18 Nov 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?