Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
3.3K+ 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
91 views

ItemsPerRequest is ignored for the RadComboBox.

How do I get this fixed?

Marin Bratanov
Telerik team
 answered on 11 Jul 2018
5 answers
323 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
247 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
391 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
751 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
183 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
297 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
1 answer
217 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 =  ????
Rumen
Telerik team
 answered on 10 Jul 2018
1 answer
851 views

Target environment where bug is replicable: Windows 10 Enterprise 64-bit.

There is a bug in the DateTimePicker widget.  If you select a time by clicking in the UI, it partially disregards your selection and forces the time to be set in AM time.  As an example, select 3 PM in the UI and the result will be set to 3 AM.  The only exception to this is with 12PM (or any derivative of that hour, such as 12:30PM).  Presumably that is because the default time of a DateTimePicker is 12PM.

I do not know what version of Telerik we use at my company--someone else in my company has the license information and I cannot be bothered.  Regardless, it does not matter.  Just go to the Telerik website with any Windows 10 machine and replicate the issue.  Link here: https://demos.telerik.com/aspnet-ajax/datetimepicker/overview/defaultcs.aspx

This bug cannot be replicated in all environments.  For example, at my office, we have a server where the behavior is not replicated (Windows Server 2012 R2 64-bit).

Attila Antal
Telerik team
 answered on 10 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?