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

Good afternoon,

I have Radwindow in my HTML :

<telerik:RadWindow ID="RadWindow1" runat="server" Modal="true" Animation="Fade" AutoSizeBehaviors="Default" Width="550px" Height="250px"
VisibleStatusbar="false" VisibleTitlebar="true" AutoSize="false" Behaviors="None" Skin="Outlook" Title="SCHEDULE ERROR(S)" >
<ContentTemplate>

<p style="width: 90%; height: 15px; font-size:medium; font-weight:bold;color:Red;" >
The following should be corrected in Galaxy:
</p>
<asp:Panel ID="prepsPanel" runat="server">
<div id="prepsDays" runat="server" style="width: 90%; height: 15px; font-size:small; font-weight:bold;color:Navy; padding-bottom:5px; text-align:left;" >
<asp:BulletedList ID="BulletedList8" runat="server" BulletStyle="Disc">
<asp:ListItem>Schedule does not correspond to num of preps(days)</asp:ListItem>
</asp:BulletedList>
</div>
</asp:Panel>
<asp:Panel ID="sdatePanel" runat="server">
<div id="stDate" runat="server" style="width: 90%; height: 15px; font-size:small; font-weight:bold;color:Navy; padding-bottom:5px; text-align:left;" >
<asp:BulletedList ID="BulletedList9" runat="server" BulletStyle="Disc">
<asp:ListItem>Start Date must be valid work day</asp:ListItem>
</asp:BulletedList>
</div>
</asp:Panel>


</ContentTemplate>
</telerik:RadWindow>

Based on criteria in code behind I want to make it invisible like this:

if (schcnt > 0 || stdcnt > 0 || endcnt > 0 || trmcnt > 0 || jobcnt > 0 || dupcnt > 0 || loccnt > 0 || fundcnt > 0)
{

string script = "function f(){$find(\"" + RadWindow1.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "key", script, true);


if (schcnt == 0)
prepsPanel.Visible = false;

if (stdcnt == 0)
sdatePanel.Visible = false;

But apparently it is not working. Both error showing in popup screen. Should be only one error on the popup screen.

Please help me to resolve this issue.

Thanks.

Vitaly.

                           

Marin Bratanov
Telerik team
 answered on 23 May 2017
2 answers
175 views
I use Material skin width RadPanelBar.
When i expand, i get gray top border and bottom border. How remove that?
See attached Picture....
Ivan Zhekov
Telerik team
 answered on 23 May 2017
1 answer
141 views

I have a RadWindow with a RadEditor defined on it. When a user enters more than the MaxTextLength value for the RadEditor with an error. When you click OK for the error pop-up the RadWindow Closes. I need to be able to get the error message and keep the window open. Here's the definition for the Window, any help would be appreciated.

<telerik:RadWindow RenderMode="Classic" runat="server" ID="rwLogEntry" Modal="true" Behaviors="Close, Move"
    Title="Add Log Entry" Skin="Telerik" EnableShadow="true" Width="800px" Height="300">
    <ContentTemplate>
        <div id="spnLogEntryDate" runat="server" class="formRow">
            <div class="floatLeft">
                <asp:TextBox ID="txtBxIssueLogEntryId" runat="server" Style="display: none" Text="0" />
                <label for="lblLogEntryDate">Created Date:</label>
                <asp:Label ID="lblLogEntryDate" runat="server" />
            </div>
        </div>
        <div id="spnLogEntryUser" runat="server" class="formRow">
            <div class="floatLeft">
                <label for="lblLogEntryUser">Added By:</label>
                <asp:Label ID="lblLogEntryUser" runat="server" />
            </div>
        </div>
        <div class="formRow">
            <label for="redLogText">Details: </label>
            <div style="width: 100%">
                <telerik:RadEditor ID="redLogText" runat="server" EditModes="Design"
                    MaxTextLength="4000" SkinID="DefaultSetOfTools" ContentAreaMode="iframe" OnClientInit="CharCountInit"
                    Height="255px" Width="70%" Style="background-color: White; display: inline-block;"
                    Skin="Default">
                    <Tools>
                        <telerik:EditorToolGroup>
                            <telerik:EditorSeparator Visible="true" />
                            <telerik:EditorTool Name="Cut" />
                            <telerik:EditorTool Name="Copy" />
                            <telerik:EditorTool Name="Paste" />
                            <telerik:EditorSeparator Visible="true" />
                            <telerik:EditorSplitButton Name="Undo" />
                            <telerik:EditorSplitButton Name="Redo" />
                            <telerik:EditorSeparator Visible="true" />
                            <telerik:EditorTool Name="Bold" />
                            <telerik:EditorTool Name="Italic" />
                            <telerik:EditorTool Name="Underline" />
                            <telerik:EditorSeparator Visible="true" />
                            <telerik:EditorTool Name="JustifyLeft" />
                            <telerik:EditorTool Name="JustifyRight" />
                            <telerik:EditorTool Name="JustifyCenter" />
                            <telerik:EditorSeparator Visible="true" />
                            <telerik:EditorDropDown Name="FontName" />
                            <telerik:EditorDropDown Name="FontSize" />
                            <telerik:EditorSeparator Visible="true" />
                            <telerik:EditorTool Name="AjaxSpellCheck" />
                        </telerik:EditorToolGroup>
                    </Tools>
                    <CssFiles>
                        <telerik:EditorCssFile Value="" />
                    </CssFiles>
                    <Modules>
                        <telerik:EditorModule Name="RadEditorStatistics" Visible="true" Enabled="true"></telerik:EditorModule>
                    </Modules>
                </telerik:RadEditor>
                <asp:RequiredFieldValidator ID="rfvLogTextValid" runat="server" CssClass="validator" ControlToValidate="redLogText"
                    Text="Required" ErrorMessage="Details is a Required Field" ToolTip="This is a Required Field" SetFocusOnError="true"
                    ValidationGroup="LOGVALIDGROUP" />
                <br />
                <asp:Label ID="lblErrorMsg" runat="server" CssClass="validator"></asp:Label>
            </div>
        </div>
        <div class="formRow">
            <div class="floatRight">
                <asp:LinkButton ID="lnkBtnSaveLogEdit" runat="server" OnClick="lnkBtnSaveLogEdit_Click" ValidationGroup="LOGVALIDGROUP" CssClass="silverButton">
                    <span id="spnIssueLog" runat="server">Submit</span>
                </asp:LinkButton>
                <asp:LinkButton ID="lnkBtnLogEditCancel" runat="server" OnClick="lnkBtnLogEditCancel_Click" CausesValidation="false" Text="Cancel"
                    CssClass="floatRightLink" />
            </div>
        </div>
    </ContentTemplate>
</telerik:RadWindow>
Marin Bratanov
Telerik team
 answered on 23 May 2017
0 answers
67 views
Kendo ui grid grouping data parent does not work properly
We have one group but it is a part of the show

Mohammad Reza
Top achievements
Rank 1
 asked on 23 May 2017
1 answer
105 views

Support ,
As mentioned in the attached File, Open Play List and Close Play List tool tip are showing wrongly .
When the Play list are showing, Tool tip Shows as Open Play list. 
When the Playlist are not showing, Tool tip Shows as Close Play list. 
Is there any way to inter change this tool tip ?

Rumen
Telerik team
 answered on 23 May 2017
2 answers
313 views

How do i change the RadNavigation css style like the attached image?

I have set  EnableEmbeddedSkins="false".

And use this css now:

 

html .RadNavigation .rnvMore,
html .RadNavigation .rnvRootLink {
    padding-top: 0px;
    padding-left: 14px;
    padding-bottom: 0px;
    border: none;
    margin: 0px;
}
 
 
html .RadNavigation {
    font-size: 1.5em;
    font-family: 'Alegreya Sans', sans-serif;
    color: white;
    border: none;
}
 
 
    html .RadNavigation .rnvHovered .rnvRootLink {
        background-color: lightblue;
        border: none;
    }
Ivan Zhekov
Telerik team
 answered on 23 May 2017
6 answers
239 views
Hello,
when I try to resize a RadHtmlChart after an Ajax request with a js function as the only element to be resized are the series while the wrapper does not change (see attachments).
I had read the article RadHtmlChart in a Responsive Web page and then I had somethig like this, in order to resize the chart.

function resizeChart(id) {   
    var RadHtmlChart1 = $find(id);
    if ($(RadHtmlChart1).length) {       
        RadHtmlChart1._chartObject.resize();
         
        RadHtmlChart1.repaint();       
    }
}

Taking a look at the DOM Explorer I saw that the problem is in the element SVG.
The DIV with class k-chart is sized correctly.

Thanks in advance,

Alessio

Marin Bratanov
Telerik team
 answered on 23 May 2017
6 answers
705 views

Hello, I am designer trying to figure how make changes to the HTML Chart. I have 3 charts inside of 3 containing DIVs set at 33%. I have a click function with JavaScript to change the width from 33% to 100% in order to expand the chart and make it easier to read. When I do this, the containing DIV expands to 100% but the chart stays at the initial rendered 33% when first loaded. I have been searching and searching trying to find a solution but have not been able. Can someone show what would be needed to make the chart refresh with click event?

The JS I have is:

$(".gridButton").click(function () {
$(".chartContainer").removeClass("grid");
            });

Marin Bratanov
Telerik team
 answered on 23 May 2017
2 answers
518 views

I'm trying to do a couple of things (picture attached):
1. Remove the empty white row that shows up when there are no records. How can I get rid of it?
2. Right below the textbox to insert a new item, there is a double line. Like the border is thicker. How can I remove the thicker border and just have a normal border at the bottom?

Here's my code:

<telerik:RadGrid ID="rgImpacts" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="False" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="0" DataSourceID="odsImpacts" GridLines="None" Width="800px" AutoGenerateColumns="False" OnInsertCommand="rgImpacts_InsertCommand">
    <AlternatingItemStyle BackColor="White" />
    <MasterTableView CommandItemDisplay="None" DataKeyNames="idImpactId" DataSourceID="odsImpacts" EditMode="InPlace" InsertItemDisplay="Bottom" ShowHeader="False">
        <Columns>
            <telerik:GridTemplateColumn DataField="varcharImpact" FilterControlAltText="Filter varcharImpact column" HeaderText="Impact" SortExpression="varcharImpact" UniqueName="varcharImpact">
                <EditItemTemplate>
                    <telerik:RadTextBox ID="txtImpact" runat="server" Text='<%# Bind("varcharImpact") %>' MaxLength="100" Width="600px" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lblImpact" runat="server" Text='<%# Eval("varcharImpact") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Width="650px"></HeaderStyle>
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn FilterControlAltText="Filter EditCommandColumn column" Groupable="False" UniqueName="EditCommandColumn">
                <EditItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CssClass="gridLink" CommandName="Update" Text="Update" /> 
                    <asp:LinkButton ID="LinkButton2" runat="server" CssClass="gridLink" CausesValidation="false" CommandName="Cancel" Text="Cancel" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton4" runat="server" CssClass="gridLink" CausesValidation="false" CommandName="Edit" Text="Edit" /> 
                    <asp:LinkButton ID="LinkButton3" runat="server" CssClass="gridLink" CausesValidation="false" CommandName="Delete" Text="Delete" />
                </ItemTemplate>
                <InsertItemTemplate>
                    <asp:LinkButton ID="LinkButton5" runat="server" CssClass="gridLink" CommandName="PerformInsert" Text="Insert" />
                </InsertItemTemplate>
                <HeaderStyle Width="100px"></HeaderStyle>
            </telerik:GridTemplateColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column" ButtonType="ImageButton"></EditColumn>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>


public partial class ChangeRequestForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                rgImpacts.MasterTableView.NoMasterRecordsText = string.Empty;
                rgImpacts.MasterTableView.NoDetailRecordsText = string.Empty;
                rgImpacts.MasterTableView.IsItemInserted = true;
                rgImpacts.Rebind();
            }
        }
 
        protected void rgImpacts_InsertCommand(object sender, GridCommandEventArgs e)
        {
            GridEditableItem item = e.Item as GridDataItem;
            if (item != null)
            {
                var varcharImpact = ((RadTextBox) item.FindControl("txtImpact")).Text;
                DataAccessLayer.Impacts.ImpactsInsert(varcharImpact);
                rgImpacts.Rebind();
                e.Canceled = true;
            }
        }
 
    }



Bala
Top achievements
Rank 1
 answered on 23 May 2017
0 answers
56 views
I create asp button .
 <asp:Button ID="excelImg" runat="server" class="green" Text="Excel" OnClick="ExportExcel"
                              OnClientClick="this.disable=true; this.value='Processing';"           UseSubmitBehavior="false" />
it is for Export to Excel to telerik grid. it works but. 'Processing ... ' is not still disappear even after exporting excel.
May
Top achievements
Rank 1
 asked on 23 May 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?