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

I'm having some issues with the datetimecolumn:

I have the same configuration in multiple pages, but in just one the Insert / Update does not work with some dates (eg: Aug 24 does not work, Aug 8 works).

I though there was some problem with the database, but also there the setup is same like the other pages (that accept all the dates).

In addition, I found out that with some other PC the the grid works as expected :-/ those PC use the same language, same region configuration...

 

I'm confused and I can't figure out why this happen.

Thanks for any comment

Maria Ilieva
Telerik team
 answered on 11 Aug 2016
1 answer
118 views

hi

i have this xml code for the panelbar and the padding left seems not working. How should i get it working? Thanks a lot.

 

<?xml version="1.0" encoding="utf-8" ?>
<PanelBar>

<Item Text="Course" Font-Size="1.1em"  ForeColor="#00a7dd">
      <Item Text="Lists" Font-Size="0.9em" style="padding-left:20px" ForeColor="#00a7dd" />   
      <Item Text="Categories" Font-Size="0.9em" style="padding-left:20px" ForeColor="#00a7dd"/>
</Item>

 

</PanelBar>

Veselin Tsvetanov
Telerik team
 answered on 11 Aug 2016
7 answers
269 views
At this point I have a RadGrid (RadGrid1) which contains a NestedTemplateView. Within this NestedTemplateView I have a RadTabStrip and a RadMultiPage View. On the first page of the RadMultiPage I have a second RadGrid(RadGrid2), which has a button to open a RadWindow. Within this RadWindow the user can select new records(saved to the source db), which I would like to appear in RadGrid2 when the RadWindow is closed. So what I am trying to figure out is how to rebind the "sender" grid (RadGrid2) and not the Parent Grid (RadGrid1). Any suggestions?
Eyup
Telerik team
 answered on 11 Aug 2016
1 answer
94 views

Hi

 

I am using radMenu with the Simple skin seems to be all css and no sprites, so lends itself to modification.

I have successfully changed the height and the text size, but I haven't managed to re-position the text to be centred vertically.

How do I do this?

my css so far is:

 .RadMenu_Simple .rmHorizontal .rmRootLink span.rmText
  {
    height: 30px !important;
    font-size:larger;
  }

Thanks

Clive

Dimitar
Telerik team
 answered on 11 Aug 2016
1 answer
71 views

Using an older version of telerik, we have a control formed like so:

[code]
<asp:DropDownList ID="ddlField" Visible="false" runat="server" AutoPostBack="true"
    Height="20px" Width="126px" AppendDataBoundItems="True" DataSourceID="FieldLookupDS"
    DataTextField="FieldName" DataValueField="FieldPk" CausesValidation="True">
</asp:DropDownList>
<telerik:RadComboBox runat="server" ID="radCbField" DataSourceID="FieldLookupDS"
    DataTextField="FieldName" DataValueField="FieldPk" Width="130px" AllowCustomText="true"
    Text="Select">
    <ItemTemplate>
        <asp:CheckBox runat="server" ID="cbField" AutoPostBack="true" Text='<%#Eval("FieldName")%>' />
    </ItemTemplate>
</telerik:RadComboBox>
[/code]

Without change, the old version of the telerik controls allow us to select multiple items in a drop down list with checkboxes, while the default option field remains in place. After updating to a newer version of telerik, clicking on the checkboxes themselves maintains he same effect, but clicking on the label makes that label appear in the option field instead of the desired default prompt. This has been verified by simply switching the versions we are using. 

Is there any guidance on how to re-implement this functionality in newer versions? 

Ivan Danchev
Telerik team
 answered on 11 Aug 2016
1 answer
108 views

I'm getting very odd paging when I apply filters to certain grids, while others seem to be working correctly with basically the same code. What happens if I have my row result set to 25 and have 2 pages of results then I filter which only returns 5 results, the pager still shows two pages and the count still says page 1 of 2 and rows 1-25 of 26. I've attached some screen shots so you can see exactly what I'm referring to. What's worse is if you click on the pager to go to the next page it's blank and the pager control disappears. 

Here's the basic header stuff for the Grid, if you need more let me know:

<telerik:RadGrid ID="rgActionItems"
    OnItemCommand="rgActionItems_ItemCommand"
    OnItemDataBound="rgActionItems_ItemDataBound"
    ClientSettings-ClientEvents-OnGridCreated="radGrid_CreatedMaxHeight"
    ClientSettings-Scrolling-AllowScroll="true"
    runat="server"
    AllowPaging="True"
    AllowSorting="True"
    AutoGenerateColumns="False"
    CellSpacing="0"
    ClientSettings-AllowColumnsReorder="false" ClientSettings-Resizing-AllowColumnResize="false" ClientSettings-Scrolling-UseStaticHeaders="true"
    EnableLinqExpressions="False"
    ExportSettings-ExportOnlyData="true" ExportSettings-IgnorePaging="true" ExportSettings-OpenInNewWindow="true" ExportSettings-HideStructureColumns="true"
    GridLines="None"
    GroupingSettings-CaseSensitive="false" MasterTableView-AllowMultiColumnSorting="false" MasterTableView-AllowNaturalSort="false" AllowFilteringByColumn="true" MasterTableView-CommandItemDisplay="Top"
    MasterTableView-CommandItemSettings-ShowAddNewRecordButton="false"
    MasterTableView-CommandItemSettings-ShowRefreshButton="false"
    MasterTableView-CommandItemSettings-ShowExportToCsvButton="false"
    MasterTableView-CommandItemSettings-ShowExportToExcelButton="true" ExportSettings-Excel-Format="Xlsx"
    MasterTableView-CommandItemSettings-ShowExportToPdfButton="true" ExportSettings-Pdf-AllowCopy="true" ExportSettings-Pdf-AllowPrinting="true" ExportSettings-Pdf-AllowModify="true"
    MasterTableView-CommandItemSettings-ShowExportToWordButton="true" ExportSettings-Word-Format="Docx"
    PageSize="25"
    PagerStyle-PageSizes="25,50,100"
    PagerStyle-AlwaysVisible="true" PagerStyle-EnableAllOptionInPagerComboBox="true"
    MasterTableView-PagerStyle-PagerTextFormat="{4} Page {0} of {1}, rows {2} to {3} of {5}"
    MasterTableView-PagerStyle-Position="TopAndBottom"
    MasterTableView-PagerStyle-PageButtonCount="10"
    MasterTableView-PagerStyle-EnableAllOptionInPagerComboBox="false"
    MasterTableView-TableLayout="Fixed"
    >
    <MasterTableView>
        <SortExpressions>
            <telerik:GridSortExpression FieldName="" SortOrder="Ascending" />
        </SortExpressions>
        <NoRecordsTemplate>
            <asp:Label ID="Label1" Text="No Records Found" runat="server" />
        </NoRecordsTemplate>
        <Columns>

 

Thanks

Rodney

 

 

Eyup
Telerik team
 answered on 11 Aug 2016
3 answers
103 views

when I m using signalr scripts in my master page all of radwindow in my project stop working fine

when I comment scripts like belowe rad window clients event start working
    <link rel="shortcut icon" href="Content/images/favicon.ico" />

<%--<script src="Scripts/jquery-1.6.4.js" type="text/javascript"></script>
<script src="Scripts/json2.js" type="text/javascript"></script>
<script src="Scripts/jquery.signalR-1.0.0-rc2.min.js" type="text/javascript"></script>
<script src="signalr/hubs" type="text/javascript"></script>--%>

<script src="Content/lib/jquery.msgBox.min.js"></script>
<link href="Content/css/msgBoxLight.css" rel="stylesheet" />
   

Danail Vasilev
Telerik team
 answered on 11 Aug 2016
3 answers
324 views

Hi -

I am looking for a way to fix a radHTMLchart where the series labels extend outside of the chart boundary as shown in the attached picture.

My work around is to set the chart.PlotArea.LabelsAppearance.TextStyle.Margin = "-3" so the series label will appear very close to the end of the bar, but I would like to know if there is a better solution.

Thanks,

Cecilia Daniels

Danail Vasilev
Telerik team
 answered on 11 Aug 2016
4 answers
408 views
Hello,

I am trying to get the reference to a RadButton object (which is used as a check box) which is inside the EditTemplate of a FormView. More specifically, I have the following code:

<telerik:RadFormDecorator id="FormDecorator1" runat="server" DecoratedControls="All" Skin="Metro"></telerik:RadFormDecorator>
    <asp:Panel runat="server" ID="Panel1">
        <asp:FormView ID="EmployerFormView" DataSourceID="EmployerObjectDataSource" DataKeyNames="id" runat="server" DefaultMode="Edit">
            <EditItemTemplate>
                <table>
                    <tr>
                        <td class="auto-style5">
                            <telerik:RadButton ID="rdBtnPhysical" runat="server" AutoPostBack="False" GroupName="rdEmplrType"
                                Text="Individual" ToggleType="Radio" OnClientCheckedChanged="rdBtnPhysical_CheckedChanged"
                                UseSubmitBehavior="False">
                                <ToggleStates>
                                    <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleRadioChecked" />
                                    <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleRadio" />
                                </ToggleStates>
                            </telerik:RadButton>
                        </td>
                        <td>
                            <telerik:RadButton ID="rdBtnLegal" runat="server" AutoPostBack="False" GroupName="rdEmplrType" Text="Legal Entity"
                                ToggleType="Radio" OnClientCheckedChanged="rdBtnLegal_CheckedChanged" UseSubmitBehavior="False">
                                <ToggleStates>
                                    <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleRadioChecked" />
                                    <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleRadio" />
                                </ToggleStates>
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style5" style="white-space: nowrap">
                            <label>Employer Registration number:</label>
                        </td>
                        <td style="width: 100px">
                            <telerik:RadTextBox ID="txtAme" runat="server"
                                EmptyMessage="A.M.E.">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
   ...



Then I have the following javascript code:

<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
        <script type="text/javascript">
            $(document).ready(function () {
 
                 
                var firstName = $('input[id$="txtFirstName"]'); //This works fine
                firstName = $telerik.toTextBox(firstName);
                 
                var fathersName = document.getElementById('<%=EmployerFormView.FindControl("txtFathersName").ClientID%>'); //This also works fine
                 
                fathersName = $telerik.toTextBox(fathersName);
                var lbl = $get("lblEmplrName");
                 //The next line returns null reference
                var checkbox = document.getElementById('<%=EmployerFormView.FindControl("rdBtnLegal").ClientID%>');
               
                 //This comes up with an exception since the object is null
                checkBox = $telerik.toButton(checkBox);
                if (checkBox.get_checked()) {

However, when I looked into the generated HTML code, I saw that the ClientID for the checkbox was the following:

ctl00_ContentPlaceHolder1_EmployerFormView_rdBtnLegal_input

with the problem being _input since the javascript line is rendered to the following:

var checkbox = document.getElementById('ctl00_ContentPlaceHolder1_EmployerFormView_rdBtnLegal');

As a result checkbox is undefined. Btw, there is also a ctl00_ContentPlaceHolder1_EmployerFormView_rdBtnLegal_ClientState

I do not understand why, and I don't know how to get the reference I want. It works fine with the RadTextBox (i.e. there is no _input appended at the end of the ClientID).

Thanks 

Lefteris 
Phil H.
Top achievements
Rank 2
 answered on 10 Aug 2016
9 answers
316 views
Hi Everyone,

I have what may be a simple question.  The 1st screenshot below shows how I want my tabstrip to look, with its alignment fully justified to the page width.  However, whenever any item causes the vertical scroll bar to display on the browser, such as in the 2nd attachment, my TabStrip "stacks" (I assume because the scroll bar is consuming horizontal space.).  

Therefore, how do I "stop" my TabStrip from stacking/displaying in multiple tab rows?  Here is my declaration for the tab strip:

<telerik:RadTabStrip ID="FastportRTS" runat="server" SelectedIndex="0" Skin="BlackMetroTouch"
    Align="Justify" >
</telerik:RadTabStrip>

Thanks so much!
Carlo
Top achievements
Rank 1
 answered on 10 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?