Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
820 views
I wonder how easy to apply Bootstrap 3 styling with glyphicons or fontawesome icons in radButton?
The straightforward approach does not work

<telerik:RadButton ID="RadButton2" runat="server" CssClass="btn btn-primary" Text="BS button" ></telerik:RadButton>
Vasssek
Top achievements
Rank 1
 answered on 23 Aug 2018
1 answer
284 views

I have a grid with filter templates looking like this:

 <FilterTemplate>
                        <telerik:RadComboBox ID="ddCategory3" runat="server" DropDownAutoWidth="Enabled"
                            AppendDataBoundItems="true" CausesValidation="false"
                            DataTextField="Category" DataValueField="Category"
                           DataSourceID="dsCategory" SelectedValue='<%#  TryCast(Container, GridItem).OwnerTableView.GetColumn("Category").CurrentFilterValue %>' OnClientSelectedIndexChanged="Category">
                            <Items>
                                <telerik:RadComboBoxItem Text="All" />
                            </Items>
                        </telerik:RadComboBox>
                        <telerik:RadScriptBlock ID="RadScriptBlockCategory" runat="server">
                            <script type="text/javascript">
                                function Category(sender, args) {
                                    var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
                                    tableView.filter("Category", args.get_item().get_value(), "EqualTo");
                                }
                            </script>
                        </telerik:RadScriptBlock>
                    </FilterTemplate>

If I have just one item with value "ABC" in column "Category"  and I filter my grid by that column and value, I will receive just one item. My grid has delete functionality. If I try to delete this item, I am getting error "Selection is out of range." after the item is deleted. I figured out, that it is because my combobox data source contains distinct values for this column. When I delete last Item with value "ABC" combobox rebinds and doesn't have item ABC anymore, but current filter value is still ABC, so it fails.

I try to solve it by removing  SelectedValue='<%#  TryCast(Container, GridItem).OwnerTableView.GetColumn("Category").CurrentFilterValue %>'  and adding ondatabound function, where I check if current value exists  in item collection. I exists, I  set set selected value as current filter value.  Otherwise I set selection to ALL  and clear the filter . It is all works fine if I only  have filter for that one column. But I have multiple columns and ideally I would prefer not to clear  FilterExpression completely, but just remove a portion that represents this column  filter. It there any easy solution for that other then parsing the Filter expression manually?  Or may be my approach to solving the issue is not the best one? I am open to suggestions.

Attila Antal
Telerik team
 answered on 23 Aug 2018
2 answers
456 views

Hi

I have a pre-built restful webapi service that has the following method

[Route("list/openquotes"), HttpGet]
public HttpResponseMessage ListOpenQuotes()

 

when i try use it in a RadGrid, the default behaviour seems to be using the POST request method.

Is there a way to force the gird use use a HTTP GET instead?

This is the setup for the Grid

<ClientSettings >
    <DataBinding Location="SetByCode" SelectMethod="ui/list/openquotes" EnableCaching="false" ResponseType="JSON" CountPropertyName="Count" DataPropertyName="Data" />
</ClientSettings>

 

I have a RadListVIew that is using HTTP GET as follows:

<DataService Location="SetByCode" DataPath="/ui/list/notifications" EnableCaching="false" ResponseType="JSON" HttpMethod="Get" CountPropertyName="Count" DataPropertyName="Data" SortParameterType="List" />
Jason
Top achievements
Rank 1
 answered on 23 Aug 2018
1 answer
526 views

Hello Team,

is there any property to which could help me set the hide the expand/collapse icon of my rad pivot grid. 

Note: am setting my rows and column field using server side code. ex:

 PivotGridColumnField columnField = new PivotGridColumnField();
                columnField.DataField = name;
                columnField.UniqueName = name;
                RadPivotGrid1.Fields.Add(columnField);

 

refer attachment for pivot grid.

Thanks,

Mohan Pal.

Attila Antal
Telerik team
 answered on 23 Aug 2018
0 answers
90 views

I have a RadDropDownList in my RadGrid ,which editmode is FormTemplate. When I change RadDropDownList it work good in insert mode but in edit mode it got InvalidCastException = "Unable to cast object of type 'Telerik.Web.UI.GridEditFormItem' to type 'Telerik.Web.UI.GridEditFormInsertItem'."

 

protected void TransactionTypeTextBox_SelectedIndexChanged(object sender, DropDownListEventArgs e)
      {
 
          RadDropDownList dropdownlist1 = (RadDropDownList)sender;
          GridEditFormInsertItem item = (GridEditFormInsertItem)dropdownlist1.NamingContainer;
          Panel Panel1 = (Panel)item.FindControl("Panel1");
          if (dropdownlist1.SelectedItem.Text == "Cheque")
          {
              Panel1.Visible = true;
          }
          else if (dropdownlist1.SelectedItem.Text == "Cash")
          {
              Panel1.Visible = false;
          }
      }
SURYA
Top achievements
Rank 2
 asked on 22 Aug 2018
2 answers
1.0K+ views

Hi, I'm trying to check all the checkboxes of a GridCheckboxColumn of a Radgrid that is using BatchEdit mode when a button is pressed.

This is my Radgrid:

<telerik:RadGrid ID="rgFTADatos" runat="server" AllowFilteringByColumn="True" AllowMultiRowEdit="True" AllowPaging="True" AutoGenerateColumns="False"
    CssClass="RadGrid_ModernBrowsers" OnNeedDataSource="rgDTOpciones_NeedDataSource" RenderMode="Lightweight" Skin="Simple" Height="100%"
    AllowSorting="True" OnBatchEditCommand="rgDTOpciones_BatchEditCommand" Width="100%">
    <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
    <ExportSettings>
        <Pdf PageWidth="">
        </Pdf>
    </ExportSettings>
    <ClientSettings>
        <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" FrozenColumnsCount="1" />
        <Resizing AllowColumnResize="false" ResizeGridOnColumnResize="false" AllowResizeToFit="false" />
        <ClientEvents OnGridCreated="" OnBatchEditOpened="OnBatchEditOpened" />
    </ClientSettings>
    <MasterTableView CommandItemDisplay="Bottom" CommandItemStyle-Font-Size="10" DataKeyNames="ID" EditMode="Batch" BatchEditingSettings-EditType="Row" Font-Names="Calibri" Font-Size="8" TableLayout="Fixed" PageSize="500">
        <NoRecordsTemplate>
            No se encontrarón registros para el criterio seleccionado.
        </NoRecordsTemplate>
        <CommandItemSettings
            CancelChangesText="Cancelar Operación"
            RefreshText="Refrescar"
            SaveChangesText="Guardar Cambios" />
        <Columns>
            <telerik:GridBoundColumn DataField="ID" FilterControlAltText="Filter column3 column" ForceExtractValue="Always" HeaderText="ID" UniqueName="column3" ReadOnly="True" FilterControlWidth="70%">
                <HeaderStyle Width="80px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DatoTecnicoGlosa" FilterControlAltText="Filter column2 column" HeaderText="Dato Técnico" UniqueName="OpcionGlosa" FilterControlWidth="70%" ReadOnly="True">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="EsTextoOpciones" FilterControlAltText="Filter column4 column" HeaderText="EsTextoOpciones" UniqueName="column4" AllowFiltering="False" Display="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ID_FTE_Dato" Display="False" FilterControlAltText="Filter ID_FTE_Dato column" HeaderText="ID_FTE_Dato" UniqueName="ID_FTE_Dato" ForceExtractValue="Always" ReadOnly="True">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ID_Opcion" Display="False" FilterControlAltText="Filter column5 column" ForceExtractValue="Always" HeaderText="ID_Opcion" UniqueName="column5">
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="FTA_CDECCertificado" DataType="System.Boolean" FilterControlAltText="Filter column6 column" HeaderText="Certificado" UniqueName="column6">
                <HeaderStyle Width="80px" BackColor="#E8FFEA" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridBoundColumn DataField="ID_DatoTecnico" Display="False" FilterControlAltText="Filter column7 column" ForceExtractValue="Always" HeaderText="ID_DatoTecnico" UniqueName="column7">
            </telerik:GridBoundColumn>
        </Columns>
        <BatchEditingSettings EditType="Row"></BatchEditingSettings>
 
        <PagerStyle PageSizes="500;1000;1500" />
 
        <CommandItemStyle Font-Size="10pt"></CommandItemStyle>
    </MasterTableView>
    <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    </ClientSettings>
 
    <FilterMenu RenderMode="Lightweight"></FilterMenu>
 
    <HeaderContextMenu RenderMode="Lightweight"></HeaderContextMenu>
</telerik:RadGrid>

 

And this is the JavaScript that my button is using:

function CertificarRows()
{
    var grid = $find("<%=rgFTADatos.ClientID %>");
    var masterTable = grid.get_masterTableView();
 
    for(var row = 0; row < masterTable.get_dataItems().length; row++)
    {
 
        var currentRow = masterTable.get_dataItems()[0];
        var cell = masterTable.getCellByColumnUniqueName(currentRow, "column6");
 
        batchEditingManager.changeCellValue(cell, "true");
    }
         
}

 

I even tried altering the checkbox control itself but I couldn't get it to work, is there any way I can do this? Thank you for your help!

Diego
Top achievements
Rank 1
 answered on 22 Aug 2018
1 answer
877 views

I deployed my web app to Azure fine, then I attempted to deploy to GoDaddy and I got this compile error out of the blue. No new tools or GITs at all.

Error: Could not load file or assembly 'Telerik.Web.UI, Version=2017.2.711.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'SignupListC:\Users\George\OneDrive\SignupList\SignupList\LC

I run an up to date version Windows 10 64, Visual Studio Community 2017 Version 15.4.1, .Net Framework Version4.7.03056 using Telerik ASP.Net AJAX tools.

The Telerik.Web.UI.dll in bin and the reference are Version 2017.2.711.45.

I looked at lots of the solutions in the forum to 0x80131515 problems with Telerik DLLs.

My file properties do not have an Unblock button for Telerik.Web.UI.dll. (I do not run as with administrator abilities for security reasons).  I have a feeling this is the solution I need.

Removing the Properties/licenses.licx results in a compile error that the licenses.licx does not exist. Should be regenerated somehow?

Removing the reference to Telerik.Web.UI and re-adding it did not work.
My Web.config already had - <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />

 

Update while writing this.  I managed after several tries to upgrade to ASP.Net Ajax version  4 so my Telerik.Web.UI.dll is now version v4.0.30319. The error message has stayed the same though, saying it cannot find 2017.2.711.45 which now does not exist. An extra problem,  how do I get my project to look for the right version.  There is no 2017.anything in my Web.config

Nothing works, I am dead in the water for development not being able to compile and deploy.

George
Top achievements
Rank 2
 answered on 22 Aug 2018
5 answers
172 views
When I used a RadScheduler, Internet Explorer has issues displaying the DatePicker control.  It appears, but under the schedule itself, mostly hidden.

I've done some research on some of the CSS bugs in IE, but everything says IE 8 fixed the bugs.  I am using IE8.

Has anyone see this and have a solution?
Guillermo
Top achievements
Rank 1
 answered on 21 Aug 2018
4 answers
108 views

I'm using Telerik controls in a legacy application that is forced to run in IE Compatibility Mode.  I'm using version 2015.2.826.40, as my understanding is that later versions don't support Compatibility Mode.

What I've noticed is that with this version, the root nodes on a radMenu are shifting slightly during animation.

I have a small video of the process:

https://youtu.be/lHO2EJO5HqQ

Any ideas on where I should start looking to try to debug or solve this issue?  By the way, changing the browser out of Compatility Mode solves the issue completely... the menu looks great.  But unfortunately that's not an option at this point.

Adam
Top achievements
Rank 1
 answered on 21 Aug 2018
2 answers
116 views

Can PersistenceManager store radCheckbox Checked property?
This control doesn't appears in supported controls list.

Thanks

Andres
Top achievements
Rank 1
Iron
 answered on 21 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?