Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
248 views

Everytime i use, i give it a zip file, fill, select the newer Telerik.Web.UI.dll, and click "Get Assembly" and i get a server error.

 

 

Albert
Top achievements
Rank 1
 answered on 22 Jun 2017
2 answers
605 views
Hi I am running into an issue i have to change RadComboxBox style which used as a filtering control

I could use the below codes and inbuilt style properties but it doesnt work on its items, the items style still remain unchanged. So plz help to find in out

<FilterTemplate>
                                <telerik:RadComboBox NoWrap="true" Font-Names="Arial" Font-Size="9px" ID="NameComboBox" AutoPostBack="true"
                                    Height="100px" Width="100%" runat="server">
                                </telerik:RadComboBox>

regards,
Appu
Allan Shenoy
Top achievements
Rank 1
 answered on 21 Jun 2017
1 answer
388 views

I'm trying to remove a child node. This is working fine as long as it is not the top child node under the Parent

Parent

     child1

     child2

     child3

     child4

If I remove child2, 3 or 4; it works. But if I remove child1, the Parent is removed along with any remaining child nodes.

The behavior I expected is that I should be able to remove any of the child nodes in any order and the Parent node should be removed only when the last remaining child node is removed - but even that is debatable since what if I wanted to add more child nodes to the Parent node after removing everything?

 

Here is my code:

Dim remove_node As RadTreeNode = rtvClientSpecs.FindNode(Function(x) x.Value = e.CommandArgument.ToString())           remove_node.ParentNode.Nodes.Remove(remove_node)

 

Richard
Top achievements
Rank 1
 answered on 21 Jun 2017
0 answers
183 views

Hi!

On Razor View i`m trying to bind Grid to ExcludedAffiliations property of EntertainerModel:

public class EntertainerModel : BaseNopEntityModel

{

    public int Id { get; set; }
    public string Description { get; set; }

...
   public GridModel<ExcludedAffiliationModel> ExcludedAffiliations { get; set; }
}

public class ExcludedAffiliationModel : BaseNopEntityModel
{
        public int Id { get; set; }
        public string Name { get; set; }
        public bool Excluded { get; set; }
}

View definition:

    @(Html.Telerik().Grid<ExcludedAffiliationModel>(Model.ExcludedAffiliations.Data)
                    .Name("entertainer-excluded-affiliation-grid")
                    .Columns(columns =>
                    {
                        columns.Bound(x => x.Excluded)
                        .Width(15)
                        .Centered()
                        .Template(x => Html.CheckBox("chbxAffiliationExcluded" + x.Id, x.Excluded, new { @class = "apply-affiliation-excluded", affiliationId = x.Id, entertainerId = Model.Id }))
                        .ClientTemplate("<# if (Excluded == true)  { #> <input value='true' type='checkbox' checked='checked' id='chbxAffiliationExcluded<#= Id #>' affiliationId='<#= Id #>'  entertainerId = '<#= Model.Id #>' class='apply-affiliation-excluded' /> <# } else { #> <input type='checkbox' id='chbxAffiliationExcluded<#= Id #>' affiliationId ='<#= Id #>' entertainerId = '<#= Model.Id #>' class='apply-affiliation-excluded' /> <# } #>");

                        columns.Bound(x => x.Id)
                        .Width(100)
                        .Centered()
                        .ReadOnly();

                        columns.Bound(x => x.Name)
                        .Width(250)
                        .ReadOnly();
                    }))

Controller action method:

public ActionResult Edit(EntertainerModel model, bool continueEditing)
{

...

}

As a result i see the grid with three columns and can click checkbox in the column "Excluded".

But when i click standard submit button on the page, action method of controller called but the property ExcludedAffiliations of the model is null.

My question is: is it exists a way for binding grid data back to model property ?

Thanks a lot.

 

Vladimir
Top achievements
Rank 1
 asked on 21 Jun 2017
2 answers
123 views

Hi there,

I'm trying to add nodes to a specific node in a previously databound radtreeview.  

When the page updates, the correct number of nodes are visible in the correct parent node, but they have no text.

 

                Dim current_version_node As RadTreeNode = rtvClientSpecs.FindNode(Function(x) x.FullPath = e.CommandArgument.ToString())
                If current_version_node.Nodes.Count = 0 Then

                    f = oclientContext.Web.GetFileByServerRelativeUrl("/" + e.CommandArgument.ToString())
                    oclientContext.Load(f.Versions)
                    oclientContext.ExecuteQuery()

                    For Each _version As FileVersion In f.Versions
                        If Not _version.IsCurrentVersion Then
                            Dim old_version_node As New RadTreeNode(e.CommandArgument.ToString() + "/" + String.Format("Version {0}", _version.VersionLabel))
                            old_version_node.Value = _version.VersionLabel
                            current_version_node.Nodes.Add(old_version_node)
                        End If
                    Next
                Else
                    current_version_node.Expanded = Not current_version_node.Expanded
                End If
Richard
Top achievements
Rank 1
 answered on 21 Jun 2017
1 answer
111 views

After last weeks windows updates,  printing the contents of a radwindow causes a 404 error.  Our users little to my knowledge print out the window contents for various reasons.  This behavior is also true from your demo @ http://demos.telerik.com/aspnet-ajax/window/examples/overview/defaultcs.aspx right click the window and select print, 404 is what get's printed.

 

Please advise as we are in a critical state with some of our operations because of this.  It does not seem to be an issue with IE10.

Vessy
Telerik team
 answered on 21 Jun 2017
1 answer
118 views

Hi

Our website is using Telerik RadDatePicker control. As I am waving the page using chrome wave, it appears that telerik generates a table tag along with the thead tag, but with empty th.

Refer to the example below:

<table id="">

 <caption style="display:none"> RadDatePiker</caption>

<thead><tr><th scope="col"></th></tr></thead>

<tbody>.....</tbody>

</table>

Issue:

<th scope="col"></th>  is empty. It should be <th scope="col">TEST INSIDE</th>

Question:

I tried using jquery to access the th tag and insert the test inside the th tag, but jquery does not seem to access the element.

I would like to either

1- have telerik not generate the thead tag

2- or use jquery

3- javascript to access the th tag in order to insert a text

 

Kindly advise

 

 

Eyup
Telerik team
 answered on 21 Jun 2017
4 answers
139 views

I am getting the following error on Internet Explorer. When I hover over the scheduler calendar appointment. We just recently purchased telerik and wanted to see if other people have had the same issue.

0x800a138f - JavaScript runtime error: Unable to get property '_allowDelete' of undefined or null reference

Henry
Top achievements
Rank 1
 answered on 20 Jun 2017
10 answers
1.7K+ views

I would like to be able to hide/disable or show/enable a step from the client side based on user response.

Hiding would mean i want to hide the step, have it skip that step in the navigation, and disable validation for that page..

Showing it would unhide it, add it back the step navigation, and re-enable validation.

I have been able to remove the step and hide it, but I can't insert it back if needed.

I could possibly hide the step, disable validation, and then override the next button so that it skips that step. But it would still affect that percentage complete, etc.

Also, I am not doing a asp postback as I am saving the data via an ajax post. So corrupting the viewstate is not an issue.

Dayre-Musetti
Top achievements
Rank 1
 answered on 20 Jun 2017
1 answer
246 views

Hello,
I'm spending a lot of time trying to show the vertical scrollbar in a RadPane and reading older posts.

Summarizing, I've site with a MasterPage and pages with an "asp:content" containing a RadSplitter, separing a "filtering" RadPane on the left and a RadPane containing a  grid on the right.

I've a problem due to resizing page (or lower resolution monitors), because my RadPane containing filters doesn't resize and them has cut off.

I try to attach a "simplify" code snipping, I've a bit of css and stuffs..

<asp:Content ID="Content2" ContentPlaceHolderID="corpo" runat="server">
  <telerik:RadSplitter ID="RadSplitter1" Runat="server" Skin="Office2010Blue" Orientation="Vertical" ResizeWithBrowserWindow="true" Width="100%" Height="100%" EnableViewState="false">
    <telerik:RadPane ID="navigationPane" runat="server" Width="300" PersistScrollPosition="true" Scrolling="Y">
      <div id="CorpoLeft">

        <%--<div id="CorpoLeftTop">
          <table style="width:100%;height:100%;margin-top:4px">
            <tr>
              <td style="text-align:center;vertical-align:middle">
                <asp:Label ID="lblFiltri" runat="server" Text="Filtri"></asp:Label>
              </td>
            </tr>
          </table>
        </div>--%>

        <%--<div id="CorpoLeftCenter" >
          <table style="width:100%;height:100%;margin-left:4px">
            <tr>
              <td style="text-align:left">--%>
                <Uc:myUcDataCal runat="server" ID="tboxDataInizio" WidthLabel="115" WidthCampo="110" Caption="Data inizio"/>
                <Uc:myUcDataCal runat="server" ID="tboxDataFine"   WidthLabel="115" WidthCampo="110" Caption="Data fine"/>
                <div style="height:6px"></div>

                <Uc:myUcTboxRicerca runat="server" ID="tboxMittente"     WidthLabel="115" WidthCampo="150" Caption="Mittente"     TipoRicerca="I"/>
                <Uc:myUcTboxRicerca runat="server" ID="tboxDestinatario" WidthLabel="115" WidthCampo="150" Caption="Destinatario" TipoRicerca="I"/>
                <Uc:myUcTboxRicerca runat="server" ID="tboxProvenienza"  WidthLabel="115" WidthCampo="150" Caption="Provenienza"  TipoRicerca="I"/>
                <Uc:myUcTboxRicerca runat="server" ID="tboxDestinazione" WidthLabel="115" WidthCampo="150" Caption="Destinazione" TipoRicerca="I"/>

                <div style="height:6px"></div>
                <Uc:myUcTboxRicerca runat="server" ID="tboxRiferimento"      WidthLabel="115" WidthCampo="150" Caption="Riferimento" TipoRicerca="I"/>
                <Uc:myUcTbox runat="server"        ID="tboxContainer"        WidthLabel="115" WidthCampo="114"  Caption="Container"/>
                <Uc:myUcTbox runat="server"        ID="tboxNumeroSpedizione" WidthLabel="115" WidthCampo="114"  Caption="Numero sped."/>

                <div style="height:6px"></div>
                <Uc:myUcTboxRicerca runat="server" ID="tboxDdtNumero" WidthLabel="115" WidthCampo="150" Caption="Ddt: numero" TipoRicerca="I"/>
                <Uc:myUcDataCal runat="server"     ID="tboxDdtData"   WidthLabel="115" WidthCampo="140" Caption="Ddt: data"/>

                <div style="height:6px"></div>
                <Uc:myUcTbox runat="server" ID="tboxAwbCompagnia" WidthLabel="115" WidthCampo="114" Caption="Awb: compagnia"/>
                <Uc:myUcTbox runat="server" ID="tboxAwbNumero"    WidthLabel="115" WidthCampo="114" Caption="Awb: numero"/>

                <div style="height:6px"></div>
                <Uc:myUcCombo runat="server" ID="cboFiliale"  WidthLabel="115" WidthCampo="150" Caption=""/>
                <Uc:myUcCombo runat="server" ID="cboDeposito" WidthLabel="115" WidthCampo="150" Caption=""/>

                <div style="height:6px"></div>
                <Uc:myUcCombo runat="server" ID="cboTerraMareAereo"   WidthLabel="115" WidthCampo="150" Caption="Attivita"   CheckBoxes="true" EnableCheckAllItemsCheckBox="true" MostraVociSelezionate="true"></Uc:myUcCombo>

                <div style="height:6px"></div>
                <Uc:myUcCombo runat="server" ID="cboImportExport" WidthLabel="115" WidthCampo="150" Caption="Import/Export" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" MostraVociSelezionate="true"></Uc:myUcCombo>

                <div style="height:6px"></div>
                <table>
                    <tr><td><Uc:myUcCheck runat="server" ID="ck1" WidthLabel="113" WidthCampo="25" Caption="ck1"/></td><td><img src="../../../Immagini/DIA.png" alt="Acquisita"/>         </td></tr>
                    <tr><td><Uc:myUcCheck runat="server" ID="ck2" WidthLabel="113" WidthCampo="25" Caption="ck1"/></td><td><img src="../../../Immagini/DIInR.png" alt="In ritiro"/>         </td></tr>

                </table>
             <%-- </td>
            </tr>
          </table>
        </div>

        <div id="CorpoLeftBottom">--%>
          <asp:Button ID="btnRicerca" runat="server" CssClass="Bottone" Text="Ricerca" Width="80px" Height="28px" Font-Names="Verdana" Font-Size="8pt" Font-Bold="true" OnClick="btnRicerca_Click"/>
          <asp:Button ID="btnExcel" runat="server" CssClass="Bottone" Text="Xls" Width="50px" Height="28px" Font-Names="Verdana" Font-Size="8pt" OnClick="btnExcel_Click"/>
        <%--</div>--%>
      </div>
    </telerik:RadPane>

    <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward">
    </telerik:RadSplitBar>

    <telerik:RadPane ID="contentPane" runat="server" Scrolling="None">
      <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2010Blue">
      </telerik:RadAjaxLoadingPanel>
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
      
          <telerik:AjaxSetting AjaxControlID="grd">
            <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="grd" LoadingPanelID="RadAjaxLoadingPanel1">
              </telerik:AjaxUpdatedControl>
            </UpdatedControls>
          </telerik:AjaxSetting>

          <telerik:AjaxSetting AjaxControlID="btnRicerca">
            <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="grd" LoadingPanelID="RadAjaxLoadingPanel1">
              </telerik:AjaxUpdatedControl>                  
            </UpdatedControls>
          </telerik:AjaxSetting>       
        </AjaxSettings>
      </telerik:RadAjaxManager>

      <telerik:RadGrid ID="grd" runat="server" AllowPaging="True" PageSize="20" PagerStyle-AlwaysVisible="true" OnNeedDataSource="grd_NeedDataSource" Skin="Windows7" Width="100%" Height="450px" Style="border: 0;outline: none" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" OnItemDataBound="grd_ItemDataBound" OnItemCommand="grd_ItemCommand">
        <ClientSettings AllowColumnsReorder="True">
          <Selecting AllowRowSelect="false" UseClientSelectColumnOnly="True" />
          <Scrolling AllowScroll="true" UseStaticHeaders="true" />
          <Resizing AllowColumnResize="false" /> 
          <ClientEvents OnGridCreated="ResizeGrid" />
        </ClientSettings>
        <MasterTableView DataKeyNames="Key" NoDetailRecordsText="" NoMasterRecordsText="" ShowHeadersWhenNoRecords="true">
        <CommandItemSettings ExportToPdfText="Export to PDF" />
        <RowIndicatorColumn FilterControlAltText="" Visible="True">
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="" Visible="True">
        </ExpandCollapseColumn>
        <Columns>        
          ...... (omissis)
        </Columns>
        <EditFormSettings>
          <EditColumn FilterControlAltText="">
          </EditColumn>
        </EditFormSettings>
        <PagerStyle AlwaysVisible="True" PageSizeControlType="RadComboBox" Position="Bottom"/>
        </MasterTableView>
        <PagerStyle AlwaysVisible="True" PageSizeControlType="RadComboBox"/>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
      </telerik:RadGrid>

    </telerik:RadPane>      
  </telerik:RadSplitter>

</asp:Content>

I tried to remove tables and div as read in an older post, but it doesn't work.

I used some custom UserControls, based of the Telerik controls, but it doesn't matter.

I hope to have some hints from you.

Thank you, kind regards

Max

Vessy
Telerik team
 answered on 20 Jun 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?