Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
344 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
134 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
804 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
83 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
329 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
508 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
4 answers
229 views
Hi Telerik Team,
                         We are currently facing issue when exporting data to excel from Rad grid.
When we are trying to export only data the button and template coloumns are not exported. If we are trying to export setting ExportOnlyData=false. Some image are not exported and some unwanted grey blocks are appearing and also some javascript error messages are appearing when user tries to click on any headers or link coloumns.

Please suggest us what can be done to export all the data that is displayed in the grid without any unwanted grey buttons and javascript errors.

Note: We are almost done with our application and we are having 100+ radgrids so we need of a approach which does not create rework of all which we had done till now.

Attached the screenshots of exported excel files.
As i am unable to upload code here. I had uploaded it to my skydrive.
https://skydrive.live.com/redir.aspx?cid=0a806b2ac61695d9&resid=A806B2AC61695D9!1218

Thanks & Regards
Leela Prasad
Elitsa
Top achievements
Rank 1
 answered on 21 Aug 2014
1 answer
110 views
Hi there,

I have updated my telerik version and I have started using the latest version of Gantt Chart. I want to make something a bit different and I wonder whether possible or not.
If we look at the xml file structure of the one is provided in the folder of telerik that has got such as :
<Task>
      <ID>1</ID>
      <ParentID />
      <Start>2014-05-05T08:00:00Z</Start>
      <End>2014-05-11T20:00:00Z</End>
      <Title>Defining selection criteria</Title>
      <PercentComplete>0</PercentComplete>
      <Summary>false</Summary>
      <Expanded>true</Expanded>
      <OrderID>0</OrderID>
</Task>

It is basically one item on the left hand side of listing on the gantt chart. 
So I want to list names on the left list ( where we can see ID, Title, Start, End) and have multiple items on the right hand side related to the dates and times which is referring one item on the left hand side. 
Another example: I want to see my task during this week based on the date or during today based on the time and I've got my name on the left list without expanding the list on the left. Is that possible with this control ? thank you

Btw, I am talking about the following control :

http://demos.telerik.com/aspnet-ajax/gantt/examples/overview/defaultcs.aspx
Bozhidar
Telerik team
 answered on 21 Aug 2014
1 answer
181 views
Hi,
I am new to rad dropdown tree. I want to show data from database based on selection in Rad dropdown tree.
All I want that when a child node is selected it should show data based on that node selection (This scenario is working fine) but when a parent node is selected it is not showing data based on all its child nodes.

Please note that each item in Rad Drop Down Tree have a unique product_type_id  and on bases of product_type_id  I am executing query to show result.


Thanks
Princy
Top achievements
Rank 2
 answered on 21 Aug 2014
5 answers
159 views
I noticed a bug with the RadTreeView; configuration below. When all items are disabled, if you then focus the RadTreeView and then press Enter, it will throw an error of "Line: 8887 Error: Unable to get property 'set_selected' of undefined or null reference" in Telerik.Web.UI.WebResource.axd.

It appears to be trying to set selected but since all items are disabled, this error is I tried to put the OnClientKeyPressing to a javascript function that is just { return false;} but that does not stop the error from occurring.

How can I get around/supress this error?

<telerik:RadTreeView ID="foo" runat="server" CheckBoxes="False" CheckChildNodes="False" MultipleSelect="True"
    ShowLineImages="True" EnableDragAndDrop="False" BorderColor="#336699" BorderStyle="Solid" BorderWidth="1px"
    height="410px">
</telerik:RadTreeView>
Hristo Valyavicharski
Telerik team
 answered on 21 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?