Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
610 views
I have a radspreadsheet control that I bound from the server to an existing spreadsheet.  What I would like to know is can I update the cells on the spreadsheet with values from the code behind.  And if so, how do I go about doing it.  All of the examples are added a new worksheet and not updating an existing one
Marin Bratanov
Telerik team
 answered on 25 Jun 2018
2 answers
259 views

Hello,

There seems to be an issue with the "Strip Span Elements" tool when pasting content into the editor in Design mode.

I have made a screencast demonstrating the issue available here: https://www.screencast.com/t/1OZ1huYPde8H

Reproduce:

  • Open a RadEditor demo that has the "Strip Span Elements" option like the Overview or the Right Editor in this demo.
  • In a word document create text that when pasted into the editor has spans, for example changing the background color or the text color. 
  • Copy the text from the document into the "Design" mode of the editor.
  • Select the text you would like to strip span's from (I used all of the text in the screencast example).
  • Use the "Strip Span Elements" button.
  • Switch the editor mode to HTML(The spans are not stripped).
  • Switch back to design mode.
  • Select the text you would like to remove spans from again.
  • Use the "Strip Span Elements" button. The spans are now stripped.

 

Expected result: Strip Span Elements option removes <span> tags from html directly after pasting into design mode.

Actual result: Strip Span Elements option does not remove <span> tags on pasted text in the design mode until you navigate to HTML mode then back to design mode.

 

Any help and suggestions are appreciated.

 

Thanks,

 

Calvin Williams

Marin Bratanov
Telerik team
 answered on 25 Jun 2018
2 answers
381 views

I am hoping this is a simple question

I have a Menu using the Bootstrap theme, and am wanting to remove the rmRightArrow sprite from showing.

The arrow that comes standard in it is too small for us, and are wanting to use the bigger arrow seen in the image.

I have inspected and found the following to be where the arrow is, but cannot remove it as a default.

 

.RadMenu_Bootstrap .rmHorizontal>.rmItem .rmExpandDown:after, .RadMenu_Bootstrap .rmHorizontal>.rmItem .rmExpandTop:after, .RadMenu_Bootstrap .rmHorizontal>.rmItem .rmExpandLeft:after, .RadMenu_Bootstrap .rmHorizontal>.rmItem .rmExpandRight:after {
content: "";
margin: 0 -4px 0 4px;
border: 4px solid transparent;
border-top-color: inherit;
display: inline-block;

If I untick the 'content' item, the little arrow disappears.

How do I remove it as I don't want to have two arrows displayed.

Thank you in advance.

Matt
Top achievements
Rank 1
 answered on 24 Jun 2018
0 answers
155 views

Hi,

I am using Kendo UI Batch editing grid for my requirement and its have 10 columns and 15 rows. While doing "save changes" with 15 rows its showing 404 error. If am doing the same with 5 rows its working fine. Actually the editing model data's are passing like query string. So is that the problem for this issue. Can anyone please do needful.

Rajapandi
Top achievements
Rank 1
 asked on 24 Jun 2018
1 answer
158 views

I use a very simple grid with data source and AllowAutomaticUpdates="True"  and AllowAutomaticInserts="True"

Insert works perfectly, but for update, after I choose new date and comment and click update, the old values are sent to stored procedure(logged them from stored procedure to make sure). What am I missing?

 

<telerik:RadGrid ID="RadGridTimeSlots" runat="server" AllowAutomaticDeletes="true" AllowAutomaticInserts="True"
            GroupPanelPosition="Top" ResolvedRenderMode="Classic" AllowAutomaticUpdates="True" DataSourceID="dsTimeSlots" OnItemUpdated="RadGridTimeSlots_ItemUpdated" OnItemInserted="RadGridTimeSlots_ItemInserted">
            <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" DataKeyNames="ID,DateFrom,DateTo,comment" EditMode="InPlace" DataSourceID="dsTimeSlots">
                <Columns>
                    <telerik:GridDateTimeColumn DataField="DateFrom" HeaderText="Date From" UniqueName="DateFrom" PickerType="DateTimePicker" />
                    <telerik:GridDateTimeColumn DataField="DateTo" HeaderText="Date To" UniqueName="DateTo" PickerType="DateTimePicker" />
                    <telerik:GridBoundColumn DataField="comment" HeaderText="Comment" UniqueName="comment"></telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn CommandName="Delete" ConfirmText="Do you want to delete this time slot?" ButtonType="ImageButton" HeaderText="Delete?" ConfirmDialogType="RadWindow" UniqueName="btnDelete">
                        <ItemStyle VerticalAlign="Top" />
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    <asp:HiddenField ID="hMyAccountName" runat="server" />
        <asp:SqlDataSource ID="dsTimeSlots" runat="server"
            ConnectionString="<%$ ConnectionStrings:PPMTESTConnectionString %>"
            SelectCommand="execute SelectOutOfOfficeSlots @accountName"
            InsertCommand="execute InsertOutOfOfficeSlot @accountName,@DateFrom,@DateTo,@comment"
            UpdateCommand="execute UpdateOutOfOfficeSlot @ID,@accountName, @DateFrom,@DateTo, @comment">
            <SelectParameters>
                <asp:ControlParameter ControlID="hMyAccountName" Name="accountName" PropertyName="Value" />
            </SelectParameters>
            <InsertParameters>
                <asp:ControlParameter ControlID="hMyAccountName" Name="accountName" PropertyName="Value" />
            </InsertParameters>
            <UpdateParameters>
                <asp:ControlParameter ControlID="hMyAccountName" Name="accountName" PropertyName="Value" />
            </UpdateParameters>
        </asp:SqlDataSource>

 

 

 

Partial Class MyOutOfOffice
    Inherits System.Web.UI.Page
    Dim myAccountName As String

    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        myAccountName = Session("DomainAccount")
        hMyAccountName.Value = myAccountName
        Label2.Text = ""
    End Sub


    Protected Sub chkOutOdOffice_CheckedChanged(sender As Object, e As EventArgs)

    End Sub
    Protected Sub RadGridTimeSlots_ItemUpdated(sender As Object, e As GridUpdatedEventArgs)
        If (Not (e.Exception Is Nothing)) Then

            e.ExceptionHandled = True
            Label2.Text = Label2.Text & e.Exception.Message & "<BR/>"
        End If
    End Sub
    Protected Sub RadGridTimeSlots_ItemInserted(sender As Object, e As GridInsertedEventArgs)
        If (Not (e.Exception Is Nothing)) Then

            e.ExceptionHandled = True
            Label2.Text = Label2.Text & e.Exception.Message & "<BR/>"
        End If
    End Sub
End Class

Galina
Top achievements
Rank 1
 answered on 22 Jun 2018
1 answer
259 views

I am using the latest Telerik.

My RadGrid has a date column and I am trying to format it but it doesn't work.

<telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid1" AllowPaging="True" AllowSorting="true" OnInit="RadGrid1_Init" 
                                PageSize="15"   AllowFilteringByColumn="true"   OnNeedDataSource="RadGrid1_NeedDataSource" OnPreRender="RadGrid1_PreRender" Font-Size="Small">
                
                <MasterTableView>
                    <Columns>
                        <telerik:GridDateTimeColumn DataField="BillDate" UniqueName="BillDateColumn1" DataFormatString="{0:dd/MM/yyyy}"  HeaderText="Bill Date1" />
                        <telerik:GridBoundColumn DataType="System.DateTime" DataField="BillDate" UniqueName="BillDateColumn2" DataFormatString="{0:dd/MM/yyyy}"  HeaderText="Bill Date2" /> 
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

 

In both columns, I get format like 4/30/2017 12:00:00 AM instead of just 4/30/2017.

Is there anything I am missing here?

StuartLittle
Top achievements
Rank 1
 answered on 22 Jun 2018
1 answer
492 views

Hi,

I have GridTemplate column with RadioButtonList and Telerik GridCheckBox column along with regular GridBoundColumns in RadGrid. In my javascript depending upon condition, I need to make GridTemplate column with RadioButtonList and Telerik GridCheckBox column as readonly and toggle it to be editable depending on condition.

I am not finding any code to make those 2 columns as readonly.

Please suggest.

 

Thank You

Marin Bratanov
Telerik team
 answered on 22 Jun 2018
1 answer
187 views

I spent hours trying to figure out how possibly bind this control to a datasource in a formview through a property.

Text does absolutely nothing.

Radcombobox use the Selectedvalue property. How am I supposed to use AutoComplete to load the value from the DB and Set it when I trigger the Update command?
I can't see anithing about it in the docs.

Peter Milchev
Telerik team
 answered on 22 Jun 2018
4 answers
184 views

Good morning,

 

We are witnessing an issue in the latest version of FireFox (v59.0), Telerik Ajax 2018 R1, where the tile click event is not firing - issue can be replicated on the Tile demo page also:

https://demos.telerik.com/aspnet-ajax/tilelist/examples/overview/defaultcs.aspx

 

This appears to be due to amendments to the pointer functionality mentioned in the 59.0 release notes:

"Added support for W3C specs for pointer events and improved platform integration with added device support for mouse, pen, and touch screen pointer input"

https://www.mozilla.org/en-US/firefox/59.0/releasenotes/

 

This can be proved further by modifying the about:config and setting the dom.w3c_pointer_events.enabled value to disabled and refreshing the page, after which the tiles work.

 

Screen record:

https://www.screencast.com/t/dc4duWvP6

 

This is affecting our production environment, so a quick fix/workaround would be appreciated.

Many thanks

Peter Milchev
Telerik team
 answered on 21 Jun 2018
0 answers
124 views

I'm trying to create a chart with a stacked column series using a bound data source.    

I am able to create either stacked or series, but can't figure out how to combine the two.   I suspect the root of the problem is getting the data formatted correctly.   

Is there a simple example of how to accomplish this somewhere?   

 

 

Jakub
Top achievements
Rank 1
 asked on 20 Jun 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?