Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
1.I using latest version of telrik dll.In Previous version dll i was used "webblue" Skin.But in latest dll webblue skin shows enterly different than previous version dll.

2.How i can add css property into dll?
Princy
Top achievements
Rank 2
 answered on 18 Nov 2009
5 answers
133 views
In our application, on click of a button, we are opening a rad window. This page( which is opened in the rad window) makes some calls to web services which take some time to return.

Recently, we implemented  an "auto logout" functionality using

http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/

This functionality puts a div on top of the page, which gives an option to the user to stay in teh application.

The problem is, if we do have a rad window, the rad window goes on top of this div and is not shown to the user. How do we put a div (belonging to the parent page) on top of the iframe opened opened by radwindow


Georgi Tunev
Telerik team
 answered on 18 Nov 2009
2 answers
97 views
Hi,

  Combo with checkboxs,

i hav a "Clear" button on the header template , textboxs on footer template. 

If i click the "Clear" button, uncheck all the items that is done. also wants to clear the Textbox values on the footer template ????..

how to achieve this in "Client Side"....Plz suggest ..

Thanks & Regards,

Suresh Kannan P
Suresh Kannan
Top achievements
Rank 1
 answered on 18 Nov 2009
4 answers
225 views

The code is very simple. TreeView control in a Ajax Panel with an Update Panel on it. On click of a button, the treeview control needs to regenerate from the database and I am using server side program to regenerate the tree. For small hierarchies it is working perfectly. If I try with a big hierarchy, I am getting an error "Maximum Length Exceeded". How should I resolve this?

I already specified the maximum timelimit for RadScript Manager.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="360000" ScriptMode="Release">

 

 

 

</telerik:RadScriptManager>

I did specified the max length in the web config.
<
system.web.extensions>

 

<

 

scripting>

 

<

 

webServices>

 

<

 

jsonSerialization maxJsonLength="5000000" />

 

</

 

webServices>

 

</

 

scripting>

 

</

 

system.web.extensions>

I have the execute Timeout in the system.web tag too.

 

<

 

httpRuntime executionTimeout="360000" maxRequestLength="102400"/>

 


Luke
Top achievements
Rank 1
 answered on 18 Nov 2009
1 answer
91 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
230 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
159 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
85 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
185 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
147 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
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?