Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
In RadGrid, if EnableHeaderContextMenu is set to true and a GridColumn's Display attribute set to false, and HeaderStyle's Width attribute is set, the generated HTML colgroup style will not contain "display:none" style.  For example,

<telerik:RadGrid>
<MasterTableView EnableHeaderContextMenu="true" TableLayout="Fixed">
<Columns>
<telerik:GridBoundColumn Display="false">
<HeaderStyle Width="100"/>
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>

If you examine the generated html, you will see 
<colgroup>
<col style="width:100px"/>
</colgroup>

Adding a column with HeaderStyle's Width attribute set will result in the same incorrect html. 

However, if you hide one column through the header context menu, the generated html is correct:
<colgroup>
<col style="width:100px; display:none;"/>
</colgroup>

Is there workaround for this bug before it is fixed?

Thanks
Sebastian
Telerik team
 answered on 09 Oct 2009
1 answer
88 views
Hi all,
We current have a large web project in visual studio 2008 using the ASP.NET Q1 2009 rad tools (ie the non-ajax version). We want to move to the AJAX version (we have ASP.NET AJAX Q2 2009 installed), but not all at once.

As our first page, we have a multi tabbed page (using rad multipageview and 14 pageviews, each with a radgrid and radchart on it)  that we wanted to convert to using the new AJAX tab control on this page while leaving all the other controls using the old version. (The plan was to use the AJAX tabstrip to load each pageview on demand.)

Sadly, after dragging and dropping the new tab onto the page and setting its properties, the page and project would not compile. It complains about telerik charting existing in 2 dlls. A quick look at the forums found this:

http://www.telerik.com/community/forums/aspnet-ajax/chart/important-build-errors-when-upgrading-from-radchart-to-prometheus.aspx

So I'd like to choose option 1. However, no where in my web.config does it mention telerik.charting.dll, thus making it hard for me to follow the directions in option one to "remove the reference to the Telerik.Charting.dll from your Web.config file."

Considering the large amount of other telerik controls on the page, I obviously dont want to have to convert them all over at once. I just want to convert the tab.

So any ideas how I can remove the reference to the telerik.charting in the ajax version so I can continue to use the old stuff?

Vladimir Milev
Telerik team
 answered on 09 Oct 2009
5 answers
155 views
Hello,

I'm a new customer who just purchased the controls today and am very excited.  I'm working on a little project and I need some help.

I have two radgrids on my page which are both populated by a different table in an SQLDataSource.  I want to be able to doubleclick on a row in table one to be able to insert the row just doubleclicked into the second grid's table (using a database insert).  I've already got drag and drop working (which functions the same way but allows them to drag the row from table 1 to table 2).  Is this possible and if so, can someone give me an example?

OR

Would it be easier if I had a clientselect column with checkboxes and a button in the commanditems (with a custom template) that is labeled "Add Selected Topics" and when pressed it would take any topics that are selected in grid 1 and insert them as new records into grid 2?  If I used this method I might completely remove drag and drop.  I had this version working as far as the grid and selecting items, but I couldn't figure out how to insert the selected items into the other grid's database table.  Bear with me though, I'll get better at this! :)
Heath Brown
Top achievements
Rank 1
 answered on 09 Oct 2009
4 answers
121 views
I have tried to add the menu items programmically as show below.  For some reason the separator is not being added.  It works fine if I dont do it programmically. any idea??


RadMenuItem radmenuitem;
RadMenuItem radsepmenuitem;
SiteMapNode RootNode = SiteMap.RootNode;


        for (int i = 0; i < RootNode.ChildNodes.Count; i++)
        {
            // Add Menu Item
            radmenuitem = new RadMenuItem(RootNode.ChildNodes[i].Title, RootNode.ChildNodes[i].Url);
            RadMenu1.Items.Add(radmenuitem);
            // Seperator
            radsepmenuitem = new RadMenuItem("Separator");
            radsepmenuitem.IsSeparator = true;
            radsepmenuitem.CssClass = "p";
            RadMenu1.Items.Add(radsepmenuitem);
            
            // Add Child Menus
            if (RootNode.ChildNodes[i].HasChildNodes)
                PopulateChildNode(RootNode.ChildNodes[i].ChildNodes, radmenuitem);
      }

Vesko
Top achievements
Rank 2
 answered on 09 Oct 2009
1 answer
136 views
I am trying to figure out the best way to perform a mass update when there are child tables involved. My situation is documenting work performed on weekly inspections.
 I have three tables involved, the main table is WorkOrders, the first child table is WorkOrderDetails and it's child table is DetailsLabor. For every WorkOrders record there must be at least one WorkOrdersDetails record and for every WorkOrdersDetails record there must be at least one DetailsLabor record.  

90% of the time there is only one record in each table and I am trying to create an interface that minimizes the time taken to document the inspections. I have a regular asp formview that I use for documenting the inspections and it works pretty well by allowing the user to add records in both the WorkOrdersDetails table and the DetailsLabor table by first entering a WorkOrdersDetail record and grabbing the ID created with @@Scope_Identity then updating the DetailsLabor table. The problem is they always have to navigate to the update form through a gridview which summarizes all the inspections.
Pavlina
Telerik team
 answered on 09 Oct 2009
1 answer
162 views
All,

I have created a website using the radcontrols. I have a few pages that seem to show incorrectly when deployed over the Cisco Web VPN. For instance, I have a default page that contains the radscheduler and a master page that contains a radpanelbar. These items show and work fine using the default VPN client, but when I try to use the pages over the existing WebVPn, they seem to now show up on the page or completly lose their functionality. I have read on forum posts that Cisco rewrites the jscript files and that enabling smart tunneling is a possible workaround. Does anybody know of any other workarounds that could help me in this matter because some of my users cannot install the VPN client because of Federal restrictions on their laptops. Thanks for all the help.

Paul
Telerik team
 answered on 09 Oct 2009
4 answers
198 views
Hi,
I have a problem in Timeline View in RadScheduler, The appointment collapse on each other and especially when I make the test wrap inisde the appointment  as shows in the attached picture. Please need a solution and I am waiting your replay

Thanks
Ban Shareef

Peter
Telerik team
 answered on 09 Oct 2009
5 answers
147 views
Hi,

Last week i installed RadEditorMOSS_5_3_1_Dev in our sharepoint environment. I followed the steps describe in http://homercles.wordpress.com/2008/06/30/installing-telerik-moss-editor/.

1: install ASP.Net Ajax Extensions
2: Extending SharePoint web.config files with Microsoft ASP.NET AJAX 1.0
3: Add RadEditorMOSS_5_3_1_Dev solution to sharepoint
4: IIS Reset

Note:
I did not add a ScriptManager into a SharePoint MasterPage.

My question is:
- Why is the standard sharepoint editor not replaced by the RAD Editor?
- What do i need to do to accomplish this?


Kinds regards

B
Stanimir
Telerik team
 answered on 09 Oct 2009
2 answers
157 views
I have dockpanels that can be dragged by clicking the content area, I also have a contextmenu for each dock. The problem is that dragging will start by left or right clicking the dockpanel while the contextmenu is also opened by right clicking. This is in a situation where the dock titlebars are hidden to get a WYSIWYG display of the page. I like to use left clicking to start dragging and right clicking to open the contextmenu. Is there a way to prevent starting a drag when using the right mouse button?

Any suggestion is greatly appreciated...

Kind regards,
Huib van Dongeren
Huib
Top achievements
Rank 1
 answered on 09 Oct 2009
6 answers
216 views
I have a grid with 3 columns, a combo box, text box and numeric box.  Its been working ok, then suddenly for no reason I can see it will no longer switch to edit mode.  I can insert new rows and delet existing rows, but clicking the edit button does nothing.  Can anyone see what the hell could have happened here ?  It juststopped working and I cant see why

<telerik:RadGrid ID="RadGridCastList" GridLines="None"   
            AutoGenerateColumns="false" PageSize="10" 
            AllowPaging="true" AllowSorting="false" runat="server" Skin="Vista"   
            onneeddatasource="RadGridCastList_NeedDataSource" OnUpdateCommand="RadGridCast_UpdateCommand" 
            OnItemCreated="RadGridCast_ItemCreated" OnDeleteCommand="RadGridCast_DeleteCommand" 
            OnInsertCommand="RadGridCast_InsertCommand"   
            onitemdatabound="RadGridCast_ItemDataBound" Width="100%"   
            HorizontalAlign="Left" > 
              
            <MasterTableView ShowFooter="false" DataKeyNames="ID" EditMode="InPlace" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" Name="CastlistMembers">  
                <Columns> 
                  
                                          
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">  
                        </telerik:GridEditCommandColumn> 
                          
                      
                    <telerik:GridTemplateColumn UniqueName="CastMember" HeaderText="Cast Member" 
                        SortExpression="CastMember">  
                          
                        <ItemTemplate> 
                            <%#DataBinder.Eval(Container.DataItem, "CastMemberName")%> 
                        </ItemTemplate> 
                        <EditItemTemplate> 
                            <telerik:RadComboBox DataTextField="CastMemberName"   
                             DataValueField="CastMemberID"   
                             OnItemsRequested="RadComboBox1_ItemsRequested" 
                                EnableLoadOnDemand="True"   
                                ID="RadComboBox1"   
                                runat="server"   
                                Width="220px"   
                                SelectedValue='<%#Bind("CastMemberName") %>'>  
                            </telerik:RadComboBox> 
                        </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="Role" UniqueName="CastMemberRole" DataField="CastMemberRole">  
                        <ItemTemplate> 
                            <asp:Label ID="lblCastMemberRole" runat="server" Text='<%# Eval("CastMemberRole") %>' /> 
                        </ItemTemplate> 
                        <EditItemTemplate> 
                            <telerik:RadTextBox ID="txbCastMemberRole" Width="300px" runat="server" TextMode="SingleLine" 
                                Text='<%# Bind("CastMemberRole") %>' /> 
                        </EditItemTemplate> 
                        <ItemStyle VerticalAlign="Top" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn UniqueName="DisplayOrder" HeaderText="Display Order" 
                        SortExpression="DisplayOrder">  
                          
                        <ItemTemplate> 
                            <%#DataBinder.Eval(Container.DataItem, "DisplayOrder")%> 
                        </ItemTemplate> 
                        <EditItemTemplate> 
                            <telerik:RadNumericTextBox ID="RadNumericTextBoxDisplayOrder" runat="server" DataType="System.Int" MinValue="0" NumberFormat-DecimalDigits="0">  
                            </telerik:RadNumericTextBox>   
                        </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 
                      
                     <telerik:GridButtonColumn ConfirmText="Delete this cast list member ?" ButtonType="ImageButton" 
                                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn1">  
                                        <HeaderStyle Width="20px" /> 
                                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> 
                                    </telerik:GridButtonColumn> 
                                      
                </Columns> 
 
 
<EditFormSettings> 
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
</EditFormSettings> 
                <PagerStyle AlwaysVisible="True" /> 
 
 
            </MasterTableView> 
        </telerik:RadGrid> 
Pavlina
Telerik team
 answered on 09 Oct 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?