Telerik Forums
UI for ASP.NET AJAX Forum
19 answers
771 views

Hi,

With the new Q2 2018 I get TypeError: access to strict mode caller function is censored on FireFox 60.0.1 and Chrome 66, when I use the upload function of the Editor.

 

This also happens when I try the same in the Telerik demo environment, please refer to screenshot .

BR, Marc

Marin Bratanov
Telerik team
 answered on 04 Dec 2018
1 answer
201 views

Using objectdatasource.  Found a thread from a while ago about adding the  OverrideDataSourceControlSorting="true".  Still makes our column headers disappear and not sortable. Any thoughts would be great.

Thanks

  <telerik:RadGrid ID="gridExemptions" AllowSorting="true" OnItemCreated="gridExemptions_ItemCreated" OnItemInserted="gridExemptions_ItemInserted" runat="server" OnItemDataBound="gridExemptions_ItemDataBound" CellSpacing="-1" DataSourceID="ExemptionsObjectDataSources" GridLines="Both" OnItemCommand="gridExemptions_ItemCommand" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False" AllowMultiRowEdit="True" ShowFooter="True" OnPreRender="AnyGrid_PreRender">

            <MasterTableView OverrideDataSourceControlSorting="true" DataSourceID="ExemptionsObjectDataSources" CommandItemDisplay="TopAndBottom" InsertItemDisplay="Bottom" DataKeyNames="Exemption_ID" EditMode="InPlace" AutoGenerateColumns="False" EnableHeaderContextMenu="True">
                <CommandItemSettings ShowExportToPdfButton="True" ShowExportToCsvButton="True" ShowPrintButton="true"></CommandItemSettings>
                <Columns>
                    <telerik:GridBoundColumn DataField="Exemption_ID" HeaderText="Exemption_ID" SortExpression="Exemption_ID" UniqueName="Exemption_ID" DataType="System.Int64" FilterControlAltText="Filter Exemption_ID column" Visible="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Dealer_ID" HeaderText="Dealer_ID" SortExpression="Dealer_ID" UniqueName="Dealer_ID" DataType="System.Int64" FilterControlAltText="Filter Dealer_ID column" Visible="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DealerCode" HeaderText="DealerCode" SortExpression="DealerCode" UniqueName="DealerCode" FilterControlAltText="Filter DealerCode column" Visible="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ServiceName" HeaderText="ServiceName" SortExpression="ServiceName" UniqueName="ServiceName" FilterControlAltText="Filter ServiceName column"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ServiceCode" HeaderText="ServiceCode" SortExpression="ServiceCode" UniqueName="ServiceCode" FilterControlAltText="Filter ServiceCode column"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ExemptionAmount_Annual" DataFormatString="{0:F3}" HeaderText="ExemptionAmount_Annual" SortExpression="ExemptionAmount_Annual" UniqueName="ExemptionAmount_Annual" DataType="System.Decimal" FilterControlAltText="Filter ExemptionAmount_Annual column"></telerik:GridBoundColumn>
                    <telerik:GridDateTimeColumn DataField="StartDate" HeaderText="StartDate" SortExpression="StartDate" ReadOnly="true" UniqueName="StartDate" DataType="System.DateTime" FilterControlAltText="Filter StartDate column" DataFormatString="{0:d}"></telerik:GridDateTimeColumn>
                    <telerik:GridDateTimeColumn DataField="EndDate" HeaderText="EndDate" SortExpression="EndDate" ReadOnly="true" UniqueName="EndDate" DataType="System.DateTime" FilterControlAltText="Filter EndDate column" DataFormatString="{0:d}"></telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn DataField="Comments" HeaderText="Comments" SortExpression="Comments" UniqueName="Comments" FilterControlAltText="Filter Comments column"></telerik:GridBoundColumn>
                    <telerik:GridButtonColumn ColumnGroupName="End" FilterControlAltText="Filter End column" CommandName="End" CommandArgument="End" UniqueName="End"></telerik:GridButtonColumn>
                    <telerik:GridEditCommandColumn UniqueName="GridEditCommandColumn" ColumnGroupName="GridEditCommandColumn"></telerik:GridEditCommandColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

Attila Antal
Telerik team
 answered on 04 Dec 2018
1 answer
165 views

I would like to duplicate the functionality show in this codepen: (https://codepen.io/joshnh/pen/vOxxQX?editors=110).  At 600px, it stacks the table header on the left side, and the data on the right side.  I have a RadGrid with over 20 columns, and to make this mobile-friendly I'd like to be able to create the same affect on a RadGrid.

This approach appears to be dependent on having data-labels on the <td>.  I see the grid headers are rendered as a th, but I don't see a way to have a data-label on the <td>.  Is there any way to make the UniqueName render as a data-label, or is there some other approach that can make RadGrids columns stackable with the header name on the left side?

Thank you.

Attila Antal
Telerik team
 answered on 04 Dec 2018
3 answers
391 views

I am using custom FileSystemContentProvider class for FileExplorer's ContentProviderTypeName configuration.

I am using HTTPHandler to download files on double click on Files .

When double Clicked it opens files to download but it also opens a RadWindow . is there way to stop the popup and get the files downloaded directly?

 

 

 

 

 

Vessy
Telerik team
 answered on 04 Dec 2018
1 answer
182 views

Hi Guys 

I am trying to make my existing (working ) xmldatasource radrotator to an sqldatasource version, but struggling to make the random image show up

Here is what I have; it seems like the string to pick up the image from the 'logos'  folder isn't right. What am I doing wrong?

<telerik:radrotator ID="RadRotatorLogo" runat="server" DataSourceID="SqlDataSourceSponsors" Width="365px" Height="230px" ItemWidth="350px" ItemHeight="230px " FrameDuration="8000" RotatorType="SlideShow" SlideShowAnimation-Type="fade" BackColor="#FFFFFF" ScrollDirection="Down" EnableRandomOrder="True" Skin="Simple">
                            <ItemTemplate>
                                <asp:Image ID="CustomerImage" runat="server" AlternateText=""

                              ImageUrl='<%# "~/images/logos/" & Eval("fileName") %>'    

                               ImageAlign="Middle"></asp:Image>
                            </ItemTemplate>
                            <SlideShowAnimation Duration="3000" Type="Fade" />
                        </telerik:radrotator>

            <asp:SqlDataSource ID="SqlDataSourceSponsors" runat="server" ConnectionString="<%$ ConnectionStrings:RotaryConnectionString %>" SelectCommand="SELECT [fileName] FROM [tblSponsors]"></asp:SqlDataSource>

 

thanks

Clive

 

Clive Hoggar
Top achievements
Rank 1
 answered on 03 Dec 2018
4 answers
339 views

For some reason when i click on map area in Chrome blue border shows up (see attached). Same true for grid as well.

Any recommendations?

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 03 Dec 2018
2 answers
149 views
I have it focus on the search bar after autopostback, but when it focuses, it sets the caret to the start of the textbox.  How do I get it to move it to the end instead?
Eyup
Telerik team
 answered on 03 Dec 2018
4 answers
535 views
I have the Radhtml chart  and I have included the legend tag in aspx file but legend is not showing up in RadHtmlChart. Any idea why it not showing the legend?
Abhijeet
Top achievements
Rank 1
 answered on 30 Nov 2018
3 answers
354 views

I have a radgrid I am trying to edit.  When It goes to edit mode all the columns are pushed to the left side of the row.  The edit portion displays correctly but the data row that is being edited has all the columns pushed to the left side of the grid.

Here is the code for the aspx page.  I will attach a before and after edit button is pushed as attached files.  I have tried column editors.  Tried adjusting them from code behind.  All the things I have found on the web to no avail.  I have spent way too much time trying to figure this out and the client is getting restless.  Any help would be appreciated.

<div id="divRadGrid">
                    <telerik:RadGrid
                        runat="server"
                        ID="rgLOIs"
                        DataSourceID="sdsLOIs"
                        ClientIDMode="Static"
                        ShowHeader="true"
                        width ="100%"
                        AllowAutomaticInserts="false"
                        AllowAutomaticDeletes="false"
                        AutoGenerateEditColumn="false"
                        AutoGenerateColumns="false"
                        EditItemStyle-CssClass="noPrint"
                        EditItemStyle-Width="20%"
                        EditRowStyle-Width="5%">
                        <ClientSettings Scrolling-UseStaticHeaders="true" Scrolling-AllowScroll="true"></ClientSettings>
                        <MasterTableView Width="100%" TableLayout="Fixed">
                            <EditFormSettings >
                                <FormStyle BackColor="#99ccff" />
                            </EditFormSettings>
                            <Columns>
                                <telerik:GridEditCommandColumn UniqueName="GridEditColumn"  ></telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn DataField="AuditLoiId" Display="false" ReadOnly="true" />
                                <telerik:GridBoundColumn DataField="LoiId" Display="false" ReadOnly="true"/>
                                <telerik:GridBoundColumn UniqueName="LoiCode" DataField="LoiCode" ReadOnly="true" ItemStyle-CssClass="maximize" HeaderStyle-Wrap="true"/>
                                <telerik:GridBoundColumn UniqueName="LoiText" DataField="LoiText" HeaderStyle-CssClass="form-control" ReadOnly="true" ColumnEditorID="GridTextBoxColumnEditor1" ItemStyle-CssClass="maximize" HeaderText="LOI"   HeaderStyle-Width="20%" HeaderStyle-Wrap="true"/>
                                <telerik:GridTemplateColumn UniqueName="CBResponse" HeaderText="Yes/No" ItemStyle-CssClass="maximize"  HeaderStyle-Width="5%">
                                    <ItemTemplate>
                                        <asp:RadioButtonList runat="server" ID="rblItemResponse" Width="100%" DataValueField="CBResponse" Value='<%# Eval("CBResponse") %>'>
                                            <asp:ListItem Text="Yes" Value="1"></asp:ListItem>
                                            <asp:ListItem Text ="No" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:RadioButtonList runat="server" ID="rblEditResponse" Width="100%" DataValueField="CBResponse" >
                                            <asp:ListItem Text="Yes" Value="1"></asp:ListItem>
                                            <asp:ListItem Text ="No" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn UniqueName="FacilityStatus"  ItemStyle-CssClass="maximize"  HeaderStyle-Width="15%"
                                    HeaderText="Status(Facility)">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEditFacilityStatus" runat="server" Width="100%" DataSourceID="sdsLoiStatus" DataTextField="LoiStatusText" DataValueField="LoiStatusId" SelectedValue='<%# Bind("FacilityStatus") %>'></asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddlItemFacilityStatus" runat="server" Width="100%" DataSourceID="sdsLoiStatus" DataTextField="LoiStatusText" DataValueField="LoiStatusId" SelectedValue='<%# Eval("FacilityStatus") %>'></asp:DropDownList>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn UniqueName ="FacilityComments" ItemStyle-CssClass="maximize" HeaderStyle-Width="20%" HeaderText="Facility Comments">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtEditFacilityComments" runat="server" Width="100%" Text='<%# Bind("FacilityComments") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtItemFacilityComments" runat="server" Width="100%" Text='<%# Eval("FacilityComments") %>'></asp:TextBox>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn UniqueName="AuditorStatus" ItemStyle-CssClass="maximize"   HeaderStyle-Width="15%"
                                    HeaderText="Status(Auditor)" DataField="AuditorStatus">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEditAuditorStatus" runat="server" Width="100%" DataSourceID="sdsLoiStatus" DataTextField="LoiStatusText" DataValueField="LoiStatusId" SelectedValue='<%# Bind("AuditorStatus") %>'></asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddlItemAuditorStatus" runat="server" Width="100%" DataSourceID="sdsLoiStatus" DataTextField="LoiStatusText" DataValueField="LoiStatusId" SelectedValue='<%# Eval("AuditorStatus") %>'></asp:DropDownList>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn UniqueName ="AuditorComments" ItemStyle-CssClass="maximize"  HeaderStyle-Width="20%" HeaderText="Facility Comments">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtEditAuditorComments" runat="server" Width="100%" Text='<%# Bind("AuditorComments") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtItemAuditorComments" runat="server" Width="100%" Text='<%# Eval("AuditorComments") %>'></asp:TextBox>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

 

Eyup
Telerik team
 answered on 29 Nov 2018
1 answer
161 views

I need to use client side data binding on a line or area based radar chart that has any number of points but may have 1 or more series. For example there may be 8 products shown as total sales for a year for a sales person. So the series is 'Sales year' and the points are the '8 Products'. Although I may be required to show the same data but on a per quarter basis. So each series would be 'Sales Year Q1', etc. and the points would still be the '8 Products'.

When going through the demos for client side data binding; there are no examples for this with Radar graphs. The example show a pie chart being populated this way but a series is already defined in the example. I need this to be dynamic as I may need more than one series. Although I tried with a single series I could set the DataFieldY but for the point name which I was looking for something like 'NameField' this does not exist under the radar line series.

I really need some help with this.

Marin Bratanov
Telerik team
 answered on 28 Nov 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?