Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
341 views
How to change the background color to blue for Material skin
Marin Bratanov
Telerik team
 answered on 12 Jul 2018
5 answers
374 views

I would like to show null values in a pivotgrid to indicate that a sample is misssing. It only shows zero's regardless the setting of IgnoreNullValues. I would expect null, empty or whatever the setting of EmptyValue. What am I missing here? Using UI for ASP.NET AJAX R2 2018 (version 2018.2.516)

<telerik:RadPivotGrid ID="mainpgrid" runat="server"  
            AllowFiltering ="false" 
            AllowNaturalSort="false"  
            AllowPaging ="false" 
            ShowFilterHeaderZone ="false" 
            EmptyValue ="(missing sample)"  >
        <TotalsSettings GrandTotalsVisibility ="None"  ColumnsSubTotalsPosition ="None" RowGrandTotalsPosition ="None" />
            <Fields >
                <telerik:PivotGridColumnField DataField ="SeriesLabel" Caption ="Label" ></telerik:PivotGridColumnField>
                <telerik:PivotGridAggregateField DataField ="Value"   IgnoreNullValues ="True"   Caption ="IgnoreNull" ></telerik:PivotGridAggregateField>
                <telerik:PivotGridAggregateField DataField ="Value"   IgnoreNullValues ="False"  Caption ="DoNotIgnoreNull" ></telerik:PivotGridAggregateField>
                <telerik:PivotGridRowField DataField ="UTZDate" Caption ="Date"></telerik:PivotGridRowField>
            </Fields>
        </telerik:RadPivotGrid>

 

Code:

Private Sub testpage_Load(sender As Object, e As EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Dim t As New DataTable
            t.Columns.Add("UTZDate")
            t.Columns.Add("SeriesLabel")
            t.Columns.Add("Value", System.Type.GetType("System.Int32"))

            Dim r As DataRow = t.NewRow
            r("UTZDate") = Now
            r("SeriesLabel") = "Series 0"
            r("Value") = DBNull.Value
            t.Rows.Add(r)

            r = t.NewRow
            r("UTZDate") = Now.AddMinutes(5)
            r("SeriesLabel") = "Series 0"
            r("Value") = 100
            t.Rows.Add(r)

            Me.mainpgrid.DataSource = t
            Me.mainpgrid.DataBind()
        End If
    End Sub

 


Eyup
Telerik team
 answered on 12 Jul 2018
7 answers
3.1K+ views
I am tring to save information based on if they pick a date back inot the Db.  So I am checking on the selectedvalue of the raddatepicker but it gives me this error when I do not have a date in there.

Bassically what I want to do is rotate through my radgrid and if they have picked a date then save information to the DB otherwise just go to the next row.  But this error pops if no date is picked.

Nullable object must have a value.

Line 238:            If TempDt.SelectedDate.Value > Nothing Then


Protected Sub lnkSaveTemp_Click(sender As Object, e As System.EventArgs) Handles lnkSaveTemp.Click 
      For Each row As GridDataItem In myRadGrid.Items 
          Dim Id As Integer = row.GetDataKeyValue("intIssuedId") 
          Dim TempDt As RadDatePicker = DirectCast(row.FindControl("DatePicker"), RadDatePicker) 
          Dim TNote As TextBox = DirectCast(row.FindControl("txtNotes"), TextBox) 
          If TempDt.SelectedDate.Value > Nothing Then 
              sql = "Update Drat_Issued set dtRecoverTemp = '" & sanitizeString(TempDt.SelectedDate.Value) & "', strNotes = '" & sanitizeString(TNote.Text) & "' where intIssuedId = " & Id 
              Response.Write(sql) 
              insertUpdateDelete(sql) 
          End If 
      Next 
  End Sub
Marin Bratanov
Telerik team
 answered on 11 Jul 2018
4 answers
55 views

ItemsPerRequest is ignored for the RadComboBox.

How do I get this fixed?

Marin Bratanov
Telerik team
 answered on 11 Jul 2018
5 answers
252 views

I have a RadComboBox control inside RadGrid in which Items are loaded using LoadOnDemandmechanism i.e., _ItemRequested() event

All working fine except the 2 issues:
1) There is a significant lag between the time the end-user begins typing and when the filtered items show up. What I observed that the searching in RadcomboBox is done character wise not Word wise.
2) Also, takes time to load data regardless of what value is set in ItemPerRequest property in RadComboBox when using LoadOnDemand.

The maximum items in this RadComboBox can be 20,000+ as well.
User is complaining again and again for the performance issue. Please someone let me know the simplest way of resolving the 2 issues.
I followed below Link (Server Side method), to achieve LoadOnDemand functionality:http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx
If there is no solution to solve the 2 preformance issue then please let me know how to do the searching in RadComboBox, which is inside RadGrid, using LoadOnDemand approach on BUTTON click ?? Will this resolve the 1st Issue ??
Please note that I am new in Telerik. Thanks in advance.

Marin Bratanov
Telerik team
 answered on 11 Jul 2018
3 answers
184 views

Hi, I would need to use a RadTabStrip as a selector, but not for a MultiPage with exclusive content.

When I select the TAB 0, I have to display n input controls.
When I select TAB 1, I have to display n + m input controls. i.e. add them or remove them using the 2 tabs.

Possibly? In the simplest way, server side is preferred.

This an extract. Ther's a parent MasterPage.

<asp:Content ID="Content2" ContentPlaceHolderID="cph1" runat="Server">
 
    <telerik:RadTabStrip RenderMode="Lightweight" runat="server" ID="rts1" Align="Justify" AutoPostBack="true" MultiPageID="rmp1" SelectedIndex="0">
            <Tabs>
                <telerik:RadTab Text="Primo anno"></telerik:RadTab>
                <telerik:RadTab Text="Anni successivi"></telerik:RadTab>
            </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage runat="server" ID="rmp1" SelectedIndex="0" RenderSelectedPageOnly="True">
        <telerik:RadPageView runat="server" Height="460px" ID="rpv1">
            <div class="contentWrapper">
                <telerik:RadAjaxPanel runat="server">
                    <span class="titIscritti">Calcolo per a.a. 2018-2019, studenti iscritti al 1° anno</span>
                    <br />
                    <asp:Label runat="server" AssociatedControlID="txtISEE">ISEE:</asp:Label>
                    <telerik:RadNumericTextBox runat="server" ID="txtISEE" EmptyMessage="valore ISEE" MaxLength="12" RenderMode="Lightweight" Type="Currency" CausesValidation="True"></telerik:RadNumericTextBox>
                    <asp:RequiredFieldValidator ID="rfv_isee" runat="server" ErrorMessage="*" ControlToValidate="txtISEE" Display="Dynamic" ValidationGroup="std"></asp:RequiredFieldValidator>
                    <br />
                    <asp:Label runat="server" AssociatedControlID="txtISPE" >ISPE:</asp:Label>
                    <telerik:RadNumericTextBox runat="server" ID="txtISPE" EmptyMessage="valore ISPE" MaxLength="12" RenderMode="Lightweight" Type="Currency" CausesValidation="True"></telerik:RadNumericTextBox>
                    <asp:RequiredFieldValidator ID="rfv_ispe" runat="server" ErrorMessage="*" ControlToValidate="txtISPE" Display="Dynamic" ValidationGroup="std"></asp:RequiredFieldValidator>
                    <br />
                    <asp:Label runat="server" AssociatedControlID="rddlDipartimento" >Dipartimento:</asp:Label>
                    <telerik:RadDropDownList RenderMode="Lightweight" ID="rddlDipartimento" runat="server" DataTextField="Struttura" DropDownHeight="200" DataValueField="ID">
                    </telerik:RadDropDownList>
                    <asp:RequiredFieldValidator ID="rfv_ddlDip" runat="server" ErrorMessage="*" ControlToValidate="rddlDipartimento" Display="Dynamic" InitialValue="seleziona" ValidationGroup="std"></asp:RequiredFieldValidator>
                    <br /><br />
                    <telerik:RadButton RenderMode="Lightweight" runat="server" Text="Calcola" ID="btnCalcola" ToolTip="Effettua la simulazione"  OnClick="btnCalcola_Click" Primary="False" AutoPostBack="True" SingleClick="False" ButtonType="StandardButton" ValidationGroup="std" />   
                    <br /><br />
                    <asp:Label ID="lblMsg" runat="server" Visible="False" ForeColor="Red"></asp:Label>
                </telerik:RadAjaxPanel>
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" Height="460px" ID="rpv2">
            <div class="contentWrapper">
                Iscritti anni successivi
            </div>
        </telerik:RadPageView>
     </telerik:RadMultiPage>
 
</asp:Content>
Vessy
Telerik team
 answered on 11 Jul 2018
1 answer
332 views

Hello Community,

Our application is supporting for IE. We are making our application compatible with edge. In this process we are getting the below error for RAD Grid.

Horizontal Scroll bar for Rad Grid is not Enabled in Edge Browser but its getting enabled which is working as expected  in IE,Chrome

We are using telerik.web.ui dll version  2010.1.309.40 and .net framework 4.7. I am attaching the screen shots. 

Marin Bratanov
Telerik team
 answered on 11 Jul 2018
6 answers
646 views
Hi ,

I have RadCombo box which is using ItemRequested event to load items , when I click on "ShowMoreResults" list of items are added again and total count is doubled  . I used RadCombo box clear items before rebinding but still the issue occurs ,can anybody suggest how to go about the issue .

Regards
Srujan.N
Peter Milchev
Telerik team
 answered on 11 Jul 2018
1 answer
99 views

Hello,

I use RadDateTimePicker in GridDateTimeColumn. I want to change word 'Today' on other word in my language.

<telerik:RadGrid ID="IdGrid" runat="server" AutoGenerateColumns="False" OnNeedDataSource="NeedDataSourceGrid" OnItemDataBound="ItemDataBoundGrid" Page_PreRender="PreRenderGrid" OnItemCommand="ItemCommandGrid" AllowMultiRowSelection="false"  RenderMode="Lightweight" AllowSorting="True" AllowPaging="True">
<GroupingSettings CaseSensitive="false" /><MasterTableView TableLayout="Fixed" DataKeyNames="InvoiceId" AllowFilteringByColumn="true" CommandItemDisplay="Top" AllowNaturalSort="false">

<Columns>

 

<telerik:GridDateTimeColumn HeaderText="name" UniqueName="NameDateExport" DataField="DateExport" EnableTimeIndependentFiltering="true">  <FilterTemplate>

<telerik:RadDateTimePicker RenderMode="Lightweight" ID="IdDateExport" runat="server"  UniqueName="UnDateExport"  OnSelectedDateChanged="SelectionChanged" OnPreRender="DePreRender"></telerik:RadDateTimePicker>

 

thank you, in advance for help

Vessy
Telerik team
 answered on 11 Jul 2018
2 answers
241 views

Hi..

I'd like to apply my custom skin to a GridButtonColumn.

What do I set the ButtonCssClass to?   Skins/Flom/Button.Flom.css ?

thx again!!

 

 

   GridButtonColumn btnFSR = new GridButtonColumn();
   btnFSR.ButtonCssClass =  ????

Jonathan
Top achievements
Rank 1
Iron
Veteran
 answered on 10 Jul 2018
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?