Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
135 views
Hi,

I have an issue for grid footers being out of alignment when displayed in IE7. This affects IE7 only and is fine in all other versions of IE and all other browsers. The calculated footer is shown on three lines and in IE7 does not start until beyond the last grid column.

You can see the behaviour by logging into http:\\www.professtm.co.uk?token=demo555 using DGP and the password of DGP

Thanks
Pavlina
Telerik team
 answered on 17 Jun 2014
4 answers
147 views
Hi,
Is there a way to populate with telerik:GridDropDownColumn with a DataSet?
thanks
virendra
Princy
Top achievements
Rank 2
 answered on 17 Jun 2014
4 answers
346 views
The RadComboBox control is posting back twice in the following scenario.

-2 combo boxes
-both configured in checkbox mode
-both of which are configured to post back automatically
-AJAXified using the RadAjaxManager control with the first combo box having the second as an updated control (changing the selection in combo box one updates the items in combo box 2)
-empty message is set, oddly enough the problem doesn't happen when the empty message is not set

I did some stepping through the Telerik client code and can see that a postback is done twice for the TextChanged event, once when the _selectItemOnBlur method is called (even though it is checkbox mode) and then again after that.  When the control is working normally it doesn't do the second postback.  The effect of the second postback causes a full postback while the first is a partial.  The problem doesn't start until after the second change to checked list.

To reproduce:
-check 1, 2, and 3 in the 2nd combo box and click off the combo box so that it posts back
-uncheck 3 in the 2nd combo box and click off the combo box so that it posts back
-at this point it should do 2 post backs as seen by putting a breakpoint in the ramAjaxManager_OnRequestStart event handler or in the code behind (one of which is actually not even detected as postback by ASP.NET)


Controls version: 2013.2.717.40
Browser tested: IE 11


<telerik:RadAjaxManager ID="ramAjaxManager" ClientEvents-OnRequestStart="ramAjaxManager_OnRequestStart" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ddlTestOne">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ddlTestTwo" />
                    <telerik:AjaxUpdatedControl ControlID="ltrTest" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlTestTwo">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ltrTest" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
    <telerik:RadComboBox ID="ddlTestOne" EmptyMessage="Test 1" CheckBoxes="True" OnSelectedIndexChanged="lstTestOne_OnSelectedIndexChanged" AutoPostBack="True" runat="server" />                        
    <telerik:RadComboBox ID="ddlTestTwo" EmptyMessage="Test 2" CheckBoxes="True" OnSelectedIndexChanged="lstTestTwo_OnSelectedIndexChanged" AutoPostBack="True" runat="server" />                        

    <asp:Literal ID="ltrTest" runat="server" />  


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindTestOneData();
                BindTestTwoData();
            }
        }

        protected void lstTestOne_OnSelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            ltrTest.Text = String.Format("lstTestOne_OnSelectedIndexChanged: Old text: {0}, New text: {1}", e.OldText, e.Text);
        }

        protected void lstTestTwo_OnSelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            ltrTest.Text = String.Format("lstTestTwo_OnSelectedIndexChanged: Old text: {0}, New text: {1}", e.OldText, e.Text);
        }

        public void BindTestOneData()
        {
            ddlTestOne.DataSource = Enumerable.Range(1, 8).Select(r => new { Value = r, Text = r });
            ddlTestOne.DataValueField = "Value";
            ddlTestOne.DataTextField = "Text";
            ddlTestOne.DataBind();            
        }

        public void BindTestTwoData()
        {
            ddlTestTwo.DataSource = Enumerable.Range(1, 8).Select(r => new { Value = r, Text = r });
            ddlTestTwo.DataValueField = "Value";
            ddlTestTwo.DataTextField = "Text";
            ddlTestTwo.DataBind();
        }
Princy
Top achievements
Rank 2
 answered on 17 Jun 2014
1 answer
65 views
For UX it is interesting flag the error with a visual signal, RadInputControl has .Invalid method that runs fine for this purpose.

I miss this functionality in other controls, I know than RadDatePicker has DateInput that implements .Invalid, but they are controls that don't has this possibility (as RadButton) 

Would be wonderful that all controls implement .Invalid, in this way when a validation error raises from, for example dbcontext, I can flag error in form.

Is there a workaround for other controls?
Konstantin Dikov
Telerik team
 answered on 17 Jun 2014
10 answers
660 views
I have a checkboxlist inside a div:

<div style="overflow:auto; height: 250px;"
                        <asp:CheckBoxList ID="cblStaff" runat="server" RepeatColumns="5" CellSpacing="25" DataTextField="FullName" DataValueField="Email" /> 
                        </div> 

this works fine.  When I add the formdecorator to the page I now get a lot of white space being added to the end of the page.  When you click on a checkbox that you had to scroll to inside the div, the page jumps down into the white space (I assume where the checkbox would have been rendered if the overflow:auto was not there).

Any ideas how to overcome this?  I am using 2008.2.723.35

Thanks

-Brent


ortal
Top achievements
Rank 1
 answered on 17 Jun 2014
10 answers
349 views
Hi

I am using VS 2008 SP1 with telerik 2008 Q2. I created a small project and published it. I copied all the files to production site, but i am getting error as "Sys is Undefined". I googled(telerik forums also) and binged it, but i didnt got any solution for this. After searching i did these things

1) Created a small project and published in Release mode with one label and RadscriptManager

My Web.config File is like this 

<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>
  <appSettings />
  <connectionStrings />
  <system.web>
    <!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
  
      </assemblies>
    </compilation>
    <!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
    <customErrors mode="Off"></customErrors>
    <!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.


        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <pages>
      <controls>
        <!--<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />-->
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <!--<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions,  Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />-->
      </controls>
    </pages>
    <httpHandlers>
      <remove verb="*" path="*.asmx" />
      
      <!--<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />-->
      
      
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,  Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />


    </httpHandlers>
    <httpModules>
      <!--<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />-->
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </httpModules>
  </system.web>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5" />
        <providerOption name="WarnAsError" value="false" />
      </compiler>
    </compilers>
  </system.codedom>
  <!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
 <location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
</configuration>

But nothing i got ..will anyone please help me ...this is really urgent

Regards
Bhuvan
Bozhidar
Telerik team
 answered on 17 Jun 2014
1 answer
98 views
Hi,

I have a grid like this ,


<GullsEye:GullsEyeGrid AllowPaging="true" AllowSorting="true"   PageSize="10" runat="server" ID="RadPortCheckInRequest" AutoGenerateColumns="false" <br>            AllowMultiRowSelection="false"  OnNeedDataSource="RadPortCheckInRequest_NeedDataSource"  OnItemCommand="RadPortCheckInRequest_ItemCommand" ><br><br>            <MasterTableView> <%--DataKeyNames="Id" AutoGenerateColumns="false">--%><br>                <Columns><br>                 <br>                    <telerik:GridBoundColumn DataField="RequestCode" HeaderText="<%$Resources:ContentResource, RequestCode%>" DataType="System.String"></telerik:GridBoundColumn><br>                    <telerik:GridDateTimeColumn DataField="RequestDate" HeaderText="<%$Resources:ContentResource, RequestDate%>" DataFormatString="{0:dd/MM/yyyy}"></telerik:GridDateTimeColumn><br>                    <telerik:GridBoundColumn DataField="AgentCode" HeaderText="<%$Resources:ContentResource, AgentCode%>" DataType="System.String"></telerik:GridBoundColumn><br>                    <telerik:GridBoundColumn DataField="LinerCode" HeaderText="<%$Resources:ContentResource, LinerCode%>" DataType="System.String"></telerik:GridBoundColumn><br>                    <telerik:GridBoundColumn DataField="VesselName" HeaderText="<%$Resources:ContentResource, VesselName%>" DataType="System.String"></telerik:GridBoundColumn><br>                    <telerik:GridBoundColumn DataField="BerthingRequestArrivalTrip" HeaderText="<%$Resources:ContentResource, ArrivalTrip%>" DataType="System.String"></telerik:GridBoundColumn><br>                    <telerik:GridBoundColumn DataField="BerthingRequestDepartureTrip" HeaderText="<%$Resources:ContentResource, DepartureTrip%>" DataType="System.String"></telerik:GridBoundColumn><br>                    <telerik:GridBoundColumn DataField="RequestAgentReferenceNumber" HeaderText="<%$Resources:ContentResource, RequestAgentReferenceNumber%>" DataType="System.String"></telerik:GridBoundColumn><br>                    <telerik:GridBoundColumn DataField="Status" HeaderText="<%$Resources:ContentResource, Status%>" DataType="System.String"></telerik:GridBoundColumn><br>                    <telerik:GridTemplateColumn UniqueName="Sennur" ShowFilterIcon="false" ShowSortIcon="false"  ><br>                                                    <ItemTemplate><br>                                                        <asp:LinkButton   ID="LinkButtonShow"  runat="server" Text="<%$Resources:ContentResource, Detail%>" CausesValidation="false"<br>                                                            CommandArgument='<%# DataBinder.Eval(Container.DataItem,"Id") %>'<br>                                                            CommandName="ShowDetailCommand"  /><br>                                                    </ItemTemplate><br>                                                </telerik:GridTemplateColumn>        <br>                </Columns><br>            </MasterTableView><br>        </GullsEye:GullsEyeGrid>


and code behind of this asp is ,

protected void RadPortCheckInRequest_ItemCommand(object sender, GridCommandEventArgs e)<br>        {<br>            if (e.Item != null)<br>            {<br>                if (e.Item is Telerik.Web.UI.GridDataItem && (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem))<br>                {<br>                    if (e.CommandName == "ShowDetailCommand")<br>                    {<br>                        Guid requestId = new Guid(e.CommandArgument.ToString());<br>                        if (Guid.Empty != requestId)<br>                        {<br><br>                            string url = ConfigurationManager.AppSettings["WebSiteUrl"] + "/View/Request/RequestDetail.aspx?RequestId=" + requestId.ToString();<br>                            RadWindow foundedWindow = (RadWindow)Master.FindControl("RadPopup");<br>                            INavigationService navigationService = ServiceFactory.GetInstance().GetService<INavigationService>();<br>                            navigationService.OpenPopup(url, foundedWindow, true);<br>                        }<br>                    }<br><br><br>                }<br> }

When i first sort a column it works fine and after that click Detail button in ItemTemplateColumn it shows Detail Popup.
But the problem is that after detail Popup shown, when i  try to sort a column it pops up Detail screen everytime.

Can you help me with this situation?

Regards..

<div class="reCodeBlock" style="border:solid 1px #7f9db9;width:1;height:1;overflow-y:auto;"><div style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;"><</code><code style="color: #069;font-weight: bold;">GullsEye:GullsEyeGrid</code> <code style="color: #808080;">AllowPaging</code><code style="color: #000;">=</code><code style="color: blue;">"true"</code> <codestyle="color: #808080;">AllowSorting</code><code style="color: #000;">=</code><code style="color: blue;">"true"</code>   <code style="color: #808080;">PageSize</code><code style="color: #000;">=</code><code style="color: blue;">"10"</code> <code style="color: #808080;">runat</code><code style="color: #000;">=</code><code style="color: blue;">"server"</code> <code style="color: #808080;">ID</code><code style="color: #000;">=</code><codestyle="color: blue;">"RadPortCheckInRequest"</code> <code style="color: #808080;">AutoGenerateColumns</code><codestyle="color: #000;">=</code><code style="color: blue;">"false"</code> <code style="color: #000;"><br>            AllowMultiRowSelection="false"  OnNeedDataSource="RadPortCheckInRequest_NeedDataSource"  OnItemCommand="RadPortCheckInRequest_ItemCommand" ><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>            <</code><code style="color: #069;font-weight: bold;">MasterTableView</code><code style="color: #000;">> <%--DataKeyNames="Id" AutoGenerateColumns="false">--%><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                <</code><code style="color: #069;font-weight: bold;">Columns</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                 <</code><code style="color: #069;font-weight: bold;">br</code><codestyle="color: #000;">>                    <</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code> <code style="color: #808080;">DataField</code><code style="color: #000;">=</code><code style="color: blue;">"RequestCode"</code> <code style="color: #000;">HeaderText="<%$Resources:ContentResource, RequestCode%>" DataType="System.String"></</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                    <</code><code style="color: #069;font-weight: bold;">telerik:GridDateTimeColumn</code> <code style="color: #808080;">DataField</code><code style="color: #000;">=</code><code style="color: blue;">"RequestDate"</code> <code style="color: #000;">HeaderText="<%$Resources:ContentResource, RequestDate%>" DataFormatString="{0:dd/MM/yyyy}"></</code><code style="color: #069;font-weight: bold;">telerik:GridDateTimeColumn</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                    <</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code> <code style="color: #808080;">DataField</code><codestyle="color: #000;">=</code><code style="color: blue;">"AgentCode"</code> <code style="color: #000;">HeaderText="<%$Resources:ContentResource, AgentCode%>" DataType="System.String"></</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                    <</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code> <code style="color: #808080;">DataField</code><code style="color: #000;">=</code><code style="color: blue;">"LinerCode"</code> <code style="color: #000;">HeaderText="<%$Resources:ContentResource, LinerCode%>" DataType="System.String"></</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                    <</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code> <code style="color: #808080;">DataField</code><code style="color: #000;">=</code><code style="color: blue;">"VesselName"</code> <code style="color: #000;">HeaderText="<%$Resources:ContentResource, VesselName%>" DataType="System.String"></</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                    <</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code> <code style="color: #808080;">DataField</code><code style="color: #000;">=</code><code style="color: blue;">"BerthingRequestArrivalTrip"</code> <code style="color: #000;">HeaderText="<%$Resources:ContentResource, ArrivalTrip%>" DataType="System.String"></</code><codestyle="color: #069;font-weight: bold;">telerik:GridBoundColumn</code><code style="color: #000;">><</code><codestyle="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                    <</code><codestyle="color: #069;font-weight: bold;">telerik:GridBoundColumn</code> <code style="color: #808080;">DataField</code><code style="color: #000;">=</code><code style="color: blue;">"BerthingRequestDepartureTrip"</code> <code style="color: #000;">HeaderText="<%$Resources:ContentResource, DepartureTrip%>" DataType="System.String"></</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                    <</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code> <code style="color: #808080;">DataField</code><code style="color: #000;">=</code><code style="color: blue;">"RequestAgentReferenceNumber"</code> <code style="color: #000;">HeaderText="<%$Resources:ContentResource, RequestAgentReferenceNumber%>" DataType="System.String"></</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                    <</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code> <code style="color: #808080;">DataField</code><codestyle="color: #000;">=</code><code style="color: blue;">"Status"</code> <code style="color: #000;">HeaderText="<%$Resources:ContentResource, Status%>" DataType="System.String"></</code><code style="color: #069;font-weight: bold;">telerik:GridBoundColumn</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                    <</code><code style="color: #069;font-weight: bold;">telerik:GridTemplateColumn</code> <code style="color: #808080;">UniqueName</code><code style="color: #000;">=</code><code style="color: blue;">"Sennur"</code> <code style="color: #808080;">ShowFilterIcon</code><codestyle="color: #000;">=</code><code style="color: blue;">"false"</code> <code style="color: #808080;">ShowSortIcon</code><code style="color: #000;">=</code><code style="color: blue;">"false"</code>  <codestyle="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                                                    <</code><code style="color: #069;font-weight: bold;">ItemTemplate</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                                                        <</code><codestyle="color: #069;font-weight: bold;">asp:LinkButton</code>   <code style="color: #808080;">ID</code><codestyle="color: #000;">=</code><code style="color: blue;">"LinkButtonShow"</code>  <code style="color: #808080;">runat</code><code style="color: #000;">=</code><code style="color: blue;">"server"</code> <codestyle="color: #000;">Text="<%$Resources:ContentResource, Detail%>" CausesValidation="false"<</code><codestyle="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                                                            CommandArgument='<%# DataBinder.Eval(Container.DataItem,"Id") %>'<</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                                                            CommandName="ShowDetailCommand"  /><</code><code style="color: #069;font-weight: bold;">br</code><codestyle="color: #000;">>                                                    </</code><code style="color: #069;font-weight: bold;">ItemTemplate</code><code style="color: #000;">><</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                                                </</code><codestyle="color: #069;font-weight: bold;">telerik:GridTemplateColumn</code><code style="color: #000;">>        <</code><code style="color: #069;font-weight: bold;">br</code><code style="color: #000;">>                </</code><code style="color: #069;font-weight: bold;">Columns</code><code style="color: #000;">><</code><codestyle="color: #069;font-weight: bold;">br</code><code style="color: #000;">>            </</code><codestyle="color: #069;font-weight: bold;">MasterTableView</code><code style="color: #000;">><</code><codestyle="color: #069;font-weight: bold;">br</code><code style="color: #000;">>        </</code><code style="color: #069;font-weight: bold;">GullsEye:GullsEyeGrid</code><code style="color: #000;">></code></span></span></div></div>

Viktor Tachev
Telerik team
 answered on 17 Jun 2014
3 answers
352 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
107 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
124 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
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?