Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
71 views
Hello,

I am manipulating a cell's text by using the Grid_ItemDatabound event.  See below:

If TypeOf e.Item Is GridDataItem Then
            Dim gridDataItem As GridDataItem = e.Item
            Dim quoteID = gridDataItem.Item("quoteID").Text
            Dim lineID = gridDataItem.Item("lineID").Text
            Select Case gridDataItem.Item("assortmentTypeID").Text
                Case 1000
                    gridDataItem.Item("assortmentTypeID").Text = "Text for 1000"
                Case 1002
                    gridDataItem.Item("assortmentTypeID").Text = "Text for 1002"
                Case 1003
                    gridDataItem.Item("assortmentTypeID").Text = "Text for 1003"
            End Select
        End If

This works fine until I place the grid in Edit Mode.  When I do, the text in the cell defaults back to the value coming from the datasource (1000, 1002, or 1003).  The value in this particular cell is ReadOnly, so I am not allowing edit.  How can I get the cell text to stay the way I format it regardless of what mode the grid is in?  I've tried several combinations of things using the IsInEditMode, GridEditableItem, GridEditFormItem, etc.

Thank you for any help you can offer.

Frustrated,
Jim
Jim
Top achievements
Rank 2
 answered on 13 Apr 2011
1 answer
198 views
Hi,

I am looking for a way to access the "Update" LinkButton in a GridEditCommandColumn.  I would like to set an onClientClick attibute to the button when its in Edit Mode

Thanks
Sebastian
Telerik team
 answered on 13 Apr 2011
4 answers
149 views

Hi,

i have an asp.net application using a radgrid. I want to froze some columns.
Everything works fine, but if I set UseStaticHeaders="true" and FrozenColumnsCount="4" the performance of our application will break down extremly.
Our data volumn is as follows: approximately 330 rows with each 55 columns. We build our grid programmatically in our code behind file.

Could you please give us an answer if it is wise to use FrozeColumns with such an data volumn and szenario? If so, please provide some performance hints.

Here the code of my aspx page:
<telerik:RadGrid ID="GridProjectProposals" runat="server" AutoGenerateColumns="false" AllowSorting="true" Height="650px" Width="1200px" GridLines="None" Skin="Windows7" AllowMultiRowSelection="True" AllowFilteringByColumn="True">
    <ClientSettings EnableRowHoverStyle="true">
        <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
        <Scrolling AllowScroll="true" EnableVirtualScrollPaging="true" SaveScrollPosition="true" UseStaticHeaders="true" FrozenColumnsCount="4" />
    </ClientSettings>
    <MasterTableView GridLines="None" AllowNaturalSort="true" EditMode="InPlace" AllowMultiColumnSorting="true">
        <Columns>
        </Columns>
        <HeaderStyle Width="180px" />
    </MasterTableView>
</telerik:RadGrid>

Looking forward to get some ideas and your input.

Thanks ...

Pavlina
Telerik team
 answered on 13 Apr 2011
13 answers
143 views
Hello,

I currently updated our Telerik libraries to the latest version (2011.1.315.35) to be accessible to IE9. However, when performing AJAX operations in IE9, the loading panel on the control is not transparent; i.e. in the loading image, with a pure white background, is the only thing visible.
Is this replicable or is this just my browser?

Thanks,
Ernest
Veli
Telerik team
 answered on 13 Apr 2011
1 answer
106 views

Hello Telerik Team,

  We have a problem using TreeListView. Because there are a lot of records as result, we need to use paging in db. First page is displayed ok, but when another page is selected, this error is thrown: “the table must contain row sections in order of header, body, then footer”. VirtualCount is not supported for this control.

 

  See below the definition of the treelist:

 

        <telerik:RadTreeList ID="rtlDescendants" runat="server" ShowTreeLines="true" ShowOuterBorders="true"

            ParentDataKeyNames="ParentInstanceID" DataKeyNames="InstanceID" AutoGenerateColumns="false"

            Skin="Office2007" OnNeedDataSource="rtlDescendants_NeedDataSource" OnItemDataBound="rtl_ItemDataBound"

            AllowPaging="true" AllowSorting="false" PageSize="10" onpageindexchanged="rtlDescendants_PageIndexChanged">

            <PagerStyle Position="Bottom" Mode="NextPrevAndNumeric" />

            <Columns>

                <telerik:TreeListTemplateColumn HeaderText="ID">

                    <ItemTemplate>

                        <asp:Image ID="imgDomain" Width="16px" Height="16px" ImageUrl='<%# String.Format("~/images/Metallic16x16/{0}16x16.png", Eval("DomainName").ToString().ToUpper()) %>'

                            runat="server" />&nbsp;

                        <asp:LinkButton ID="lnkName" runat="server" CausesValidation="false" Text='<%# Eval("Name")%>'

                            PostBackUrl='<%# String.Format("~/CI/Attributes.aspx?InstanceID={0}", Eval("InstanceID")) %>'></asp:LinkButton>

                    </ItemTemplate>

                </telerik:TreeListTemplateColumn>

                <telerik:TreeListTemplateColumn HeaderStyle-Width="3%" ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center">

                    <ItemTemplate>

                        <asp:ImageButton ID="imgbPreview" runat="server" CausesValidation="false" OnClientClick='<%# String.Format("OpenPreviewPanel({0})", Eval("InstanceID")) %>'

                            ImageUrl="~/imagesCMSite/folder-explorer-icon.png" CssClass="image" />

                    </ItemTemplate>

                </telerik:TreeListTemplateColumn>

                <telerik:TreeListBoundColumn HeaderText="Type" HeaderStyle-Width="27%" ItemStyle-Width="27%"

                    DataField="DomainName" UniqueName="DomainName">

                </telerik:TreeListBoundColumn>

                <telerik:TreeListBoundColumn HeaderText="Modified By" HeaderStyle-Width="20%" ItemStyle-Width="20%"

                    DataField="ModifiedBy" UniqueName="ModifiedBy">

                </telerik:TreeListBoundColumn>

                <telerik:TreeListBoundColumn HeaderText="Last Modified" HeaderStyle-Width="20%" ItemStyle-Width="20%"

                    DataField="LastModified" UniqueName="LastModified">

                </telerik:TreeListBoundColumn>

            </Columns>

        </telerik:RadTreeList>


In addition, next pages can include children nodes but their parent could be "located" in previous page

Thank you in advance for your help

Veli
Telerik team
 answered on 13 Apr 2011
1 answer
133 views
Hello everyone,

I would like to ask you,if there is a possible way to re-load the content of a pageView based on a value change from a radiobutton .

More specifically,I have a radio button list where the user can select a product.

Below this list, i have a RadTabStrip which contains 3 RadTabs. Each RadTab has its own RadPageView.
I want to re-load the pageview for a specific tab each time the user selects a product from the radiobutton list.

Could anyone help me with that?

Thanks in advance,
PS
Veronica
Telerik team
 answered on 13 Apr 2011
11 answers
151 views
I have a RadWindow that I show for two differing purposes, and this window is shown when either one of two respective buttons is clicked.  I want to set the window's title and icon based on which button was clicked.  Here's my code:

// Determine which item was clicked
if (eventArgs.get_item().get_text() == "Lock and Submit") {
    // Open the dialog
    var objWindow = $find("<%=rwLockAndSubmitPlan.ClientID%>");
    objWindow.set_title(eventArgs.get_item().get_text());
    objWindow.set_iconUrl("\Images/lock.png");
    objWindow.setUrl("\Dialogs/LockAndSubmitPlan.aspx?mode=lockandsubmit");
    objWindow.show();
}
else if (eventArgs.get_item().get_text() == "Provide Explanations") {
    // Open the dialog
    var objWindow = $find("<%=rwLockAndSubmitPlan.ClientID%>");
    objWindow.set_title(eventArgs.get_item().get_text());
    objWindow.set_iconUrl("\Images/notepad.gif");
    objWindow.setUrl("\Dialogs/LockAndSubmitPlan.aspx?mode=provideexplanations");
    objWindow.show();
}

The issue is that while the window's title is, in fact, changed based on the button that was clicked, the window's icon is not.  The first time I open the dialog, the window's icon is set, but that icon remains the window icon from that point on, not matter which button is clicked.

My RadWindowManager is defined as follows:

<telerik:RadWindowManager runat="server" ID="rwmRadWindowManager" VisibleStatusbar="false" ReloadOnShow="true">
    <Windows>
        <telerik:RadWindow runat="server" ID="rwLockAndSubmitPlan" Modal="true" ReloadOnShow="true" 
            VisibleTitlebar="true" Behaviors="Close" OnClientPageLoad="OnClientPageLoad_SpendingPlan" 
            OnClientClose="OnClientClose_Spending_Plan" Width="550" Height="450" />
    </Windows>
</telerik:RadWindowManager>

And, the OnClientPageLoad_SpendingPlan function is defined as follows:

function OnClientPageLoad_SpendingPlan(objWindow, objArguments) {
    objWindow.set_status("");
}

Perhaps this is a quick fix, so a prompt response would be much appreciated!  Thank you!
Marin Bratanov
Telerik team
 answered on 13 Apr 2011
15 answers
926 views

Telerik.Web.UI.dll version:2010.1.415.35

1. First you need to install Telerik.Web.UI.dll in the GAC

2. Next you should tell SharePoint that the controls from the Telerik.Web.UI.dll is safe to use.

To do so you should add a few <SafeControl> entries within the <SafeControls> section in your web.config:

<SafeControl Assembly="Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

Namespace="Telerik.Web.UI" TypeName="*" Safe="True" />

 

3. You need to register their handlers in the respective section in the web.config:

[web.config] IIS 5.x/6.x/7.x

 

<httpHandlers>

<add verb="*" path="Telerik.Web.UI.DialogHandler.aspx"

type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

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

type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

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

</httpHandlers>

 

 

<handlers>

.................

<add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*"

type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral,

PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />

<add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*"

type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral,

PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />

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

type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" />

.............

</handlers>

Thanks Vinh

Stanimir
Telerik team
 answered on 13 Apr 2011
2 answers
155 views
Hi,

I have a page in which there is a TabStrip with five multipages. In 2 multipages, there are radgrids.

Can you please help with setting Ajax in following scenarios;
How do I do the AjaxSetting for a CheckBox which is inside the radgrid to update some content in the database and refresh the radgrid or is it possible to do an Ajax setting to just update one particular column of the same radgrid when the checkedchanged event is fired?

For fourth multipage there are more than 4 comboboxes and I have to update the content of 3 comboboxes when the selected value of first combobox is changed. What will be the Ajax setting in this case?

Currently I have all the content in the same page but if I want to move the content of 5 multipages to 5  usercontrols , how can I do the  Ajax settings?

Please let me know how to do the Ajax setting in all these different scenarios.

Thanks.
Dimitar Terziev
Telerik team
 answered on 13 Apr 2011
2 answers
119 views
I am using the Editor and all of my applications of it contain a large empty space below the actual Editor window.  The attached screen capture contains an image of the Editor with this specific space colored "yellow".  If I look at the area in the "MS developer tool" (refer to the other screen capture), it is assigned to a css class of "reToolZone".

Can you tell me:

(1) What this space is intended for (that I am apparently not using)?
(2) How can I get rid of this wasteful empty space?  If I'm not using it for anything, there must be some way to eliminated it.

Thanks in advance for the assist!

Lynn
Lynn
Top achievements
Rank 2
 answered on 13 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?