Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
90 views
I'm trying to set the inital deplay time setting on the control but it won't take affect, i'm not sure why. Am I setting it incorrectly?

Application.Master: 

        <!-- Ajax Manager -->
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
            DefaultLoadingPanelID="defaultLoadingPanel"
            InitialDelayTime="50000"
            MinDisplayTime="50000">
        </telerik:RadAjaxManager>

        <!-- Default Loading Panel -->
        <telerik:RadAjaxLoadingPanel ID="defaultLoadingPanel"
            runat="server"
            BackgroundPosition="Center"
            IsSticky="false"
            CssClass="MyModalPanel" 
            InitialDelayTime="50000"
            MinDisplayTime="50000"
            >
        </telerik:RadAjaxLoadingPanel>

Page.aspx:

    <telerik:RadAjaxManagerProxy runat="server" ID="radAjaxProxy">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="cmdViewAccount">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlContent" LoadingPanelID="defaultLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
Kessy
Top achievements
Rank 1
 asked on 10 Oct 2017
3 answers
423 views
Good evening everyone,

I'm working with data source that returns a business object containing several properties of type enum.  Is there a recommended way of binding such properties to GridDropDownColumn for displaying and editing?  So far, adding values to the control programmatically via ItemDataBound seems to be very tedious and inefficient.  Pointers or some guidelines on how to work with enums and the RadGrid would be excellent.

Thanks

        \Steve
Prem
Top achievements
Rank 1
 answered on 10 Oct 2017
9 answers
334 views

Dear Telrrik,

 

I am trying to put custom skin for RadSpellCheck, even I gave enable embed skin false and uploaded the skin CSS file and image in the theme folder, I am not getting the applied skin properly. Please see the attachments for more information

 
pelase find the list of below images

http://www.hrdpower.com/downloads/spell/Spell%20Address%20List%20in%20Solution%20Explorer.JPG
http://www.hrdpower.com/downloads/spell/Spell%20Half%20Visible.JPG
http://www.hrdpower.com/downloads/spell/Spell%20link%20address%20has%20to%20be%20addressed%20in%20%20Master%20Page.JPG
http://www.hrdpower.com/downloads/Spell%20Source%20Code.JPG


 

Regards,

Vinod

Harikrishnan
Top achievements
Rank 1
 answered on 10 Oct 2017
0 answers
52 views
Hi,
I want to use the attachment feature in a radGrid. I have all the attachment in a dedicated directory, location of files is stored in database. can you please provide some sample example code to handle download attachment. Thanks in advance!
abc
Top achievements
Rank 1
 asked on 10 Oct 2017
0 answers
89 views
<MasterTableView DataKeyNames="Id" CommandItemDisplay="Top"  IsFilterItemExpanded="false" HierarchyLoadMode="Conditional">
            <CommandItemTemplate>
                <div class="GridCommandItemRow">
                    <%--Override RPAStyles width = 65% --%>
                    <div class="GridCommandItemLabel" style="width:40%">
                        <asp:Label runat="server" meta:resourcekey="lblBuildingCharacteristics" />
                    </div>
                    <%--Override RPAStyles width = 25% --%>
                    <div class="GridCommandItemButtons" style="width:50%">

                        <%--Buttons in their own GridCommandItemButton div are inserted float right, i.e. reverse order--%>
                        <div class="GridCommandItemButton">
                            <maui:RadButton 
                                runat="server" 
                                ID="btnSetCurrentOrderBuildings" 
                                BackColor="Transparent"
                                BorderStyle="None"
                                ButtonType="LinkButton"
                                ForeColor="White"
                                OnClick="btnSetCurrentOrderBuildings_OnClick"
                                Text="<%$ Resources:RpaControlCaptions, SetCurrentOrder %>" >
                                <Icon PrimaryIconCssClass="rgRefresh" />
                            </maui:RadButton>
                        </div>

                        <div class="GridCommandItemButton">                                                                 
                            <maui:RadButton 
                                runat="server" 
                                ID="btnEditSketch" 
                                BackColor="Transparent"
                                BorderStyle="None"
                                ButtonType="LinkButton"
                                ForeColor="White"
                                Enabled="<%# RPAController.CurrentSiteSketch != null && RPAController.CanEdit%>" 
                                CommandName="EditSketch"
                                Text="<%$ Resources:RpaControlCaptions, btnEditSketch_ToolTip %>" >
                                <Icon PrimaryIconCssClass="rgEdit" />
                            </maui:RadButton>
                        </div>

                        <div class="GridCommandItemButton">    
                            <maui:RadButton 
                                runat="server" 
                                ID="btnApplyTemplate" 
                                BackColor="Transparent"
                                BorderStyle="None"
                                ButtonType="LinkButton"
                                ForeColor="White"
                                Enabled="<%# RPAController.CurrentAppraisalSite.CanAddBuildings && RPAController.CanEdit  %>" 
                                CommandName="ApplyTemplate"
                                Text="<%$ Resources:RpaControlCaptions, btnApplyTemplate %>" >
                                <Icon PrimaryIconUrl="/skins/GovernBlue/Maui/Button/prefs_selected.gif" />
                            </maui:RadButton>
                        </div>

                        <div class="GridCommandItemButton">                                                   
                            <maui:RadButton 
                                runat="server" 
                                ID="btnAddBuilding" 
                                BackColor="Transparent"
                                BorderStyle="None"
                                ButtonType="LinkButton"
                                ForeColor="White"
                                Enabled="<%# RPAController.CurrentAppraisalSite.CanAddBuildings && RPAController.CanEdit %>" 
                                Text="<%$ Resources:RpaControlCaptions, btnAddNew_ToolTip %>" >
                                <Icon PrimaryIconCssClass="rgAdd" />
                            </maui:RadButton>
                        </div>

                        <div class="GridCommandItemButton">                                                   
                            <maui:RadButton 
                                runat="server" 
                                ID="btnPrint"
                                BackColor="Transparent"
                                BorderStyle="None"
                                ButtonType="LinkButton"
                                ForeColor="White"
                                Enabled="<%# RPAController.CanEdit %>" 
                                CommandName="PrintReport" 
                                Text="<%$ Resources:RpaControlCaptions, btnPrint %>">
                                <Icon PrimaryIconCssClass="iconReport" />
                            </maui:RadButton>
                        </div>
                    </div>
                </div>
            </CommandItemTemplate>
            <FooterStyle Font-Bold="true" />
            <Columns>
                <telerik:GridDragDropColumn HeaderStyle-Width="18px">
                </telerik:GridDragDropColumn>

                <maui:GridBoundColumn UniqueName="BuildingName" DataField="BuildingName" HeaderText="<% $Resources: dtgBuildingMain_BuildingName %>" />
                <maui:GridBoundColumn UniqueName="ImprovementTypeDescr" DataField="ImprovementTypeDescr" HeaderText="<% $Resources: dtgBuildingMain_ImprovementTypeDescr %>" />
                <maui:GridBoundColumn UniqueName="EffectiveYear" DataField="EffectiveYear" DataType="System.Int16" HeaderStyle-HorizontalAlign="Right"
                    ItemStyle-HorizontalAlign="Right" HeaderText="<% $Resources: dtgBuildingMain_EffectiveYear %>"
                    FooterStyle-HorizontalAlign="Right" FooterText="<% $Resources: dtgBuildingMain_Total %>" />
                <maui:GridBoundColumn UniqueName="DefaultSize" DataField="DefaultSize" DataType="System.Decimal" DataFormatString="{0:N2}"
                    HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderText="<% $Resources: dtgBuildingMain_Area %>"
                    FooterStyle-HorizontalAlign="Right" Aggregate="Sum" />
                <maui:GridBoundColumn UniqueName="AttachedFeaturesCount" DataField="AttachedFeatures.Count" DataType="System.Int32"
                    HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderText="<% $Resources: dtgBuildingMain_AttFeat %>" />
                <maui:GridBoundColumn UniqueName="RelatedFeaturesCount" DataField="RelatedFeatures.Count" DataType="System.Int32"
                    HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderText="<% $Resources: dtgBuildingMain_RelFeat %>" />
                <maui:GridBoundColumn UniqueName="RelationshipsCount" DataField="Relationships.Count" DataType="System.Int32"
                    HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderText="<% $Resources: dtgBuildingMain_RelLand %>" />
                <maui:GridTemplateColumn UniqueName="Actions" AllowFiltering="false" Groupable="false">
                    <ItemTemplate>
                        <maui:RadButton runat="server" ID="btnEditBuilding" Enabled="<%# RPAController.CanEdit %>" CssClass="rgEdit" CommandName="EditBuilding" Image-EnableImageButton="true" ButtonType="LinkButton" />
                        <maui:RadButton runat="server" ID="btnBuildingCopy" Enabled="<%# RPAController.CanEdit %>" CssClass="iconCopy" Image-EnableImageButton="true" ButtonType="LinkButton" />
                        <maui:RadButton runat="server" ID="btnBuildingMove" Enabled="<%# RPAController.CanEdit %>" CssClass="iconForward" Image-EnableImageButton="true" ButtonType="LinkButton" />
                        <maui:RadButton runat="server" ID="btnNotes_dtgBuildingMain" Enabled="<%# RPAController.CanEdit %>" CssClass="iconNotes" Image-EnableImageButton="true" ButtonType="LinkButton" CommandName="ViewNotes" />
                        <maui:RadButton runat="server" ID="btnPromoteBuilding" CommandName="Promote" Style="vertical-align:middle" Width ="14" Height="16" ButtonType="LinkButton" Image-EnableImageButton="true" Image-ImageUrl="~/skins/GovernBlue/Maui/Button/up_hover.gif" />
                        <maui:RadButton runat="server" ID="btnDeleteBuilding" Enabled="<%# RPAController.CanEdit %>" CssClass="rgDel" CommandName="Delete" Image-EnableImageButton="true" ButtonType="LinkButton" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Right" />
                </maui:GridTemplateColumn>
            </Columns>
            <NestedViewTemplate>
                <maui:RadTabStrip ID="tsBuildingDetail" runat="server" Align="Left" MultiPageID="mpBuildingDetail" SelectedIndex="0">
                    <Tabs>
                        <maui:RadTab Text="<% $Resources: tsBuildingDetail_SizeRecords %>" PageViewID="pvBuildingDetailSizes" />
                        <maui:RadTab Text="<% $Resources: tsBuildingDetail_BuildingCharacteristics %>" PageViewID="pvBuildingDetailUDFs" />
                        <maui:RadTab Text="<% $Resources: tsBuildingDetail_AdjustmentsAndDepreciation %>" PageViewID="pvBuildingDetailAdj" />
                        <maui:RadTab Text="<% $Resources:RpaControlCaptions, TabSituses %>" PageViewID="pvBuildingDetailSituses" />
                    </Tabs>
                </maui:RadTabStrip>
                <maui:RadMultiPage ID="mpBuildingDetail" runat="server" SelectedIndex="0">
                    <maui:RadPageView ID="pvBuildingDetailSizes" runat="server" CssClass="pageView">
                        <div style="margin-top: 2px; margin-left: 2px; margin-right: 2px">
                            <maui:Label ID="Label1" runat="server" Text="<% $Resources: tsBuildingDetail_BuildingSizes %>" /><br />
                            <maui:RadGrid ID="dtgBuildingSizes" runat="server" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" ShowFooter="true"
                                AutoGenerateColumns="false" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowCustomPaging="true" PageSize="5"
                                OnNeedDataSource="dtgBuildingSizes_NeedDataSource" OnDetailTableDataBind="RadGrid1_DetailTableDataBind">
                                <MasterTableView DataKeyNames="Id"  IsFilterItemExpanded="false">
                                    <Columns>
                                        <maui:GridBoundColumn UniqueName="SizeTypeDescr"  DataField="SizeTypeDescr" HeaderText="<% $Resources: dtgBuildingSizes_SizeType %>" />
                                        <maui:GridBoundColumn UniqueName="Size" DataField="Size" DataType="System.Decimal" DataFormatString="{0:N2}"
                                            ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" HeaderText="<% $Resources: dtgBuildingSizes_Size %>" />
                                    </Columns>
                                </MasterTableView>

                            </maui:RadGrid>
                        </div>
                    </maui:RadPageView>
                    <maui:RadPageView ID="pvBuildingDetailUDFs" runat="server" CssClass="pageView">
                        <ucRPAUserDefinedFields:RPAUdfControl runat="server" ID="ucBuildingUDFs" ReadOnly="true" />
                    </maui:RadPageView>
                    <maui:RadPageView ID="pvBuildingDetailAdj" runat="server" CssClass="pageView">
                        <ucAdj:AdjControl ID="ucAdjustments" runat="server" IsPopupMode="False" EditMode="ReadOnly" />
                    </maui:RadPageView>
                    <maui:RadPageView ID="pvBuildingDetailSituses" runat="server" CssClass="pageView">
                        <ucRPASituses:RPASitusGridControl runat="server" ID="ucBuildingSituses" IsEditable="false" />
                    </maui:RadPageView>
                </maui:RadMultiPage>
            </NestedViewTemplate>
        </MasterTableView>
Ashok
Top achievements
Rank 1
 asked on 09 Oct 2017
2 answers
160 views

When I upgrade a Telerik project that has the handlers defined inside a location tag it add duplicate entries.  The ones inside the location remain the same and the handlers are added at the end of the web.config file along with a duplicate authentication tag.

 

Is a better solution to just place everything outside the location override or is there a way to disable updating the web.config file on upgrade? I have a lot of projects inside one solution file, so mass upgrading is preferred over individual upgrades.

 

Here is what I mean by location.

<location allowOverride="True|False" path="path" />

I had to give the WebResource.axd file it's own location per other documentation and placed the main content inside a location of ".".  Some folders are setup for anonymous access, like css and javascript files, while other folders require windows authentication.  I have projects nested under other projects, so I don't want a higher web.config file to have any influence on a lower one.  It's an interesting setup, but it all works great other than trying to upgrade Telerik.  It's easy enough to remove the duplicate entries, but it would be nice to not have to do that for each upgrade. 

I can provide better examples later when I'm in front of a computer.

 

Vesko
Telerik team
 answered on 09 Oct 2017
0 answers
58 views

Hello,

I made a real-time chart which gets e.g. every 5 seconds data from the server and updates itself. My problem is that my XAxis has dates but I only want to show the date where a value is available. But if I select Type="Date" the XAxis shows one entry every second. But I only want an entry every 5 seconds. This i got managed by setting Type="Auto". But if I set this I'm no longer able to format my date values of the XAxis either with DataFormatString or with ClientTemplate.

I really hope you can help me with my problem.

Kind regards,

Felix

 

Felix
Top achievements
Rank 1
 asked on 09 Oct 2017
0 answers
91 views

Hey together.

I work with advanced databinding using the NeedDataSource event and want to add some aggregations to the footer.

After setting the DataSource I do some changes/formatting to the data in the OnDataBound event.

In this case I iterate through the MasterTableView.AutoGeneratedColumns and want to add Aggregations to all decimal Columns:

if (dataColumn.DataType == typeof(decimal))
{
    ((GridNumericColumn)dataColumn).Aggregate = GridAggregateFunction.Sum;
    ((GridNumericColumn)dataColumn).FooterText = string.Empty;
    ((GridNumericColumn)dataColumn).FooterAggregateFormatString = "{0}";
}

 

My problem is, that this only works after a Postback or Rebind but not on the first load. I press refresh or do some sorting on the table and the sum shows up in the footer.

But Rebinding in this event is not possible, so what can I do to see my aggregations on first load? Is there a better event than OnDataBound?

Florian
Top achievements
Rank 1
 asked on 09 Oct 2017
0 answers
72 views

I am experiencing an odd behavior when I apply a paragraph style <P> to a text in a <Div> that contains a class. It's reproducible on all browsers.

To illustrate this, i will use the example below:

<div class="remarks">
Unless the sender is illiterate, please ask the sender to write the RCM text him/herself in Dari or Pashtu. If possible, please provide a translation into English or French.<br />
Information to provide<br />
In the countryside we need to know the name of the province, the district, the area and the village / sub-village of the Sought Person.<br />
Any other useful information should be mentioned, such as close by a mosque, school or well-known building. <br />
<br />
A precise map of the location (hand drawing) can be attached to the RCM.<br />
<br />
Please note: To facilitate distribution and to prevent misunderstanding due to transcription, spelling or pronunciation, please ask the sender to write both the sender's and addressee's details in Dari or Pashtu, using the attached form<br />
ICRC and/or ARCS. Cases from abroad should be directed to ICRC Kabul.<br />
<br />
After the initial assessment and processing by the ICRC, Tracing Cases in Afghanistan are normally followed up through active fieldwork conducted by the ARCS. Most of the districts and provinces are inaccessible to ICRC staff for security reasons.<br />
<br />
Any information regarding a case will be communicated by ICRC-Kabul to the concerned National Society/ICRC Delegation who is in charge of submitting information to the Enquirer. In the case of sad news regarding the Sought Person, ICRC-Kabul will send an explanatory note that will allow a re-contact with the Enquirer and a transmission of news in the most appropriate way.
</div>

 

Here, the <div class="remarks"> is the container of all the Text. 

If we apply a paragraph style <p> to the text with the bold style in Design mode, the <Div> will not be the container anymore, and we will have the HTML below: 

<div class="remarks">
Unless the sender is illiterate, please ask the sender to write the RCM text him/herself in Dari or Pashtu. If possible, please provide a translation into English or French.<br />
Information to provide<br />
In the countryside we need to know the name of the province, the district, the area and the village / sub-village of the Sought Person.<br />
Any other useful information should be mentioned, such as close by a mosque, school or well-known building. <br />
<br />
A precise map of the location (hand drawing) can be attached to the RCM.<br />
<br />
</div>
<p class="remarks">Please note: To facilitate distribution and to prevent misunderstanding due to transcription, spelling or pronunciation, please ask the sender to write both the sender's and addressee's details in Dari or Pashtu, using the attached form<br />
ICRC and/or ARCS. Cases from abroad should be directed to ICRC Kabul.<br />
<br />
</p>
<div class="remarks">After the initial assessment and processing by the ICRC, Tracing Cases in Afghanistan are normally followed up through active fieldwork conducted by the ARCS. Most of the districts and provinces are inaccessible to ICRC staff for security reasons.<br />
<br />
Any information regarding a case will be communicated by ICRC-Kabul to the concerned National Society/ICRC Delegation who is in charge of submitting information to the Enquirer. In the case of sad news regarding the Sought Person, ICRC-Kabul will send an explanatory note that will allow a re-contact with the Enquirer and a transmission of news in the most appropriate way.
</div>

 

So if the div container has a style with a border radius,padding, margin and background color, this styles will be applied separately on the paragraph, so the result will be messy.

i did the test on the online telerik demo, and the case is reproducible.

Regards,

 

 

Najlae
Top achievements
Rank 1
 asked on 09 Oct 2017
2 answers
212 views

I have one wizard using a custom template css.  Then in the last step of that wizard I have another wizard control set to use a different template.  The issue I'm having is the styles for the main wizard are overwriting the sub wizard because by default they both use the same css class names.

 

Is there a way I could get the sub wizard to use different css class names or atleast use the version of the css classes that are under the template class I want for the sub wizard?

 

 

Magdalena
Telerik team
 answered on 09 Oct 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?