Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
122 views
I have a grid that returns fields from a SQL Database.
I've setup my grid to not display a couple of the fields by setting their "Visible" property to False in the Column/Behavior section of the Property Builder.

I've set the Edit mode to be PopUp so that the editing of a record happens in a PopUp window.

Everthing works fine except that the PopUp window displays the fields that have their "Visible" property set to False.

Is there a specific place to set propertys for which fields to display in the PopUp window?
Or is it working as designed and I need to find a different solution?

Thanks in advance for any help,
Mike T.
Mike
Top achievements
Rank 2
 answered on 28 Jul 2010
1 answer
128 views
(this is a firefox issue, chrome and IE is fine)
I think that bug is caused by the radwindow, is that any workaround?
http://www.telerik.com/community/forums/aspnet-ajax/window/radwindow-zindex-style-no-longer-supported-after-upgrade.aspx
Georgi Tunev
Telerik team
 answered on 28 Jul 2010
0 answers
389 views
Hi all,

Recently we discovered that Visual Studio can sporadicaly display the "Error rendering control" message in design time.
This can occur in several specific error messages:
  • [A]Telerik.Web.UI.RadScriptManager cannot be cast to [B]Telerik.Web.UI.RadScriptManager. Type A originates from...
  • Unable to cast object of type 'Telerik.Web.UI.RadScriptManager' to 'Telerik.Web.UI.RadScriptManager'
  • Unable to cast object of type Telerik.Web.UI.[ControlName] to Telerik.Web.UI.ControlItemContainer

The screenshots below demonstrate sample occurrences of the error:









A subsequent close of the page in design time and a further reload usually might make it render correctly. A further close and reload can cause the error to reappear though.

Our research showed that some registry entries we use to enable Visual Studio display RadControls in the "Add Reference" and "Choose ToolBox Items" dialogs are the reason for the error. It seems that for some reason Visual Studio loads several instances of the Telerik.Web.UI assembly into its AppDomain, which results in the error above.
We decided to sacrifice the appearance of the Telerik.Web.UI assembly in the above mentioned dialogs, but prevent this annoying error from happening and we already removed the registry entries from the RadControls installers.

As a fix in the meantime, you could use the .reg files in the attached archives (one targets a 32-bit machine and the other targets a 64-bit one) and the .bat files (targeting Windows XP and Windows7/Vista respectively) to fix the problem. Here are the steps to follow:
  1. Download and extract the archive to a folder of your choice
  2. Close all Visual Studio instances
  3. Double-click the .reg file (use the Remove_AssemblyFoldersEx_32bitMachine.reg for 32-bit machines and the  Remove_AssemblyFoldersEx_64bitMachine.reg one for 64-bit machines) and click the 'Yes' button when asked to confirm the registry entry merge
  4. Double-click the bat file, depending on the Windows system you're running (use the ClearProjectAssemblies_Win7_Vista.bat for Windows7/Vista and the ClearProjectAssemblies_WinXP.bat for Windows XP)
  5. Start Visual Studio and load your project

Kind regards,
Erjan Gavalji
Telerik
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 28 Jul 2010
1 answer
112 views
Hai,

I have a treenode control. Its structure is as follows:

                1.  Node 1
                        Node 1a                     
                        Node 1b
                        Node 1c
                2.  Node 2
                        Node 2a
                        Node 2b
                        Node 2c
                        Node 2d
                3.  Node 3

In the OnNodeExpand event of the treeview control,  sub nodes( Node 1a, Node 1b, Node 1c etc...) are generating.
Client Side events OnClientNodeClicking, OnClientNodeExpanding etc... are working on clicking both parent nodes(Node 1, Node 2 etc...) and sub nodes( Node 1a, Node 1b, Node 1c etc...).
I want to perform some server side events on clicking the sub nodes( Node 1a, Node 1b, Node 1c etc...).
How can I do it?

Please help me.

Thanks & regards,
Regeesh Joseph
Shinu
Top achievements
Rank 2
 answered on 28 Jul 2010
4 answers
125 views

I picked skin Telerik as my radsitemap skin. But I like the sitemap fonts to be Arial to match other page's fonts on my site. I tried to use

 

RadSiteMap1.Font.Name =

"Arial"  on form load but it doesn't work. The css seems controled by WebResource.axd. 
How I can change the font name?  Is there any example to show me how to  change the css?

Thanks,
Jessie

 

JJ
Top achievements
Rank 1
 answered on 28 Jul 2010
4 answers
146 views
My web page uses the following RadGrid.  The only codebehind is the RadGrid_NeedSource function which simply assigns a datatable to the RadGrid's dataSource.  I haven't wired up any of the Update/Insert/Delete functionality, but I'm not worried about that yet.

<telerik:RadGrid ID="RadGrid" runat="server" OnNeedDataSource="RadGrid_NeedSource" AllowSorting="true"
    AllowPaging="true" PageSize="5" AutoGenerateColumns="false"
    AllowMultiRowEdit="false" AllowMultiRowSelection="false" >
    <MasterTableView TableLayout="Auto" EditMode="InPlace" CommandItemDisplay="Top" InsertItemDisplay="Top"
        InsertItemPageIndexAction="ShowItemOnCurrentPage">
        <Columns>
                <telerik:GridEditCommandColumn CancelImageUrl="../App_Themes/Default/buttons/grid_cancel.png" UniqueName="TestCommandCol"
                    UpdateImageUrl="../App_Themes/Default/buttons/grid_update.png" ButtonType="ImageButton"
                    EditImageUrl="../App_Themes/Default/buttons/grid_edit.png" InsertImageUrl="../App_Themes/Default/buttons/grid_add.png" />
 
                <telerik:GridBoundColumn DataField="Note" HeaderText="Note" ColumnEditorID="NoteEdit" UniqueName="NoteCol" />
                <telerik:GridNumericColumn DataField="Ordinal" HeaderText="Sort Order" UniqueName="SortCol" ColumnEditorID="SortEdit"
                    DefaultInsertValue="99" />
                <telerik:GridCheckBoxColumn DataField="ShowOnWebsite" HeaderText="Show On Website" UniqueName="ShowOnWebsiteCol"
                    DefaultInsertValue="true" />
                <telerik:GridClientDeleteColumn ButtonType="ImageButton" UniqueName="DeleteCol"
                    ImageUrl="../App_Themes/Default/buttons/grid_delete.png" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
<telerik:GridTextBoxColumnEditor ID="TestNoteEdit" runat="server" TextBoxMode="MultiLine" />
<telerik:GridNumericColumnEditor ID="TestSortEdit" runat="server" NumericTextBox-IncrementSettings-InterceptMouseWheel="true"
    NumericTextBox-IncrementSettings-InterceptArrowKeys="true" NumericTextBox-IncrementSettings-Step="1" NumericTextBox-MaxValue="99"
    NumericTextBox-MinValue="0" NumericTextBox-NumberFormat-DecimalDigits="0" NumericTextBox-Width="50px"
    NumericTextBox-ShowSpinButtons="true" />

The grid loads up nice and pretty and looks great for almost everything.  When I click to edit an item, the numeric "SortCol" shows a slim numeric box with up and down controls next to it, and it only allows numbers between 0 and 99.  When, without explicitly updating or canceling the current Edit Item, I click to edit another item (MultiRowEdit is false), it cancels the current edit item and sets the item I clicked on to be the new Edit Item.  So far so good, except that the new Edit Item's "SortCol" shows as a clunky oversized textbox that doesn't have the bells and whistles of the first Edit Item.  A similar display issue occurs on the "NoteCol".  This only happens when clicking from one Edit Item to another Edit Item (including the Insert Item); if you manually cancel out of an Edit Item, then everything works fine.

Tangentially: When I click to "Add New Record" while I already have another row open as an Edit Item, it creates the insert row but does not close/cancel the current Edit Item as one would expect.  Similarly, if I click "Add New Record" and then try to edit a row with the Insert Row still visible, both rows appear as ediatble.  I have tried a few sloppy hacks to fix this, but I was wondering if there was a preferred method for truly allowing only one Edit Item at a time (including Insert).

Thanks,
--Felix
Maria Ilieva
Telerik team
 answered on 28 Jul 2010
3 answers
128 views
Is it possible to use the cascading dropdown extender inside of the edit template of the grid? How would I be able to bind the dropdowns with the current record values?

Thanks!
Iana Tsolova
Telerik team
 answered on 28 Jul 2010
2 answers
132 views
I have a RadGrid that implements a web user control for the edits.  I've attempted to follow replicate as much as I could from the demo at http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx but for some reason, my buttons aren't kicking off the update command on the RadGrid.  I had all of the data populating, but started over so now I only have a couple of the items populating on the user control.  All I'm concerned with right now is getting the btnSubmit to work.. I imagine that after I get that working, I'll be able to get the rest of them working

radgrid
<telerik:RadGrid ID="rgDocuments" runat="server" AutoGenerateColumns="False" GridLines="None"
    AllowSorting="True" ShowStatusBar="true"
    OnUpdateCommand="rgDocuments_UpdateCommand" onitemcommand="rgDocuments_ItemCommand"
    >
    <MasterTableView CommandItemDisplay="Top" DataKeyNames="DocumentId" >
        <commanditemsettings addnewrecordtext="Add new Document" />
        <Columns>
        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="DocumentId" HeaderText="ID" UniqueName="ID">
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" VerticalAlign="Top" Wrap="True" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Title" HeaderText="Title" UniqueName="Title">
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" VerticalAlign="Top" Wrap="True" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description">
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" VerticalAlign="Top" Wrap="True" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Author" HeaderText="Author" UniqueName="Author" >
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" VerticalAlign="Top" Wrap="True" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Active" DataType="System.Boolean" HeaderText="Active"
                UniqueName="Active">
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" VerticalAlign="Top" Wrap="True" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DocumentCategoryId" DataType="System.Int32" HeaderText="Category"
                UniqueName="DocumentCategoryId">
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" VerticalAlign="Top" Wrap="True" />
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings UserControlName="~/UserControls/AddUpdateDocument.ascx" EditFormType="WebUserControl">
            <EditColumn UniqueName="EditCommandColumn1" />
        </EditFormSettings>
    </MasterTableView>
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
</telerik:RadGrid>

user control
<%@ Control Language="C#" AutoEventWireup="True" CodeBehind="AddUpdateDocument.ascx.cs"
    Inherits="PortalAdmin.AddUpdateDocument" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
    .style1
    {
        text-align: right;
        width: 65px;
    }
</style>
    <table style="width: 100%; border: 1px solid #828282;">
        <tr>
            <td colspan="3">
                <asp:Label ID="Label9" runat="server" Style="font-weight: bold;" Text="Add/Update Document"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 116px; text-align: right;">
                <asp:Label ID="Label7" runat="server" Style="text-align: right;" Text="Document ID:" />
            </td>
            <td style="width: 449px">
                <telerik:radtextbox id="tbDocumentId" runat="server" maxlength="255" readonly="True"
                    width="41px" Text='<%# DataBinder.Eval(Container, "DataItem.DocumentId") %>'>
                </telerik:radtextbox>
            </td>
            <td>
                  
                <asp:Label ID="Label11" runat="server" Text="Category:"></asp:Label>
                <telerik:RadComboBox ID="cbCategories" Runat="server" Width="255px" >
                </telerik:RadComboBox>
            </td>
        </tr>
        <tr>
            <td style="width: 116px; text-align: right;">
                <asp:Label ID="Label1" runat="server" Style="text-align: right;" Text="Title: " />
            </td>
            <td style="width: 449px">
                <telerik:radtextbox id="tbTitle" runat="server" maxlength="255" width="435px" Text='<%# DataBinder.Eval(DataItem, "Title") %>'>
                                    </telerik:radtextbox>
            </td>
            <td style="text-align:center;">
                <asp:CheckBox ID="cbActive" runat="server" Text="Active?" />
                <asp:CheckBox ID="cbArchive" runat="server" Text="Archived?" style="padding-left: 10px;"/>
            </td>
        </tr>
        <tr>
            <td style="width: 116px; vertical-align: top; text-align: right;">
                <asp:Label ID="Label2" runat="server" Text="Description: " Style="text-align: right;" />
            </td>
            <td style="width: 449px">
                <telerik:radtextbox id="tbDescription" runat="server" maxlength="500" rows="7" textmode="MultiLine"
                    width="435px" Text='<%# DataBinder.Eval(DataItem, "Description") %>'>
                                    </telerik:radtextbox>
            </td>
            <td style="vertical-align: top;">
                <asp:Label ID="Label10" runat="server" Text="Current File Info"
                    Font-Underline="True"></asp:Label>
                <table style="width:100%;">
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label8" runat="server" Style="text-align: right;" Text="Name:" />
                        </td>
                        <td>
                            <asp:Label ID="lnkName" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label12" runat="server" Style="text-align: right;"
                                Text="Location:" />
                        </td>
                        <td>
                            <asp:Label ID="lblLocation" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label15" runat="server" Style="text-align: right;"
                                Text="Type:" />
                        </td>
                        <td>
                            <asp:Label ID="lblType" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label14" runat="server" Style="text-align: right;"
                                Text="Size:" />
                        </td>
                        <td>
                            <asp:Label ID="lblSize" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
                <br />
            </td>
        </tr>
        <tr>
            <td style="width: 116px; text-align: right;">
                <asp:Label ID="Label3" runat="server" Text="Author: " Style="text-align: right;" />
            </td>
            <td style="width: 449px">
                <telerik:radtextbox id="tbAuthor" runat="server" maxlength="255" width="435px">
                                    </telerik:radtextbox>
            </td>
            <td style="text-align: right">
                <telerik:RadUpload ID="upload" Runat="server"
                    ControlObjectsVisibility="None" Height="21px" MaxFileInputsCount="1"
                    Width="255px">
                </telerik:RadUpload>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="text-align: right; width: 100%;">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit Document"
                    CausesValidation="True"
                    CommandName="Update"/>
                <asp:Button ID="btnCancel" runat="server" CausesValidation="False"
                    CommandName="Cancel" Text="Cancel" />
            </td>
        </tr>
    </table>
russ
Top achievements
Rank 1
 answered on 28 Jul 2010
1 answer
320 views
Hi,

I wanted to develop a resource booking system, and encountered 3 problems:

1. how can I limit only the originator can edit/delete his own booking? Otherwise, users can change other's booking.

2. how can I set the style to highlight my own bookings?

3. How can I set the time slot (for example, if a room only available for 2 hours during 8 am to 10 am)

Thanks.
Peter
Telerik team
 answered on 28 Jul 2010
1 answer
149 views

Hello Community,

I'm having an issue with the RadToolBar and Chrome 5.0.375.99. I have checkboxes in the toolbar as tb items and when you expand the toolbar on first page load with page scrolled to the top it works fine. However, if you vertically scroll down on the page and then expand the toolbar the checkboxes appear floating near the top of the page. Using chrome developer tools I was able to see the "top" property changes based on where you're vertically scrolled to on the page.

I also noticed that the div for the toolbar renders at the top of the page right below the form tag in Chrome only.

The code snippet below is my Toolbar code.

<tr>
<td>
<telerik:RadToolBar ID="radTbSubscription" runat="server" BackColor="#375681" Skin="Default"
EnableViewState="false" ExpandAnimation-Type="OutQuart" 
CollapseAnimation-Type="InQuart" EnableAjaxSkinRendering="False">
<CollapseAnimation Type="InQuart" />
<Items>
<telerik:RadToolBarDropDown runat="server" Text="Select Topics">
<Buttons>
<telerik:RadToolBarButton runat="server" Text="rtbCreditReporting">
<ItemTemplate>
<asp:CheckBox runat="server" ID="chkCreditReporting" Text="Credit Reporting" />
</ItemTemplate>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton Text="rtbDebtCollection">
<ItemTemplate>
<asp:CheckBox runat="server" ID="chkDebtCollection" Text="Debt Collection" />
</ItemTemplate>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" Text="rtbConsumerIssues">
<ItemTemplate>
<asp:CheckBox runat="server" ID="chkConsumerIssues" Text="Consumer Issues" Width="125px" />
</ItemTemplate>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" Text="rtbBankruptcy">
<ItemTemplate>
<asp:CheckBox runat="server" ID="chkBankruptcy" Text="Bankruptcy" />
</ItemTemplate>
</telerik:RadToolBarButton>
</Buttons>
</telerik:RadToolBarDropDown>
</Items>
</telerik:RadToolBar>
</td>
</tr>

Any help is appreciated.
Yana
Telerik team
 answered on 28 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?