Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views

Hi,

        I want to use rad window to both primary and secondary monitor. But i am not able to drag my rad window to secondary monitor which is displayed in primary monitor .

sample code:

div>
    <telerik:RadWindow RenderMode="Lightweight" runat="server" ID="rad_simpleNote" Modal="false" Width="340px" Height="340px" VisibleTitlebar="true">
        <ContentTemplate>
            <table>
                <td>
                    <asp:Label ID="username" runat="server" Text="This is building 1 note" CssClass="ContentLabel" />
                </td>
            </table>
        </ContentTemplate>
    </telerik:RadWindow>
</div>

Thanks,

Harikka.

Marin Bratanov
Telerik team
 answered on 27 Jun 2018
1 answer
85 views

It was working for me at one point and then it stopped.  no matter what I have tried the event just did not fire and I couldn't figure out why  I have posted my both code behind and aspx.  Any help would be much appreciated.

Code behind:

protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["CompanyID"] != null)
            CompanyId = (Guid)Session["CompanyID"];
        if (Session["UserID"] != null)
            UserId = (Guid)Session["UserID"];
        if (!Page.IsPostBack)
        {
            loadBatchFileLog();
            rgBatchLog.DataSource = loadBatchFileLog();
            rgBatchLog.DataBind();
        }
    }

 private ICollection loadBatchFileLog()
    {
        DataView dv = new DataView();
        List<BatchOrderingTransform> info = new List<BatchOrderingTransform>();
        info = bll.GetBatchFileLog(CompanyId);
        if (info.Count > 0)
        {
            DataTable dt = new DataTable();
            dt = Common.ToDataTable<BatchOrderingTransform>(info);
            dv = new DataView(dt);
        }
        return dv;
}

protected void rgBatchLog_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        long id = Convert.ToInt64(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"].ToString());
        var name = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Username"].ToString();
        var fileName = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["FileName"].ToString();
        bll.DeactivateBatchFile(id, name);
        loadBatchFileLog();
    }

aspx:

<telerik:RadGrid ID="rgBatchLog" runat="server" AutoGenerateColumns="false" GridLines="None" OnItemDataBound="rgBatchLog_ItemDataBound"
        allowPaging="true" AllowSorting="true" Width="100%" OnUpdateCommand="rgBatchLog_UpdateCommand">
        <PagerStyle Mode="Slider" />
        <MasterTableView AllowAutomaticDeletes="True" DataKeyNames="ID, CompanyId, Username, FileName,IsProcessed">
            <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
            <Columns>
                <telerik:GridHyperLinkColumn DataTextField="Details" ItemStyle-ForeColor="Blue" SortedBackColor="Blue" UniqueName="ID" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="BatchReportDetails.aspx?BatchID={0}"
                    HeaderText="" Text="Details" SortExpression="ID"> <ItemStyle CssClass="hyperlink" /> </telerik:GridHyperLinkColumn>             
                <telerik:GridBoundColumn DataField="ServiceName" HeaderText="Package" UniqueName="ServiceName" />
                <telerik:GridBoundColumn DataField="OriginalFileName" HeaderText="File Name" UniqueName="OriginalFileName" />
                <telerik:GridBoundColumn DataField="ProcessRequestedDate" HeaderText="Scheduled Run Date" UniqueName="ProcessRequestedDate" />
                <telerik:GridBoundColumn DataField="IsProcessed" HeaderText="Is File Processed" UniqueName="IsProcessed" />
                <telerik:GridBoundColumn DataField="Name" HeaderText="User Name" UniqueName="Name"/>
                <telerik:GridBoundColumn DataField="UserEmail" HeaderText="User Email" UniqueName="UserEmail"/>
                <telerik:GridBoundColumn DataField="InputEmail" HeaderText="Input Email" UniqueName="InputEmail"/>
                <telerik:GridBoundColumn DataField="Created" HeaderText="Created" UniqueName="Created"/>
                <telerik:GridButtonColumn CommandName="Deactivate" ItemStyle-ForeColor="Blue" ButtonType="LinkButton" Text="Deactivate" UniqueName="Deactivate" CommandArgument="" ConfirmDialogType="Classic" ConfirmText="Are you sure you want to deactivate this record?"></telerik:GridButtonColumn>
            </Columns>
        </MasterTableView>
        <FilterMenu Skin="Vista" EnableTheming="True">
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </FilterMenu>
    </telerik:RadGrid>

Eyup
Telerik team
 answered on 27 Jun 2018
32 answers
505 views
Hi,

I have a Button and Radeditor in Page1 and upon Button click it should navigate me to another page. If the RadEditor contains any spell errors in its content it should not navigate me to Page 2 and it should alert me "Please start spell check". If there are no spell errors without any spell check it should be navigated to Page2.

Please let me know any solution for this.

Thanks
Samba
Anshuman
Top achievements
Rank 1
 answered on 26 Jun 2018
3 answers
233 views

I am trying to apply a style to a nested tab strip.  Specifically I am trying to set the border-top-color for the selected child tab.  I can do this for the parent tab and I am able to modify other attributes of the child tab, just not that specific one. 

Any insight would be appreciated. 

<style>
        .RadTabStrip_Vista .rtsLevel1 .rtsSelected .rtsLink {           
            font-family: Arial ;
            border-top-color:#fdb845 ;
            border-top-width:2px;
        }
    
        .childTabSelected {
            font-family: Arial  ;
            border-top-color:#00a2ff !important ;
            border-top-width:2px;
        }
 
    </style>
    <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" />
    <div>
        <telerik:RadTabStrip RenderMode="Lightweight" ID="RadTabStrip1" runat="server">
            <Tabs>
                <telerik:RadTab runat="server" Text="Tab1">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Child Tab 1"
                            SelectedCssClass="childTabSelected" />
                        <telerik:RadTab runat="server" Text="Child Tab 2"
                            SelectedCssClass="childTabSelected" />
                        <telerik:RadTab runat="server" Text="Child Tab 3"
                            SelectedCssClass="childTabSelected" />
                        <telerik:RadTab runat="server" Text="Child Tab 4"
                            SelectedCssClass="childTabSelected" />
                        <telerik:RadTab runat="server" Text="Child Tab 5"
                            SelectedCssClass="childTabSelected" />
                    </Tabs>
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Tab2" Selected="True">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Child Tab 2.1"
                            SelectedCssClass="childTabSelected" />
                        <telerik:RadTab runat="server" Text="Child Tab 2.2" Selected="True"
                            SelectedCssClass="childTabSelected" />
                        <telerik:RadTab runat="server" Text="Child Tab 2.3"
                            SelectedCssClass="childTabSelected" />
                        <telerik:RadTab runat="server" Text="Child Tab 2.4"
                            SelectedCssClass="childTabSelected" />
                        <telerik:RadTab runat="server" Text="Child Tab 2.5"
                            SelectedCssClass="childTabSelected" />
                    </Tabs>
                </telerik:RadTab>
 
                <telerik:RadTab runat="server" Text="Tab3" />
            </Tabs>
        </telerik:RadTabStrip>
Rumen
Telerik team
 answered on 26 Jun 2018
1 answer
100 views

We are using the RadListView binding to data from a Web API call...  When data is updated - we use the client-size code:

listView.set_dataSource(data);
listView.dataBind();

Is there a way we can apply an animation when data is updated?  Currently it just draws in the new/updated data in a jarring / clunky fashion.

Marin Bratanov
Telerik team
 answered on 25 Jun 2018
1 answer
512 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
188 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
291 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
114 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
99 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?