Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
45 views
Hi Team,

we have issue in Radgrid while using EntityDataSource. I have six record in my grid and page size was 5. so i have 1 record in my second page. that grid display no record while deleting 6th record in 2nd page. but if have more than one record in last page it is working fine. but if i have one record in last page means it will return "no record". after refresh it shows the record. Please advice what we will do for this issue.


Thanks in Advance,
Dhamodharan.
Viktor Tachev
Telerik team
 answered on 21 Aug 2014
3 answers
110 views
Hi,

I am using Rad Dropdown list for the webpart in SharePoint 2010

I used the following thread to set the ajax for the gird and dropdownlist.

http://www.telerik.com/forums/telerik-rad-ajax-loading-panel-issue-in-sharepoint-2010

After setting this panel for grid works fine, however got some issues in the dropdown list.

In the dropdown list i have 2 values

Item 1
Item 2

Once i select any item for example item 2, i am not able to open the dropdown again. Its sticked to the same item 2.

 

let me know how to solve this issue









Platinum
Top achievements
Rank 1
 answered on 21 Aug 2014
1 answer
61 views
Working with the RadEditor Q2 2014  and would like to use the External Video Dialog to insert videos from YouTube.  We are running our editor on a site that uses SSL and even though I'm using an HTTPS link from YouTube, the dialog inserts the code referencing HTTP and causing the Iframe not to load.

Am I doing something wrong or is this a bug?
Niko
Telerik team
 answered on 21 Aug 2014
1 answer
131 views
Hi,

I have a problem that you can find also in this demo

http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx 

Scenario A)

I click on the ImageManager button-->Upload-->Select, I select a file a zip file of 50KB and I receive this message:
################################################################################
#Demo.zip                                                                                                                                                               #
#                                                                                                                                                                                #
#The size of the uploaded file exceed max size allowed-------------------------------------------------------------------#-->Not true
#The extension of the uploaded file is not valid. Please, provide a valid file!----------------------------------------#-->True (I should see only this message)
################################################################################

Scenario B)

I click on the ImageManager button-->Upload-->Select, I select a file a gif file of 300KB and I receive the same message:
################################################################################
#Demo.gif                                                                                                                                                                #
#                                                                                                                                                                                #
#The size of the uploaded file exceed max size allowed-------------------------------------------------------------------#-->True (I should see only this message)
#The extension of the uploaded file is not valid. Please, provide a valid file!----------------------------------------#-->Not True 
################################################################################

I saw I can set the EnableAsyncUpload property to "false" and in this way the validation of the extension and the format is done on the server and I get the only correct message, but I want to avoid the validation on the server side... I want to validate the format and the size before to send the file to the server.

How can I solve it ?

Thanks,
 Gianni,
Marin Bratanov
Telerik team
 answered on 21 Aug 2014
1 answer
298 views
Hi,

I am using Bootstrap Modal to show the popup form. I have created a page and rendering that page in the bootstrap modal. But when I click on the dropdown glyph of the combobox it does not open the popup for combobox and this is same with DatePicker and TimePicker.

Any help would be greatly appreciated.

Thanks,

Vinay

 
Nencho
Telerik team
 answered on 21 Aug 2014
1 answer
107 views
Hi,

I have a rad editor within a rad grid master table view item template whose toolbar and text area move down like the picture attached, I tried a few things to solve the problem, set the content area mode to Iframe and added the following to the head of the page:

​ <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<link href='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadEditor), "Telerik.Web.UI.Skins.Editor.css") %>'
rel="stylesheet" type="text/css" />
<link href='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadEditor), "Telerik.Web.UI.Skins.Simple.Editor.Black.css") %>'
rel="stylesheet" type="text/css" />
<link href='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadWindow), "Telerik.Web.UI.Skins.Window.css") %>'
rel="stylesheet" type="text/css" />
<link href='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadWindow), "Telerik.Web.UI.Skins.Simple.Window.Black.css") %>'
rel="stylesheet" type="text/css" />
</telerik:RadCodeBlock>


Like one of the forum post suggests but not luck. Please note that the rad grid does not have its header shown and that I use the ms-grid CSS to give the item template the layout desired, and the rad editor is within a rad ajax panel that is within a rad panel item, here is the rad grid aspx:

​ <telerik:RadGrid ID="PartsRadGrid" runat="server" ShowHeader="False" OnItemDataBound="PartsRadGrid_ItemDataBound"
OnItemCommand="PartsRadGrid_ItemCommand" BorderStyle="None" OnPreRender="PartsRadGrid_PreRender" EnableHierarchyExpandAll="true" OnItemCreated="PartsRadGrid_ItemCreated">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="id, part_statistic">
<AlternatingItemStyle BackColor="White" />
<NestedViewTemplate>
<telerik:RadGrid ID="PartsImagesRadGrid" runat="server" ShowHeader="false"
OnItemCommand="PartsImagesRadGrid_ItemCommand" OnItemDataBound="PartsImagesRadGrid_ItemDataBound"
OnItemCreated="PartsImagesRadGrid_ItemCreated">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="id">
<AlternatingItemStyle BackColor="White" />
<ItemTemplate>
<div id="part_images">
<div class="grid_long">
<div class="grid_left-left"></div>
<div class="colspan_left-right-right">
<telerik:RadBinaryImage ID="RadBinaryImage" runat="server" DataValue='<%# DataBinder.Eval(Container, "DataItem.image") %>' />
</div>
</div>
<div class="grid_long">
<div class="grid_left-left">
<label>Comments</label>
</div>
<div class="colspan_left-right-right">
<telerik:RadTextBox ID="CommentsImageRadTextBox" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.comments") %>'
TextMode="MultiLine" Width="300px">
</telerik:RadTextBox>
</div>
</div>
<div class="grid">
<div class="grid_left-left"></div>
<div class="colspan_left-right-right">
<asp:Button ID="EditPartsImageButton" runat="server" Text="Edit Picture" CommandName="EditPartImage" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.id") %>' />
<asp:Button ID="DeletePartsImageButton" runat="server" Text="Delete Picture" CommandName="DeletePartImage" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.id") %>' />
</div>
</div>
</div>
</ItemTemplate>
<NoRecordsTemplate></NoRecordsTemplate>
<Columns>
<telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="form_id" FilterControlAltText="Filter form_id column" HeaderText="form_id" SortExpression="form_id" UniqueName="form_id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="part_id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="comments" FilterControlAltText="Filter comments column" HeaderText="comments" SortExpression="comments" UniqueName="comments">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<asp:Panel ID="UploadPartsImagePanel" runat="server" CssClass="UploadPartImagesPanel">
<div id="part_images_upload">
<div class="grid_long">
<div class="grid_left-left">
<label>Add Image(s)</label>
</div>
<div class="colspan_left-right-right">
<telerik:RadAsyncUpload ID="UploadPartsImagesRadAsyncUpload" runat="server" MultipleFileSelection="Automatic"
AllowedFileExtensions="jpeg,.jpg,.png,.gif">
</telerik:RadAsyncUpload>
<div id="part_images_upload_control_button">
<asp:Button ID="UploadPartsImageButton" runat="server" Text="Upload" CommandName="UploadPartImage" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.id") %>' />
</div>
</div>
</div>
</div>
</asp:Panel>
</NestedViewTemplate>
<ItemTemplate>
<div id="parts">
<div class="grid">
<div class="grid_left-left">
<label>Part Number*</label>
</div>
<div class="grid_left">
<telerik:RadTextBox ID="part_itemRadTextBox" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.item") %>'></telerik:RadTextBox>
<asp:RequiredFieldValidator ID="part_itemRadTextBoxValidator" ValidationGroup="Save"
runat="server" Display="Static" ControlToValidate="part_itemRadTextBox" ForeColor="red" ErrorMessage="*"></asp:RequiredFieldValidator>
</div>
<div class="grid_middle-left">
<label>Description</label>
</div>
<div class="grid_middle-right">
<telerik:RadTextBox ID="PartDescriptionRadTextBox" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.description") %>'></telerik:RadTextBox>
</div>
<div class="grid_right">
<label>Part Hours</label>
</div>
<div class="grid_right-right">
<telerik:RadNumericTextBox ID="PartHoursRadNumericTextBox" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.part_hours") %>'
NumberFormat-DecimalDigits="0">
</telerik:RadNumericTextBox>
</div>
</div>
<div class="grid">
<div class="grid_left-left">
<label>Quantity</label>
</div>
<div class="grid_left">
<telerik:RadNumericTextBox ID="PartQuantityRadNumericTextBox" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.quantity") %>'
NumberFormat-DecimalDigits="0">
</telerik:RadNumericTextBox>
</div>
<div class="grid_middle-left">
<label>Serial Number</label>
</div>
<div class="grid_middle-right">
<telerik:RadTextBox ID="PartSerialNumberRadTextBox" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.serial_number") %>'></telerik:RadTextBox>
</div>
<div class="grid_right">
<label>Position</label>
</div>
<div class="grid_right-right">
<telerik:RadNumericTextBox ID="PositionRadNumericTextBox" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.position") %>'
NumberFormat-DecimalDigits="0">
</telerik:RadNumericTextBox>
</div>
</div>
<div class="grid">
<div class="grid_left-left">
<label>Statistic</label>
</div>
<div class="grid_left">
<telerik:RadDropDownList ID="PartStatisticDropDownList" OnDataBinding="PartStatisticDropDownList_DataBinding"
runat="server" DefaultMessage="Select Part Statistic" SelectedValue='<%# DataBinder.Eval(Container, "DataItem.part_statistic") %>'>
</telerik:RadDropDownList>
</div>
<div class="grid_middle-left">
<label>Reusable</label>
</div>
<div class="grid_middle-right">
<asp:CheckBox ID="ReusableCheckBox" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.reusable") %>' />
</div>
<div class="grid_right"></div>
<div class="grid_right-right"></div>
</div>
<div class="grid_long">
<div class="grid_left-left">
<label>Comments</label>
</div>
<div class="colspan_left-right-right">
<div id="parts_comment">
<%--This rad editor causes problems--%>
<telerik:RadEditor ID="PartsCommentRadEditor" runat="server" Content='<%# DataBinder.Eval(Container, "DataItem.comments") %>'
Width="100%" Height="100px" BorderStyle="Solid" BorderColor="Gray" BorderWidth="1" EditModes="Design" ContentAreaMode="Iframe">
<CssFiles>
<telerik:EditorCssFile Value="Styles/RadEditor.css" />
</CssFiles>
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Cut" />
<telerik:EditorTool Name="Copy" />
<telerik:EditorTool Name="Paste" />
<telerik:EditorTool Name="SpellCheck" />
</telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>
</div>
</div>
</div>
<div class="grid">
<div class="grid_left-left"></div>
<div class="colspan_left-right-right">
<asp:Button ID="DeletePartButton" runat="server" Text="Delete Part" CommandName="Delete" />
</div>
</div>
</div>
</ItemTemplate>
<NoRecordsTemplate>
</NoRecordsTemplate>
<Columns>
<telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="form_id" FilterControlAltText="Filter form_id column" HeaderText="form_id" SortExpression="form_id" UniqueName="form_id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="item" FilterControlAltText="Filter item column" HeaderText="item" SortExpression="item" UniqueName="item">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="description" FilterControlAltText="Filter description column" HeaderText="description" SortExpression="description" UniqueName="description">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="part_hours" FilterControlAltText="Filter part_hours column" HeaderText="part_hours" SortExpression="part_hours" UniqueName="part_hours">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="comments" FilterControlAltText="Filter comments column" HeaderText="comments" SortExpression="comments" UniqueName="comments">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="position" DataType="System.Int32" FilterControlAltText="Filter position column" HeaderText="position" SortExpression="position" UniqueName="position">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="serial_number" FilterControlAltText="Filter serial_number column" HeaderText="serial_number" SortExpression="serial_number" UniqueName="serial_number">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>

Any ideas on what could be causing the problem? or more importantly do you have any ideas on how to solve it?

Thanks,
Germán


Niko
Telerik team
 answered on 21 Aug 2014
3 answers
712 views
Client side Validators ( for example CustomValidator)  work differently in ASP.Net 4.5.
Microsoft calls it Unobtrusive Validation Mode, and they are using jusing jQuery (2.0) for this.
Telerik Controls 2013 Q1 SP2 alre also using using jQuery ( but still version 1.9)

The problem is when using scriptmanager, or RadScriptmanager, after loading the telerik jQuery libraries, client side validators do not work any more. This took me some hours, looking at all kind of possible solutions, but finally the most simple solution is disabling the new functionality by adding a setting in Web.config

<appSettings>
 ...

 <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>

</appSettings>


So since jQuery looks to be standard in asp.net 4.5 , it would be a good thing if Telerik would use the same libraries.

Luc
Slav
Telerik team
 answered on 21 Aug 2014
1 answer
49 views
Here is my grid, When i removed the template button the grid functions well, but when the template button is included the grid does not load well and the ui is somewhat destroyed, all the data appears in a chained string inside a box when the template button is in place:

<telerik:RadGrid OnItemCreated="gvClients_ItemCreated" runat="server" ID="gvClients" ClientSettings-EnablePostBackOnRowClick="true" CellSpacing="0" GridLines="None" Skin="Glow" DataSourceID="SqlDataSource1" AllowPaging="True" AllowSorting="True" OnSelectedIndexChanged="gvClients_SelectedIndexChanged" OnDataBound="gvClients_DataBound" AutoGenerateColumns="False">
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView DataKeyNames="id" DataSourceID="SqlDataSource1" HierarchyLoadMode="Client">
        <Columns>
            <telerik:GridBoundColumn DataField="seniorId" DataType="System.Int32" FilterControlAltText="Filter seniorId column" HeaderText="seniorId" SortExpression="seniorId" UniqueName="seniorId" Visible="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="תעדות זהות" ReadOnly="True" SortExpression="id" UniqueName="id">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="password" FilterControlAltText="Filter password column" HeaderText="סיסמא" SortExpression="password" UniqueName="password">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="fName" FilterControlAltText="Filter fName column" HeaderText="שם פרטי" SortExpression="fName" UniqueName="fName">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="lName" FilterControlAltText="Filter lName column" HeaderText="שם משפחה" SortExpression="lName" UniqueName="lName">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="mPhone" FilterControlAltText="Filter mPhone column" HeaderText="מספר טלפון" SortExpression="mPhone" UniqueName="mPhone">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="address" FilterControlAltText="Filter address column" HeaderText="כתובת" SortExpression="address" UniqueName="address">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="sc" DataType="System.Byte" FilterControlAltText="Filter sc column" HeaderText="sc" SortExpression="sc" UniqueName="sc" Visible="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="email" FilterControlAltText="Filter email column" HeaderText="אימייל" SortExpression="email" UniqueName="email">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="dateJoined" DataFormatString="{0:HH:mm dd-MM-yyyy}" DataType="System.DateTime" FilterControlAltText="Filter dateJoined column" HeaderText="תאריך הצטרפות" SortExpression="dateJoined" UniqueName="dateJoined">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="contract" FilterControlAltText="Filter contract column" HeaderText="קובץ חוזה" SortExpression="contract" UniqueName="contract">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="הורד קובץ" UniqueName="downloadbutton">
                <ItemTemplate>
                    <telerik:RadButton ID="btnDownload" runat="server" Skin="Glow" Text="הורד קובץ" CommandArgument="<%#Container.ItemIndex %>" OnCommand="btnDownload_Command">
                    </telerik:RadButton>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
        <PagerStyle AlwaysVisible="True" />
    </MasterTableView>
</telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 21 Aug 2014
3 answers
288 views
Hi,
      I need to find the RadEditor cursor position to place some text from another screen,i have tried to find the cursor position at the end of the each line but i can't able to find the cursor position between the words,please refer the images to analyse.

Thanks & Regards,
      Dinakaran
Nikolay
Telerik team
 answered on 21 Aug 2014
7 answers
437 views
We have a page that uses a RadChart, and it works fine so long as we have the site's web.config populated with two separate handlers as detailed in the IIS7 and IIS5/6/7 sections here.

To summarize, it says to put this in in the system.webserver/handlers section for IIS7:
<add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />

And to put this in the system.web/httphandlers section for IIS6:
<add verb="*"path="ChartImage.axd"type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

We have added these sections and the control works fine.

The problem is that removing either of these config blocks causes the RadChart to break.  We are running in IIS7 integrated mode.  Only the handler in the system.webserver/handlers section should matter, but that is not the case.

If we remove just the httphandler from the system.web IIS6 section, the RadChart renders with this message:

The Chart http handler is not registered. Please, manually add the following line to your Web.config httpHandlers section:
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

If we remove just the handler from the system.webserver IIS7 section, we get a javascript pop window that says "Error loading RadChart image."

I don't understand how it is using both handlers.  It should be using either the system.webserver IIS7 integrated mode handler or the system.web IIS6/non-integrated httphandler.  In our case, since we are running IIS7 integrated, we should only have to specify the one handler.

Furthermore, we are using the Rad HTML editor control which requires the DialogHandler and the SpellCheckHandler, and it works totally fine when we specify the handlers in only the system.webserver IIS7 section.  What is different about RadChart?

Thank you.


Marin Bratanov
Telerik team
 answered on 21 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?