Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views
Firstly,  i have many times used

RadGrid.MasterTableView.IsItemInserted?
But i would like to know is there anything similar property to find the Details Tables inserted command on client side.
I have a Details Tables in which i have a grid which actually has checkbox. I want to make it enable and disable according to Command like we do for parent grid using above code.
Thanks in advance.

 

 

Mira
Telerik team
 answered on 01 Sep 2009
2 answers
102 views
Is there a way to change the dragged item for a RadGrid Control?  I currently have a RadGrid with a Template Column.  In this template column, I have a server control in it.  I want it so that when I drag that row, I don't see the entire control in my template column.  This is the row that is following the mouse when you do the dragging.  It would be much better if I could change that to show maybe just a row of text instead.

Kai Thao
Kai
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
116 views
Hi,

I'm using the latest version of the Telerik controls and using the RadGrid to show a list of quotations. Dependent on the quote status I want to show/hide linkbuttons for each row depending on which is valid at the time. I have the following columns:

                   <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="View" Text="View Quote" UniqueName="lnkView" />
                   <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Edit" Text="Edit Quote" UniqueName="EditColumn" />
                   <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="BuyNow" Text="Buy Now" UniqueName="BuyNowColumn" />

in the code behind I'm using grdCarQuotes_ItemCreated and grdCarQuotes_ItemDataBound to try and find the linkbutton controls to set their visibility as so:

        protected void grdCarQuotes_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                // Get car quote status
                string status = ((BLL.DTO.QuoteSummaryRow)e.Item.DataItem).Status;
                LinkButton lnk = e.Item.FindControl("lnkView") as LinkButton;
                if(status != "Quoted")
                          lnk.Visible = false;
            }
        }

However, it can't find the control. Please can you advise me on how to best achieve this simple requirement?

TIA,

Rick
Rick
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
392 views
Hi,
I am assigning all the fields from the property of an object in my rad tab pages, and I am doing it on the load of the page. When I click on the tab, it does postback and the whole page refreshes, which is not required, as I am not sending any value to DB or any other control. Please let me know how to avaid such a autopostback or page reload on tab selection on the radtab control.

Its very urgent, please do reply soon....

Thanks,
Shameem
Shameem Jawed
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
142 views
I am using the load on demand tabstrip example with 5 tabs. Each tab has autogenerated grid with column_created event for the column formatting. When the page loads, it loads the grid in first tab properly. When I click on the second tab, the autogenerated grid loads fine. There is a dropdown in the second tab, when the dropdown value changes, radgrid is again generated automatically depending on dropdown selected value. As I understand, whenever any server side event (like Dropdown selected index changed) is executed in second tab or any other tab, all the already loaded tabs will reload. This destroys the radgrid formatting in the first tab or any other loaded tab other than the clicked one. I noticed, during the second tab dropdown selectedindexchanged event, pageload of first tab is fired and also the radgrid_column created event in the first tab, as all the column is ExpandColumn, the formatting of the grid in first page is lost.
Everything works fine for the page except this formatting issue, can u please suggest how that problem can be solved.

Thanks.
Sebastian
Telerik team
 answered on 01 Sep 2009
3 answers
82 views
I am using the Outlook skin with the RadEditor.
I have the node inspector module visible. The issue is that the node inspector box is not tall enough to show the correctly.
This is particularly bad when viewing a table cell properties.
Is there a fix for this issue?



Martin
Telerik team
 answered on 01 Sep 2009
4 answers
335 views

For some months now we have been working on a large .NET application that will serve as the Proposal Development System for our company. Because the methods of developing proposals vary significantly between the Eastern and Western divisions of our company, we have developed some of our pages to display Eastern or Western versions of themselves depending on the location of the user. This is accomplished by first determining the user’s location and then by loading appropriate user controls (.ascx) depending on that location.

In our application we have a web page (.aspx) which, in turn contains an update panel. This update Panel contains a placeholder into which an appropriate user control (Eastern or Western) will eventually be loaded. The main .aspx page also contains a checkbox which, when checked will indicate that some of the buttons on the screen need to be disabled. One of these buttons is actually contained in the user control.

In addition to the button, the .ascx controls also contains a RadGrid. In both Eastern and Western .ascx controls the RadGrids are named WBSGrid.

Finally the .aspx page contains both a ScriptManager ( actually a ScriptManagerProxy, as the actual ScriptManager is contained in our Master Page) and a RadAjaxManager.

 

The Update Panel in the .aspx document is defined as follows:

 

<asp:UpdatePanel ID="WBSUpdatePanel"  runat="server" UpdateMode="Conditional">

    <ContentTemplate> 

        <asp:Panel ID="pnlWBSControls" runat="server"

                   Style="padding: 5px;" 

                   ScrollBars="None">

        <asp:PlaceHolder ID="phPnlWBSControls" runat="server"></asp:PlaceHolder>

        </asp:Panel>

    </ContentTemplate>

    <Triggers>

        <asp:AsyncPostBackTrigger ControlID="ckbLocked" />

     </Triggers>

</asp:UpdatePanel>

 

Notice the placeholder, phpnlWBSControls, where we will load our ascx controls. The trigger is required to allow the contents of the Update Panel to be re-rendered when the trigger changes.   

 

There is also a RadAjaxManager in the .aspx document which references WBSGrid and is defined as follows:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

    <AjaxSettings>

        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="TeamMembersGrid" />

            </UpdatedControls>

        </telerik:AjaxSetting>

        <telerik:AjaxSetting AjaxControlID="TeamMembersGrid">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="TeamMembersGrid" />

            </UpdatedControls>

        </telerik:AjaxSetting>

   

        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="WBSGrid" />

            </UpdatedControls>

        </telerik:AjaxSetting>

        <telerik:AjaxSetting AjaxControlID="WBSGrid">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="WBSGrid" />

            </UpdatedControls>

        </telerik:AjaxSetting>

    </AjaxSettings>

</telerik:RadAjaxManager>

 

Here is our problem:

1.       Let’s presume, for the moment, that we start with the checkbox not checked. If, for the life of the event in which the page participates, we do not check it, the page performs flawlessly.

2.       If we check the checkbox, the following problems crop up:

a.       The button we are trying to disable in the user control is disabled. However we also want to hide the Command Item Display of the Grid and this does not happen

b.       We receive an ajaxified error message ‘A Control is already associated with the element’ – we believe the ‘element’ to be the RadGrid from the user control.

c.        If we then attempt (within the same session) to make any alterations within the RadGrid the display becomes corrupted. Essentially all of the headings within the RadGrid are shifted to the far right of the page with all of the rows within the grid being shifted to the far left of the page.

d.       If we try to add a new record to the grid using the Command Item Display that we had tried to hide, the add fails silently and we see the corrupted screen described earlier.

e.       If we leave the checkbox checked, navigate away from the page in question, and come back in with the same transaction, the RadGrid’s rendering and behavior seem to be corrected.

f.         If after doing step e we uncheck the checkbox we receive the error mentioned in step b and the RadGrid reverts back to it’s unusual behavior.

3.       If I comment out the line of code that tries to hide the Command Item Display within the RadGrid, the error message from item c persists but the RadGrid does not get corrupted.

4.       Removing the Triggers note from the Update Panel and/or changing the Update Mode to ‘Always’ does not correct the problem.

Can you suggest a solution?    

Sebastian
Telerik team
 answered on 01 Sep 2009
1 answer
122 views
I am applying FormDecorator to my pages to apply office-2007 theme to buttons. It is showing the buttons correctly with appropriate theme set. But, when I try to assign any custom CSS class the effect of FormDecorator vanishes..
So, Is like that - when you use FormDecorator to decorate say button, you can apply custom css class to it (basically i want to show up and down image on buttons for which i am trying to write custom css class but it removes the formdecorator effect)
Svetlina Anati
Telerik team
 answered on 01 Sep 2009
1 answer
94 views

Hello everyone

We are using the Telerik RadEditor for MOSS and have stumbled upon a problem with upgrading the editor.

A WebPart exists that uses the default content editor in moss, but when editing it, it is edited by the 5.2 version of the RadEditor. This seems to cause a problem after our upgrade to 5.5, where the following error occurs:

Server Error in '/' Application.

--------------------------------------------------------------------------------

Invalid Configuration File:/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/ConfigFile.xml

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Invalid Configuration File:/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/ConfigFile.xml

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:

[Exception: Invalid Configuration File:/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/ConfigFile.xml]

   Telerik.SharePoint.MOSSRadEditor.GetValidConfigFile() +208

   Telerik.SharePoint.MOSSRadEditor.ProcessConfigFile() +125

   Telerik.SharePoint.MOSSRadEditor.OnLoad(EventArgs e) +20

   System.Web.UI.Control.LoadRecursive() +66

   System.Web.UI.Control.AddedControl(Control control, Int32 index) +350

   Telerik.SharePoint.RadEditorToolPart.OnPreRender(EventArgs e) +150

   System.Web.UI.Control.PreRenderRecursiveInternal() +108

   System.Web.UI.Control.PreRenderRecursiveInternal() +224

   System.Web.UI.Control.PreRenderRecursiveInternal() +224

   System.Web.UI.Control.PreRenderRecursiveInternal() +224

   System.Web.UI.Control.PreRenderRecursiveInternal() +224

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

 

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

Contents of the config file (/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/ConfigFile.xml):

<configuration>

  <property name="AllowThumbGeneration">True</property>

  <property name="ConvertToXhtml">True</property>

  <property name="enableXHTML">True</property>

  <property name="EnableDocking">False</property>

  <property name="ShowHtmlMode">True</property>

  <property name="ShowPreviewMode">False</property>

  <property name="ToolbarMode">ShowOnFocus</property>

  <property name="ToolsWidth">800px</property>

  <property name="Width">400px</property>

  <property name="Skin">Office2007</property>

  <property name="NewLineBr">false</property>

  <property name="CausesValidation">true</property>

</configuration>

The WebPart that is placed on the webpage is configured like so:

<?xml version="1.0" encoding="utf-8"?>

<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">

  <Title>Kampagne</Title>

  <FrameType>None</FrameType>

  <Description>Bruges til at udarbejde et kampagne med HTML</Description>

  <IsIncluded>true</IsIncluded>

  <ZoneID>EmnesideBundVenstre</ZoneID>

  <PartOrder>1</PartOrder>

  <FrameState>Normal</FrameState>

  <Height />

  <Width />

  <AllowRemove>true</AllowRemove>

  <AllowZoneChange>true</AllowZoneChange>

  <AllowMinimize>true</AllowMinimize>

  <AllowConnect>true</AllowConnect>

  <AllowEdit>true</AllowEdit>

  <AllowHide>true</AllowHide>

  <IsVisible>true</IsVisible>

  <DetailLink />

  <HelpLink />

  <HelpMode>Modeless</HelpMode>

  <Dir>Default</Dir>

  <PartImageSmall />

  <MissingAssembly>Webdelen kan ikke importeres.</MissingAssembly>

  <PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge>

  <IsIncludedFilter />

  <Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>

  <TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>

  <ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />

  <Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[ <div class="RSJheading RSJcampaign">

                                    <h1>Kampagnefelt</h1>

                                </div>

                                <div class="RJSimage">

                                    <img src="/_layouts/1030/images/rsjIntra/temp_campaign01.jpg" alt="Kampagne1" />

                                </div>

                                <div class="RSJcontent">

                                    <b><a href="#" class="RSJreadmore">Lorem ipsum purus egastas</a></b>

                                    Duis aute in voluptate velit esse cillum dolore eu fugiat nulla parit.

                                </div>

                                <hr class="RSJaccessibility"/>]]></Content>

  <PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />

</WebPart>

But when editing the WebPart, the problem occurs.

How do I set the default editor to the new version 5.5?

I have edited the web.config file and added:

      <!-- Rad Editor, 1.0.0.0 -> 5.5 -->

      <dependentAssembly>

        <assemblyIdentity name="RadEditorSharePoint" publicKeyToken="1f131a624888eeed" culture="neutral" />

        <bindingRedirect oldVersion="1.0.0.0-5.4.0.0" newVersion="5.5.0.0" />

      </dependentAssembly>

      <!-- /Rad editor -->

Can anybody help?

Stanimir
Telerik team
 answered on 01 Sep 2009
4 answers
72 views
Hi

I have a page A and B. Both pages are internal MOSS pages. Page A links to page B and the link is created using the MOSSLinkManager button. Page B is the moved to another page list on the MOSS. The result is that I end up with a broken link from page A to page B. Shouldn't the link be corrected automatically? I belive this is standard behaviour with the build-in Sharepoint editor.

I'm using the RAD Editor for SharePoint (v5.2.0.0).

Regards
Joachim Hoffmann
Joachim Hoffmann
Top achievements
Rank 1
 answered on 01 Sep 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?