Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
304 views
We are using the Editor as the WYSIWYG for our client CMS. I am trying to make the layout inside the Editor window look as close to the real site as possible, so I am using the <CssFiles> feature to include some CSS, and the <classes> feature in the toolset XML to add custom classes to the Apply CSS Class menu. However, when I try to add new classes or edit old ones in the toolset XML, they are not getting picked up by the editor when I refresh the page.

Here is the code I am using to pull in CSS files into the editor window:
<CssFiles>
  <telerik:EditorCssFile Value="~/_EditorToolSets/bootstrap.css" />
  <telerik:EditorCssFile Value="~/_EditorToolSets/editor2.css" />
</CssFiles>

Bootstrap.css is the framework styles, the fonts css is for webfont support, and editor2.css is to define the custom styles I want the client to see in the window.

Here is the code from the toolset XML:
<classes>
<class name="Lead Paragraph" value=".lead" />
<class name="CAC Image" value=".cac-img" />
<class name="CAC Button" value=".cac-btn" />
</classes>

The only one that is working is the "Lead Paragraph" style. The others do not appear in the dropdown no matter what I do. I have tried changing the name of the toolset file to force a recache; cleaning and rebuilding the solution; and of course, viewing the page in a new browser to bypass cache issues.

Is there some kind of syntax rule I'm not aware of? Or limitations to the style sheets that can be added to the editor window using the <CssFiles> feature?
Ianko
Telerik team
 answered on 17 Jun 2014
1 answer
73 views
Using 2014.1.403. In the image properties dialog, the icon for the option to constrain the image aspect ratio is missing. The browser loads the icon image from http://d35islomi5rx1v.cloudfront.net/ajaxz/2014.1.403/Common/CommonIcons.gif. The section with the constrain icons is empty. Your demo site pulls the image from a resource, and it is complete.

As a workaround, I took a local copy of the correct image, and added css to SetImageProperties.aspx to use my local copy.

I also modified this file to change the default setting of this button to constrain the size, which I think is more useful to users.
Ianko
Telerik team
 answered on 17 Jun 2014
2 answers
103 views
Hello, 

This is my first usage of PageLayout control.

I used the provided codes from this page: http://www.telerik.com/help/aspnet-ajax/page-layout-responsive-design-overview.html and run my website from my computer. It display correctly and when I resize the browser window it works well (e.g. 3 blocks from 2nd row changed to 1).

[IMG]http://i58.tinypic.com/2w4wtia.png[/IMG]

But when I publish this site to web server and when I browse it through my phone, it did not responsive as there is still 3 blocks in 2nd row.

[IMG]http://i60.tinypic.com/i25bvc.png[/IMG]

What did I miss? Is there any code that I need to tell PageLayoutControl that this is PC, this is Phone, etc.. ?

Thanks in advanced,
Robin
Ivan Zhekov
Telerik team
 answered on 17 Jun 2014
5 answers
111 views
Hi  -- I just updated to latest release yesterday and this morning I notice that all my menus do not show separator items anymore for the default skin -- I must change to another skin like windows 7 for them to show.

Is it me or is there a problem with latest release?
Ivan Zhekov
Telerik team
 answered on 17 Jun 2014
7 answers
264 views
hi,

  if i want to disable the option of rename how can i do it??means when the user right clicks the file the rename option should be disable.........how can i do it??secondly if i want to disable the rename option on directory which starts with name shortcuts how can i do it??

regards

samee javaid 
Princy
Top achievements
Rank 2
 answered on 17 Jun 2014
14 answers
713 views
    protected void ddlMake_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
    {  
        ViewState["Make"] = e.Text;  
    } 

Forgive me if this is an extremely easy question but for some reason I cannot get the SelectedValue rather than the SelectedText from the RadCombo in the SelectedIndesChanged event.  Can someone please help me find where this may be?  e.Text is the only thing that appears to be accessible.  My ID values are the hidden piece I need.

Thanks in advance.
Doug

Shinu
Top achievements
Rank 2
 answered on 17 Jun 2014
1 answer
111 views
I have a radgrid with a  GridBoundColumn. There is a button outside the radgrid with is enabled only when one or more rows are selected. How can I achieve this client side? I tried the following but did not work:
this._RadGrid1.ClientSettings.ClientEvents.OnRowSelected = "OnRowSelected";
Shinu
Top achievements
Rank 2
 answered on 17 Jun 2014
1 answer
167 views
Hi

I am retrieving data from database table (MS SQL Server), which can have thousands of rows. DataSource for RadGrid is an EntityDataSource control.

For performance & usability reasons I have activated paging. This works really good as long as grouping is not involved! SQL on server-side only returns rows for current page when grouping is not enabled, but when it is always all rows get returned. It was verified by SQL Profiler.

I have checked all properties in EntityDataSource (and of EntityDataSourceView control - in OnQueryCreated event) and they are all correct for paging and sorting (see http://msdn.microsoft.com/en-us/library/vstudio/cc488534%28v=vs.100%29.aspx).

And also RadGrid.EnableLinqExpressions and MasterTableView.EnableLinqGrouping are set to true.

Here relevant markup:

<telerik:RadGrid ID="VialsGrid" runat="server" CellSpacing="0"
    AllowPaging="true" PageSize="50" AllowFilteringByColumn="true" AutoPostBackOnFilter="true" AutoGenerateColumns="false" AllowSorting="true"
    GridLines="None" Width="1000" ItemStyle-VerticalAlign="Top" AlternatingItemStyle-VerticalAlign="Top"
    DataSourceID="VialsGridDataSource" EnableLinqExpressions="true" OnUpdateCommand="VialsGrid_UpdateCommand" OnItemCreated="VialsGrid_ItemCreated">
    <MasterTableView DataKeyNames="VialLocationID" Name="MasterTableView" CommandItemDisplay="Top" EnableLinqGrouping="true">
        <Columns>
            ...
        </Columns>
        <CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="true"></CommandItemSettings>
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="VialLocationGroupName" FieldAlias="VialLocationGroupName" HeaderText="Group" />
                </SelectFields>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="VialLocationGroupName" />
                </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents OnCommand="function(){}" OnMasterTableViewCreated="MasterTableViewCreated" />
    </ClientSettings>
</telerik:RadGrid>
</div>
 
<asp:EntityDataSource ID="VialsGridDataSource" runat="server"
    ConnectionString="name=EmbryoDBEntities"
    DefaultContainerName="EmbryoDBEntities" EnableFlattening="false"
    EnableInsert="false" EnableUpdate="true" EnableDelete="false"
    EntitySetName="VialLocationViews" OrderBy="it.VialLocationGroupName, it.VialLocation asc"
    AutoPage="true" AutoSort="true"
    OnQueryCreated="VialsGridDataSource_QueryCreated">
</asp:EntityDataSource>

Any ideas?

Thanks,
Roger

Daniel
Telerik team
 answered on 16 Jun 2014
1 answer
100 views
We are displaying a lightbox with a simple form and button within a relatively complex page (complex mostly due to the foundation css classes used), and as soon as it comes up it closes within 1-4 seconds.  If there is a javascript timer on the page closes in 1-2 seconds; if the same page doesn't have the timer it closes in 3-4 seconds.  A simple page with the same lightbox (using their same master page) stays open until manually closed.  It appears then that other stuff is causing the closing.  Is there a way the lightbox can block the page until it is closed? Are there any best practices on keeping a lightbox isolated from what else is going on in the page?
Thanks very  much
Angel Petrov
Telerik team
 answered on 16 Jun 2014
2 answers
102 views
Hi,

I need some guidance on using/setting up Ajax in my application. My application is a single page aspx with many user controls on it. When the page loads initially, there's a RadTabStrip with RadMultiPage which dynamically loads a user control containing RadListView. When the user clicks a button on an item, the application dynamically creates a tab that has the detail info of the item.  At this point, everything is currently working fine.

The problem starts here:

The new detail tab contains a user control that is used as a layout page to host other 5 user controls.  When I click on a button on any of the 5 controls, they all do a post-back instead of callback.  I only want let's say user control 3 to trigger an update on user control 5.

I've set up RadAjaxManager on the Main page which hosts the RadTabStrip like this :
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadFilterButton">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" />

Listview user control has RadAjaxManagerProxy:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadListView1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

When user clicks a button on the list view, the application creates another tab that has a user control hosting other 5 user controls.
This is the code of the detail page:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="DetailLocationContact">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="DetailProvider" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
 
<div class="detailpane">
    <!-- LeadId -->
    <div class="leadidarea">
        <asp:Label ID="Label1" runat="server" Text="Lead ID:" /><asp:TextBox ID="LeadIDTextBox" runat="server" Text="LeadID"></asp:TextBox>
        Detail Main Controls here!
    </div>
 
    <!-- Forecast -->
    <div class="forecastarea">
        <uc1:DetailForecast runat="server" ID="DetailForecast" />
    </div>
 
    <!-- Company -->
    <div class="companyarea">
        <uc2:DetailCompany runat="server" ID="DetailCompany" />
    </div>
 
    <!-- Provider -->
    <div class="providerarea">
        <uc3:DetailProvider runat="server" ID="DetailProvider" />
    </div>
 
    <!-- Location and Contact -->
    <div class="locationarea">
        <uc4:DetailLocationContact runat="server" ID="DetailLocationContact" />
    </div>
 
    <!-- Additional Info -->
    <div class="additionalarea">
        <uc5:DetailAdditionalInfo runat="server" ID="DetailAdditionalInfo" />
    </div>
</div>

Sorry for the long description and complex UI as it has so many layers.  Is it possible for the Ajax manager to accomplish what I need?
That is, to have Location user control to refresh only the Provider user control when a row has been clicked? 
I have attached a screen shot to help in visualizing the process.

Thank you,

Helen
















Maria Ilieva
Telerik team
 answered on 16 Jun 2014
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?