Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
265 views
Hi there,

We end up with an error "Error: 'JSON' is undefined" when accessing pages using telerik controls in IE8.
It is quite new when migrating to IE8 (after some security hotfix?) and the compatibility mode does not help...
Trying the last version of Telerik controls does not help neither...

Do someone face similar issue and can give us some hint there?

Regards,
David
Shirish
Top achievements
Rank 1
 answered on 12 Jul 2018
0 answers
101 views

I have a Radgrid using automatic Update, and a custom Edit Form template. I need to pass all the values of an edited row so I can populate an email that will be sent to users from the code-behind. Using the code below that I have cobbled together from various posts, I can get all the row's current values, but not the updated values using the ItemUpdated event. Is there another event I can use, or different code to obtain Updated values for that row after my Edit Form is closed and database updated? I am new to this, so code examples are helpful. Thanks!

C#

public void RadGrid1_ItemUpdated(object sender, GridUpdatedEventArgs e)
        {
            GridEditFormItem item = (GridEditFormItem)e.Item;
            GridDataItem parentItem = (GridDataItem)item.ParentItem;
            string emailFlag = parentItem["EmailToSalesFlag"].Text;
            {
                if (emailFlag == "true");
                string SU = parentItem["StockUnit"].Text;
                string Make = parentItem["Make"].Text;
                string Model = parentItem["Model"].Text;
                string Description = parentItem["Description"].Text;
                string Type = parentItem["Type"].Text;
                string CustName = parentItem["CustName"].Text;
                string Salesperson = parentItem["Salesperson"].Text;
                string RecDate = parentItem["Rec_Date"].Text;
                string InvDate = parentItem["Inv_Date"].Text;
                string SpiffProg = parentItem["SpiffProg"].Text;
                string SpiffAmt = parentItem["SpiffAmt"].Text;
                string Notes = parentItem["Notes"].Text;
                string Approved = parentItem["Approved"].Text;
                string MgrNotes = parentItem["MgrNotes"].Text;
                string Email = parentItem["Email"].Text;
                //Populate HTML email Body               
                PopulateBody(SU, Make, Model, Description, Type, CustName, Salesperson, RecDate, InvDate, SpiffProg, SpiffAmt, Notes, Approved, MgrNotes, Email);
            }
        }

Andy
Top achievements
Rank 1
 asked on 12 Jul 2018
1 answer
125 views

Hello!

 

I have a weird problem with my radgrid. In one of my columns (GridBoundColumn), I can't insert the exclamation mark.

It seems like the combination (Shift + 1) is somehow blocked. I can't find anything related to this.

Every other keyboard combination is working. The only way I can add the exclamation mark is by copy paste. 

Has anyone encountered this before ? Any help is appreciated!

 

Thank you!

Tsvetomir
Telerik team
 answered on 12 Jul 2018
4 answers
157 views
hi,

I use RadGrid to manipulate row promotion level. I Enabled the user to drag and drop rows to set the drraged item position.

I need to manipulate my datasbase when the dragging finish.

I wish to do this with javascript that invoke WCF service and pass the relevant parameters.

the problem is when the row dropped,  the page Posback to server and the user need to wait until the updating  to DB will finish.

I only need help to disable this postBack.

(When I use set_cancel method in the droppedEvent Nothing Changed and if I use it in the Drraging event the Dropped Event no Fired at all).

Thanks.
sorry about my English.. :)

shimon
Flavien
Top achievements
Rank 1
Iron
 answered on 12 Jul 2018
6 answers
251 views
I want to put a button on the page that uses the ConfirmBtn-Grey.jpg image when the page loads, and then when the button is clicked it should display ConfirmBtn-Selected.jpg.

I'm using the following RadButton definition, but not getting any images displayed on my page...

<telerik:RadButton ID="RadButton1" runat="server" ButtonType="ToggleButton" ToggleType="CustomToggle">
    <ToggleStates>
        <telerik:RadButtonToggleState Selected="true" ImageUrl="../images/ConfirmBtn-Grey.jpg" />
        <telerik:RadButtonToggleState ImageUrl="../images/ConfirmBtn-Selected.jpg" />
    </ToggleStates>
</telerik:RadButton>

I've checked the paths to my images using Firebug and it's picking them up ok. Have I defined the button incorrectly?

Rob
Marin Bratanov
Telerik team
 answered on 12 Jul 2018
3 answers
355 views
How to change the background color to blue for Material skin
Marin Bratanov
Telerik team
 answered on 12 Jul 2018
5 answers
385 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.2K+ 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
58 views

ItemsPerRequest is ignored for the RadComboBox.

How do I get this fixed?

Marin Bratanov
Telerik team
 answered on 11 Jul 2018
5 answers
259 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
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?