Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
204 views
Hello,

I have a RadSplitter with two RadPanes, the left pane contains a RadTabStrip and RadMultiPage objects, with RadGrids inside the RadPageViews. The splitter is set to scroll vertically, but when a grid nested view is expanded (causing the content of the pane to be larger than its height), the pane is resized to allow scrolling but the scrollbar does not appear. White space appears in its place instead. However, when I mouse over another part of the page, the scrollbar magically appears. I also noted that when I collapsed the nested view, the existing scrollbar still remains as disabled until I mouse over another part of the page. Then it disappears.

I've attached some screenshots to help illustrate my issue.

  1. Initial.jpg - How the page looks before expanding the second item
  2. AfterExpand.jpg - After expanding the second item. Note how the content is now too large and gets cut off at the bottom of the left pane. Also note the width of the content of the pane has been narrowed slightly and now shows a white space where the vertical scrollbar should be.
  3. AfterMouseOver.jpg - After moving the cursor away from the splitter, note the scrollbar now displays as expected. No postback has occurred. (Alternatively, the scrollbar also shows after using keystroke Ctrl + A to select all of the content on the page.)
  4. AfterCollapse.jpg - After collapsing the second item. Note how the scrollbar remains but disabled (since there is nothing to scroll). Also note how the content of the left pane is hidden behind the scrollbar. The expected result here would be that the scrollbar should disappear since there is no more scrolling.
  5. AfterMouseOver2.jpg - After moving the cursor away from the splitter, note the scrollbar has now disappeared, as expected. Again, no postback has occurred.

Here is an example of the markup I've used. I removed the markup from the other tabs and from the right RadPane for brevity:

<div style="width:100%; height:94%">
    <telerik:RadSplitter ID="rsAppraisalDetail" runat="server" Width="100%" Height="100%" Orientation="Vertical" VisibleDuringInit="False"
        OnClientLoaded="rsAppraisalDetail_Loaded">
        <telerik:RadPane ID="rpAppraisalDetailLeft" runat="server" scrolling="Y" Height="100%">
            <telerik:RadTabStrip ID="tsAppraisalDetail" runat="server" MultiPageID="mpAppraisalDetail" SelectedIndex="0">
                <Tabs>
                    <telerik:RadTab Text="<%$ Resources: GeneralInformation %>" PageViewID="pvGeneral" />
                    <telerik:RadTab Text="<%$ Resources: LandAndFeatures %>" PageViewID="pvLandFeatures" />
                    <telerik:RadTab Text="<%$ Resources: Buildings %>" PageViewID="pvBuildings" />
                    <telerik:RadTab Text="<%$ Resources: SalesHistory %>" PageViewID="pvSales" />
                    <telerik:RadTab Text="<%$ Resources: ExemptionsAndAssessment %>" PageViewID="pvExemptions" />
                    <telerik:RadTab Text="<%$ Resources: Notes %>" PageViewID="pvNotes" />
                </Tabs>
            </telerik:RadTabStrip>
 
            <telerik:RadMultiPage ID="mpAppraisalDetail" runat="server" Width="100%" SelectedIndex="0" >
                <telerik:RadPageView ID="pvGeneral" runat="server" CssClass="pageView">
                     
                </telerik:RadPageView>
                <telerik:RadPageView ID="pvLandFeatures" runat="server" CssClass="pageView">
                     
                </telerik:RadPageView>
                <telerik:RadPageView ID="pvBuildings" runat="server" CssClass="pageView">
                    <div>
                        <asp:Label runat="server" Text="<%$ Resources:RpaControlCaptions, lblBuildings %>" /><br />
                        <telerik:RadGrid ID="dtgBuildings" runat="server" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" ShowFooter="true"
                            AutoGenerateColumns="false" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowCustomPaging="true" PageSize="5"
                            Width="100%" OnNeedDataSource="dtgBuildings_NeedDataSource" OnPreRender="dtgBuildings_PreRender"
                            OnSelectedIndexChanged="dtgBuildings_SelectedIndexChanged">
                            <ClientSettings EnablePostBackOnRowClick="true">
                                <Selecting AllowRowSelect="true" />
                            </ClientSettings>
                            <MasterTableView runat="server" DataKeyNames="Id" HierarchyLoadMode="Client" IsFilterItemExpanded="false">
                            <NestedViewTemplate>
                                    <telerik:RadGrid ID="dtgBuildingSections" runat="server" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"
                                        AutoGenerateColumns="false" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowCustomPaging="true"
                                        PageSize="5" Width="100%"
                                        OnNeedDataSource="dtgBuildingSections_NeedDataSource">
                                        <MasterTableView runat="server" DataKeyNames="Id" IsFilterItemExpanded="false">
                                            <Columns>
                                                <telerik:GridBoundColumn UniqueName="YearBuilt" DataField="YearBuilt" HeaderText="<%$ Resources:RpaControlCaptions, lblYear %>"
                                                    DataType="System.Int16" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                                                <telerik:GridBoundColumn UniqueName="ImprovementModelDescr" DataField="ImprovementModelDescr" HeaderText="<%$ Resources:RpaControlCaptions, lblStyle %>" />
                                                <telerik:GridBoundColumn UniqueName="FramingClassDescr" DataField="FramingClassDescr" HeaderText="<%$ Resources:RpaControlCaptions, lblClass %>" />
                                                <telerik:GridBoundColumn UniqueName="ActualArea" DataField="ActualArea"  HeaderText="<%$ Resources:RpaControlCaptions, lblActualArea %>" 
                                                    DataType="System.Decimal" DataFormatString="{0:N0}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                                                <telerik:GridBoundColumn UniqueName="PercentComplete" DataField="PercentComplete"  HeaderText="<%$ Resources:RpaControlCaptions, lblPercentComplete %>" 
                                                    DataType="System.Decimal" DataFormatString="{0:P0}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>
                                </NestedViewTemplate>
                                <Columns>
                                    <telerik:GridBoundColumn UniqueName="BuildingName" DataField="BuildingName" HeaderText="<%$ Resources:RpaControlCaptions, lblBuildingName %>" />
                                    <telerik:GridBoundColumn UniqueName="ImprovementTypeDescr" DataField="ImprovementTypeDescr" HeaderText="<%$ Resources:RpaControlCaptions, lblBuildingType %>" />
                                    <telerik:GridBoundColumn UniqueName="EffectiveYear" DataField="EffectiveYear" HeaderText="<%$ Resources:RpaControlCaptions, lblEffectiveYear %>"
                                        DataType="System.Int16" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
                                    <telerik:GridBoundColumn UniqueName="ActualArea" DataField="ActualArea" HeaderText="<%$ Resources:RpaControlCaptions, lblActualArea %>"
                                        DataType="System.Decimal" DataFormatString="{0:N0}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
                                    <telerik:GridBoundColumn UniqueName="FeatureCount" DataField="AttachedFeatures.Count" HeaderText="<%$ Resources:RpaControlCaptions, lblFeatures %>"
                                        DataType="System.Int32" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                    <telerik:GridBoundColumn UniqueName="FinalValue" DataField="FinalValue" HeaderText="<%$ Resources:RpaControlCaptions, lblValue %>"
                                        DataType="System.Decimal" DataFormatString="{0:C0}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </div>
                    <asp:Panel runat="server" ID="pnlBuildingChildGrids">
                        <div style="padding-top:10px; margin-right: .5%; float:left; width:49.5%;">
                            <asp:Label runat="server" Text="<%$ Resources:RpaControlCaptions, lblStructuralElements %>" /><br />
                            <telerik:RadGrid ID="dtgElements" runat="server" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" ShowFooter="true"
                                AutoGenerateColumns="false" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowCustomPaging="true" PageSize="5"
                                Width="100%" OnNeedDataSource="dtgElements_NeedDataSource">
                                <MasterTableView runat="server" DataKeyNames="ElementCategoryDescr, ElementCodeDescr" IsFilterItemExpanded="false">
                                    <Columns>
                                        <telerik:GridBoundColumn UniqueName="ElementCategoryDescr" DataField="ElementCategoryDescr" HeaderText="<%$ Resources:RpaControlCaptions, lblCategory %>" />
                                        <telerik:GridBoundColumn UniqueName="ElementCodeDescr" DataField="ElementCodeDescr" HeaderText="<%$ Resources:RpaControlCaptions, lblDescription %>" />
                                        <telerik:GridBoundColumn UniqueName="Percent" DataField="Percent"  HeaderText="<%$ Resources:RpaControlCaptions, lblPercent %>" 
                                            DataType="System.Decimal" DataFormatString="{0:P0}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                        </div>
                        <div style="padding-top:10px; margin-left: .5%; float:right; width:49.5%;">
                            <asp:Label runat="server" Text="<%$ Resources:RpaControlCaptions, lblUnitCounts %>" /><br />
                            <telerik:RadGrid ID="dtgUnits" runat="server" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" ShowFooter="true"
                                AutoGenerateColumns="false" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowCustomPaging="true" PageSize="5"
                                Width="100%" OnNeedDataSource="dtgUnits_NeedDataSource">
                                <MasterTableView runat="server" DataKeyNames="ElementCategoryDescr, ElementCodeDescr" IsFilterItemExpanded="false">
                                    <Columns>
                                        <telerik:GridBoundColumn UniqueName="ElementCategoryDescr" DataField="ElementCategoryDescr" HeaderText="<%$ Resources:RpaControlCaptions, lblCategory %>" />
                                        <telerik:GridBoundColumn UniqueName="ElementCodeDescr" DataField="ElementCodeDescr" HeaderText="<%$ Resources:RpaControlCaptions, lblDescription %>" />
                                        <telerik:GridBoundColumn UniqueName="UnitCount" DataField="UnitCount"  HeaderText="<%$ Resources:RpaControlCaptions, lblUnits %>" 
                                            DataType="System.Int32" DataFormatString="{0:N0}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                        </div>
                        <div style="clear:both; padding-top:10px">
                            <asp:Label runat="server" Text="<%$ Resources: AttachedFeatures %>" /><br />
                            <telerik:RadGrid ID="dtgBuildingFeatures" runat="server" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" ShowFooter="true"
                                AutoGenerateColumns="false" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowCustomPaging="true" PageSize="5"
                                Width="100%" OnNeedDataSource="dtgBuildingFeatures_NeedDataSource">
                                <MasterTableView runat="server" DataKeyNames="Id" IsFilterItemExpanded="false">
                                    <Columns>
                                        <telerik:GridBoundColumn UniqueName="CodeShortDescr" DataField="CodeShortDescr" HeaderText="<%$ Resources: FeatureName %>" />
                                        <telerik:GridBoundColumn UniqueName="Description" DataField="Description" HeaderText="<%$ Resources: FeatureDescription %>" />
                                        <telerik:GridBoundColumn UniqueName="QualityDescr" DataField="QualityDescr" HeaderText="<%$ Resources:RpaControlCaptions, lblQuality %>" />
                                        <telerik:GridBoundColumn UniqueName="ConditionDescr" DataField="ConditionDescr" HeaderText="<%$ Resources:RpaControlCaptions, lblCond %>" />
                                        <telerik:GridBoundColumn UniqueName="EffYearBuilt" DataField="EffYearBuilt" HeaderText="<%$ Resources:RpaControlCaptions, lblYear %>"
                                            DataType="System.Int16" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                                        <telerik:GridBoundColumn UniqueName="FinalValue" DataField="FinalValue" HeaderText="<%$ Resources:RpaControlCaptions, lblValue %>"
                                            DataType="System.Decimal" DataFormatString="{0:C0}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                        </div>
                    </asp:Panel>
                </telerik:RadPageView>
                <telerik:RadPageView ID="pvSales" runat="server" CssClass="pageView">
                     
                </telerik:RadPageView>
                <telerik:RadPageView ID="pvExemptions" runat="server" CssClass="pageView">
                     
                </telerik:RadPageView>
                <telerik:RadPageView ID="pvNotes" runat="server" CssClass="pageView">
                     
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </telerik:RadPane>
        <telerik:RadPane ID="rpAppraisalDetailRight" runat="server" Height="100%" Width="22px" MinWidth="200" BackColor="#C2D0E0" Locked="True">
                           
        </telerik:RadPane>
    </telerik:RadSplitter>
</div>

Am I missing something in my markup? Or could it possibly be a bug in the control or maybe even IE? I am running IE 9.0.8112.16421

Thanks!
Geoff
Dobromir
Telerik team
 answered on 14 Feb 2012
5 answers
81 views
I am trying to upgrade the telerik version in an older project. After I use the upgrade wizard I start to get endless "Circular Reference Not Allowed" errors. I have looked around for solutions and seem to have corrected some issues by changing .ascx controls to different folders, as suggested online. But as soon as I fix one circular reference another appears. I am sure the this releated to the wizard upgrade because I have reverted to older copy, tried upgrading again, always getting the same results after upgrade. Can anyone give me suggestions? 

Thanks
Curt
Chavdar Dimitrov
Telerik team
 answered on 14 Feb 2012
6 answers
84 views
Hi,

I have set the scheduler ReadOnly property to true and use WebService binding, the appointments are still rendered as editable. When I use normal binding the appointments are rendered as ReadOnly.

Please let me know what I am missing in this.
Plamen
Telerik team
 answered on 14 Feb 2012
5 answers
102 views
Hello,

I have a radchart which is bound to a database.  When I click on a piece of the bar chart, I want to drill down to another chart based on the label of the piece they clicked.  For instance, if I have a bar chart with the number sold of apples/oranges on it, when I click on the apples colomn, I want to show another chart about apples.  How can I determine what the label is from the click method.  The args.seriesItem.name is "Item2", so that doesn't help.  Also, args.seriesItem.label.base.TextBlock.text is empty.

Thanks,

Eric
Rusty
Top achievements
Rank 1
 answered on 14 Feb 2012
7 answers
113 views
Hello,

I've a question about the RadGrid, scrolling and headers. I've defined a RadGrid with none StaticHeader because I want my customers to drag and drop the columns to create their own preferred view (column order). The grid is scrollable, scrollheight is set to 197px, which means in my case a viewport of 7 record/lines. When scrolling  I want to 'freeze' the header row, at this moment the header scroll's with the lines so it scrolls out of the viewport.
I've read several articles on the web and the solution is : use static headers. As a mentioned before, that is not an options because I want the user to decided which column order het wants to use (with drag and drop).
On the web I found an article where they do something with CSS on a normal GridView to force the header in the viewport (http://forums.asp.net/t/1162406.aspx) but that solution does not work for the RadGrid.

Hopefullty there's someone with a solotion for this issue.

Regards,
  Jos
Galin
Telerik team
 answered on 14 Feb 2012
2 answers
253 views
I have a RadGrid that is populated in the code-behind with a DataTable. The grid has an edit FormTemplate:
<telerik:RadGrid ID="rgFileList" runat="server" OnItemCommand="rgFileList_ItemCommand">
            <MasterTableView HorizontalAlign="Right">
                <EditFormSettings EditFormType="Template">
                    <FormTemplate>
                        <table style="width: 85%" align="center">
                            <tr>
                                <td style="width: 35%" align="right" >Description:  </td>
                                <td style="width: 65%">
                                    <asp:TextBox ID="txtDescription" runat="server" Text='<%# Bind("description") %>'></asp:TextBox>
                                </td>
                            </tr>
                            <tr><tdcolspan="2"> </td></tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Button ID="btnUpdate" runat="server" Text="Update" CommandName="Update" />
                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CommandName="Cancel" />
                                </td>
                            </tr>
                        </table>
                    </FormTemplate>
                </EditFormSettings>

When I click the 'Edit' button on a row, the edit form pops up, I enter the Description textbox, and click the Update button.  Control goes to

rgFileList_ItemCommand where the code is:

protected void rgFileList_ItemCommand(object source, GridCommandEventArgs e)
    {
        string strCommand = e.CommandName.ToUpper().Trim();
 
        if (strCommand == "UPDATE")
        {
            GridEditableItem grdSelected = (GridEditableItem)e.Item;
            string filename = grdSelected.GetDataKeyValue("filename").ToString().Trim();
 
            TextBox tb = (TextBox)grdSelected.FindControl("txtDescription");
            string description = tb.Text.ToString().Trim();


the problem is that the TextBox value is the original value of description for that row, not the new value typed into the textbox.  Why?  Can't figure out why it does not result in the new value.
The GridEditableItem grdSelected object is showing:

EditManager = 'grdSelected.EditManager' threw an exception of type 'Telerik.Web.UI.GridBindingException'GridEditableItem

{"The current EditFormType does not support the requested editing capabilities."}

Dan
Top achievements
Rank 2
 answered on 14 Feb 2012
1 answer
91 views

Hi together,

I have a question about the RadGrid. I have now created a RadGrid with a Edit, Delete and Add new Record Button. The Edit Mask shows fine, but if I Edit a record it dosn't update it. When I debug I see that it doesnt't run my Update Method in my Code.

Below my apsx and my methods.

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadioButton1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadioButton2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadioButton2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadioButton1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="CheckBox1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
        Width="75px" Transparency="25">
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
            style="border: 0;" />
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadGrid ID="radGrid1" AutoGenerateEditColumn="True" DataSourceID="objectDataSource1"
        runat="server" GridLines="None" Skin="Office2010Blue">
        <MasterTableView AllowAutomaticUpdates="True" AllowAutomaticInserts="True" CommandItemDisplay="Top"
            DataSourceID="ObjectDataSource1">
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                    <ItemStyle CssClass="MyImageButton" />
                </telerik:GridEditCommandColumn>
               <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                    UniqueName="DeleteColumn">
                    <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                </telerik:GridButtonColumn>
            </Columns>
            <EditFormSettings ColumnNumber="2" CaptionDataField="Address" CaptionFormatString="Edit properties of Address Case Relations">
                <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" />
                <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit"/>           
                 <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" />
                <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                </EditColumn>
                <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
                <PopUpSettings ScrollBars="None" />
            </EditFormSettings>
             
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn Resizable="False" Visible="False">
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
        </MasterTableView>
    </telerik:RadGrid>
    <asp:ObjectDataSource ID="objectDataSource1" TypeName="ESTV.A3.Logic.AddressCaseRelationBll" SelectMethod="Select" UpdateMethod="Update" InsertMethod="Insert" DeleteMethod="Delete" runat="server"
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:QueryStringParameter Name="addressId" Type="String" Direction="Input" QueryStringField="id">
            </asp:QueryStringParameter>
        </SelectParameters>
        <UpdateParameters>
            <asp:Parameter Name="id" Type="String" />
            <asp:Parameter Name="NotificationDate" Type="DateTime" />
            <asp:Parameter Name="NoticeOfReceipt" Type="Boolean" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="id" Type="String" />
            <asp:Parameter Name="NotificationDate" Type="DateTime" />
            <asp:Parameter Name="NoticeOfReceipt" Type="Boolean" />
        </InsertParameters>
        <DeleteParameters>
            <asp:Parameter Name="id" Type="String"/>
        </DeleteParameters>
    </asp:ObjectDataSource>

And here my Code

public List<AddressCaseRelation> Select(string addressId)
       {
           ////TODO: validation and error handling
           Guid guidId = new Guid(addressId);
           return entityDao.GetByAddressId(guidId);
       }
 
       public void Update(string id, bool noticeOfReceipt, DateTime notificationDate)
       {
           Guid guidId = new Guid(id);
           AddressCaseRelation addressCaseRelation = entityDao.GetById(guidId);
 
           addressCaseRelation.NoticeOfReceipt = noticeOfReceipt;
           addressCaseRelation.NotificationDate = notificationDate;
            
           entityDao.Update(addressCaseRelation);
           entityDao.CommitChanges();
       }
 
       public void Insert(string id, bool noticeOfReceipt, DateTime notificationDate)
       {
           Guid guidId = new Guid(id);
           AddressCaseRelation addressCaseRelation = entityDao.GetById(guidId);
 
           addressCaseRelation.NoticeOfReceipt = noticeOfReceipt;
           addressCaseRelation.NotificationDate = notificationDate;
 
           entityDao.Update(addressCaseRelation);
           entityDao.CommitChanges();
       }
 
       public void Delete(string id)
       {
           Guid guidId = new Guid(id);
           AddressCaseRelation addressCaseRelation = entityDao.GetById(guidId);
           entityDao.Delete(addressCaseRelation);
           entityDao.CommitChanges();
       }

I have also the same problem if i click the Add new Record Button, the form doesnt appear. What is here wrong?
Regards and thanks


Veli
Telerik team
 answered on 14 Feb 2012
4 answers
1.6K+ views
Hello all, 
  
          I am new to using telerik rad controls and i am really excited now to use them. Can anybody post a sample code on how to attach the tooltip to a label which is the first template column in my radgrid. Hovering over this competencyname should display its corresponding info. Can i get a sample code here.

code

<telerik:GridTemplateColumn>

<ItemTemplate>

<asp:Label ID="lblComp" Text='<% #Eval("CompetencyName") %>' runat="server"></asp:Label>

<!-- POP Up control for displaying competency info -->

<telerik:RadToolTipManager runat="server" ID="RadToolTip3" Height="240px" Width="500px"

TargetControlID="lblComp" IsClientID="true" OffsetY="4" Sticky="true" Animation="Fade"

Position="BottomCenter" RelativeTo="Element" Skin="Telerik" OnAjaxUpdate="OnAjaxUpdate">

</telerik:RadToolTipManager>

<!-- end of pop up control for displaying info -->

</ItemTemplate>

</telerik:GridTemplateColumn>

I have just tried displaying a tooltip with some text but nothing is being displayed.please help i did not understand the sample already provided by telerik.
I am developing dnn modules

Thanks,
Sandeep.M

    
Richard
Top achievements
Rank 1
 answered on 14 Feb 2012
3 answers
151 views
Hi,

I am using Telerik.Web.UI rev 2011.1.315.35. I have met a strange issue — opening the Document Manager and navigating to one specific folder causes Document Mamanger to display the following error message:

There was an error in the callback.
    <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
         </div>
     </div>
 </div></li><li class="rtLI"><div class="rtMid">
     <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
         </div>
     </div>
 </div></li><li class="rtLI"><div class="rtMid">
     <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
         </div>
     </div>
 </div></li><li class="rtLI"><div class="rtMid">
     <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
         </div>
     </div>
 </div></li><li class="rtLI"><div class="rtMid">
     <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
         </div>
     </div>
 </div></li><li class="rtLI"><div class="rtMid">
     <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
         </div>
     </div>
 </div></li><li class="rtLI"><div class="rtMid">
     <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
         </div>
     </div>
 </div></li><li class="rtLI"><div class="rtMid">
     <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
         </div>
     </div>
 </div></li><li class="rtLI"><div class="rtMid">
     <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
         </div>
     </div>
 </div></li><li class="rtLI"><div class="rtMid">
     <span class="rtSp"></span><span class="rtPlus"></span><div class="rtIn">
         <div class="rtTemplate">
             <span></span><span></span>
        </div>
...

This happens only with one item in the content tree. Clicking on it results in the mentioned error message displayed, and the subfolders of this folder are not expanded, though they are displayed in the middle pane. Could you please provide me with some assumptions on how to fix this?
Rumen
Telerik team
 answered on 14 Feb 2012
3 answers
195 views
Hi,

I'm hiding some of the column of detail table view in prerender event but the grid is not refreshing .

once I expand and collapse the grid it's refreshing.

 
var hideColumn = DBContext.TankMeasurementTypes.Where(p => p.TankMeasurementType_id == strpID);
 
            foreach (var x in hideColumn)
            {
                if (x.FK_MeasurementId == 2)
                {
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Tot_Volumne").Visible = false;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Est").Visible = true;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Feetperinch").Visible = true;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Increment_Start").Visible = true;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Increment_End").Visible = true;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("StrapLength").Visible = true;
                    grdTakStrap.MasterTableView.DetailTables[0].CommandItemSettings.AddNewRecordText = "Add Strap";
 
                }
                else
                {
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Tot_Volumne").Visible = true;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Est").Visible = false;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Feetperinch").Visible = false;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Increment_Start").Visible = false;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("Increment_End").Visible = false;
                    grdTakStrap.MasterTableView.DetailTables[0].GetColumn("StrapLength").Visible = false;
                    grdTakStrap.MasterTableView.DetailTables[0].CommandItemSettings.AddNewRecordText = "Add BBL/Inch";
                }


please help me for this issue

Regards,
Yasar
Tsvetina
Telerik team
 answered on 14 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?