Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
90 views
I am able to start new topics in the forums, but I am unable to post replies to existing posts. I'm logged in when I go to the forums. I see the button at the top of the original post that shows "Post Reply", and I see the button under each thread showing "Reply". When I click either of them, the page reloads, brings me to the top of the post. When I scroll to the bottom, I expect to see the entry area for entering my reply, but it's not there. There is no means for me to reply. The reply buttons are gone also, so at that point I can't do anything!
Kristina
Telerik team
 answered on 27 Aug 2014
5 answers
400 views
Hello to everyone

I would like to have the ImageEditor starting with the preselection of pencil command so the user can immediately start drawing with the pencil on the surface of the canvas.
Is there a way to do it?

In the same ImageEditor when the user is using the pencil i would also like not to show the the pencil dialog box. Is it possible?

Cheers
Mauro
Vessy
Telerik team
 answered on 27 Aug 2014
1 answer
167 views
Hi,

I am stuck with the following:

I have a RadMenu which databinds on level 1.
After that I want to create ContentTemplates for each item and add controls in them.

All goes well with InstantiateIn the ItemTemplate, but with the ContentTemplate I am not getting it to work.

Any help appreciated.

Marc
Dimitar Terziev
Telerik team
 answered on 27 Aug 2014
1 answer
62 views
Hi everybody,

I have a strange issue occuring only with IE8 (and I need to be compatible with this old navigator) :
Sometimes all caracters of the strings of my tabstrip are replaced by squares, something like "undefined caracters". And the right caracters are displayed when the mouse come over the strings (and string by string).

Has anybody have an idea to avoid this comportement ?

Thanks,
Corentin
Shinu
Top achievements
Rank 2
 answered on 27 Aug 2014
14 answers
302 views
In my grid there are more than two columns, i entered text in first column filter and then clicked tab key, the cursor going to next column filter but not allowing to write the text. In my grid columns the property AutoPostBackOnFilter is set to "True".

If there is any possible solution please suggest

Thanks,
Padmasinh Babar
Radoslav
Telerik team
 answered on 27 Aug 2014
3 answers
113 views
Hi All,

I have used Radgrid in my application. when i am open my app in Chrome or firefox there is no prob on design. But in IE10 , the background color of the vertical scroll bar will be in Black color. how to remove that color from scroll bar. Here with i have attached the sample for that. In that image i have to remove the black color.
Shinu
Top achievements
Rank 2
 answered on 27 Aug 2014
9 answers
156 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
Bozhidar
Telerik team
 answered on 27 Aug 2014
1 answer
237 views


Hello,

 

I have a new situation with radgrids.



The columns are auto generating fine, I actually have two grids on one page.

 

I’m NOT using hardcoded columns in the ASP page.

 

I need to know how to change the widths of the columns in
the C# code behind ideally, if not through javascript.

 

 

Here the ASP code that generates the two columns, which work
fine except for not having control over the width.

 

Also, a lot is commented out.  This code was commented
out due to both incompatibles with our master page and due to redundancies
between the autogenerated code of the two grids.

 

I can switch to bound columns if necessary.  However I
would prefer not to because with this method I can control everything by
programming in Sql Server and then do minimal work in C# / ASP to make the
grid.  However if I must, I’ll accept that as a solution.

 

 

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Main.Master" AutoEventWireup="true"

   
CodeBehind="Default.aspx.cs" Inherits="SludgeBilling.Pages.Default" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html
xmlns="http://www.w3.org/1999/xhtml">

<head
runat="server">

   
<title></title>

   
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1"
runat="server" />

</head>

<body>

   
<form id="form1" runat="server">

       
<telerik:RadScriptManager ID="RadScriptManager1"
runat="server">

           
<Scripts>

               
<asp:ScriptReference Assembly="Telerik.Web.UI"
Name="Telerik.Web.UI.Common.Core.js" />

               
<asp:ScriptReference Assembly="Telerik.Web.UI"
Name="Telerik.Web.UI.Common.jQuery.js" />

               
<asp:ScriptReference Assembly="Telerik.Web.UI"
Name="Telerik.Web.UI.Common.jQueryInclude.js" />

           
</Scripts>

        </telerik:RadScriptManager>

       
<script type="text/javascript">

           
//Put your JavaScript code here.

       
</script> --%>

 

       
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>

<asp:content id="Content2" contentplaceholderid="cphCenter" runat="server">

   
<telerik:RadCodeBlock runat="server" ID="RadCodeBlock1">

       
<script type="text/javascript">

 

           
function
OnClientClose(sender, eventArgs) {

 

 

               
if
(eventArgs.get_argument() == 'true')

                   
$find("<%= RadAjaxManager.GetCurrent(Page).ClientID
%>").ajaxRequest("Reload");

 

               
else

                   
return;

           
}

           
</script>

        
</telerik:RadCodeBlock>

    
<%--  
<telerik:RadAjaxManager ID="RadAjaxManager1"
runat="server">

           
<ClientEvents OnRequestStart="RadAjaxManager1_RequestStart" />

           
<AjaxSettings>

               
<telerik:AjaxSetting AjaxControlID="RadGrid1">

                   
<UpdatedControls>

                       
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

                   
</UpdatedControls>

               
</telerik:AjaxSetting>

           
</AjaxSettings>

       
</telerik:RadAjaxManager> --%>

       
<div>

    
<%--      
<telerik:RadScriptBlock ID="RadScriptBlock1"
runat="server">

               
<script type="text/javascript">

                   
function gridExport() {

                       
$find("<%= RadGrid1.ClientID
%>").get_masterTableView().exportToExcel();

                   
return false;

               
}

               
function RadAjaxManager1_RequestStart(sender, args) {

                   
if (args.get_eventTarget() == "<%= RadGrid1.ClientID %>")

                       
args.set_enableAjax(false);

               
}

               
</script>

           
</telerik:RadScriptBlock>

            

            <asp:Button
OnClientClick="return gridExport()" ID="Button1"
runat="server" Text="Export To Excel" /> --%>

 

           
<asp:SqlDataSource SelectCommand="select sum([Manifest].[Gallons]) as 'DailyTotal' ,
'<a href=&quot;Pages/Generator/GeneratorDetail.aspx?Id=' +
CONVERT(varchar(36),[Generator].[Id]) + '&quot;><u>' +
[Generator].[Description] + '</u></a>' as Generator ,
[Generator].[SignificantUser] FROM [SludgeBillingSystem].[dbo].[Manifest] inner
join [SludgeBillingSystem].[dbo].[Generator] on [Manifest].[GeneratorId] =
[Generator].[Id] where [Manifest].[DeliveryDate] = cast(convert(varchar(10),
getdate(), 110) as datetime) group by [Generator].[Id],Generator.[Description],
[Generator].[SignificantUser] having sum([Manifest].[Gallons]) >= (SELECT
Convert(Int,REPLACE([AppConfiguration].[Value], ',', '')) as Value FROM
[SludgeBillingSystem].[dbo].[AppConfiguration] where Id =
'9208BD92-2777-400C-8E3E-ED2C791CB13C')" ConnectionString="<%$
ConnectionStrings:SludgeBillingSystem %>" ProviderName="System.Data.SqlClient" ID="DataSource1" runat="server"></asp:SqlDataSource>

 

           
<telerik:RadGrid DataSourceID="DataSource1" ID="RadGrid1" runat="server" Skin="Windows7">

               
<ExportSettings ExportOnlyData="False" FileName="ExportedRadGrid" OpenInNewWindow="False" IgnorePaging="False" />

   
        </telerik:RadGrid>

       
</div>

   
<%--</asp:content>

         
<telerik:RadScriptManager ID="RadScriptManager2"
runat="server">

           
<Scripts>

               
<asp:ScriptReference Assembly="Telerik.Web.UI"
Name="Telerik.Web.UI.Common.Core.js" />

               
<asp:ScriptReference Assembly="Telerik.Web.UI"
Name="Telerik.Web.UI.Common.jQuery.js" />

               
<asp:ScriptReference Assembly="Telerik.Web.UI"
Name="Telerik.Web.UI.Common.jQueryInclude.js" />

           
</Scripts>

        </telerik:RadScriptManager>


        <script
type="text/javascript">

           
//Put your JavaScript code here.

       
</script>

       
<telerik:RadAjaxManager ID="RadAjaxManager2"
runat="server">

           
<ClientEvents OnRequestStart="RadAjaxManager1_RequestStart" />

           
<AjaxSettings>

               
<telerik:AjaxSetting AjaxControlID="RadGrid1">

                   
<UpdatedControls>

           
            <telerik:AjaxUpdatedControl
ControlID="RadGrid1" />

                   
</UpdatedControls>

               
</telerik:AjaxSetting>

           
</AjaxSettings>

       
</telerik:RadAjaxManager> --%>

       
<div>

   
<%--       
<telerik:RadScriptBlock ID="RadScriptBlock2"
runat="server">

               
<script type="text/javascript">

                   
function gridExport() {

                       
$find("<%= RadGrid1.ClientID
%>").get_masterTableView().exportToExcel();

                   
return false;

               
}

               
function RadAjaxManager1_RequestStart(sender, args) {

                   
if (args.get_eventTarget() == "<%= RadGrid1.ClientID %>")

                       
args.set_enableAjax(false);

               
}

               
</script>

           
</telerik:RadScriptBlock>

           
<asp:Button OnClientClick="return gridExport()"
ID="Button2" runat="server" Text="Export To
Excel" /> --%>

 

           
<asp:SqlDataSource SelectCommand="select sum([Manifest].[Gallons]) /
count(distinct([Manifest].[DeliveryDate])) as MonthAvg , '<a
href=&quot;Pages/Generator/GeneratorDetail.aspx?Id=' +
CONVERT(varchar(36),[Generator].[Id]) + '&quot;><u>' +
[Generator].[Description] + '</u></a>' as Generator ,
[Generator].[SignificantUser] FROM [SludgeBillingSystem].[dbo].[Manifest] inner
join [SludgeBillingSystem].[dbo].[Generator] on [Manifest].[GeneratorId] =
[Generator].[Id] where [Manifest].[DeliveryDate] >= DATEADD(mm, DATEDIFF(mm,
0, GETDATE()), 0) and [Manifest].[DeliveryDate] <= DATEADD (dd, -1,
DATEADD(mm, DATEDIFF(mm, 0, GETDATE()) + 1, 0)) group by [Generator].[Id],Generator.[Description],
[Generator].[SignificantUser] having sum([Manifest].[Gallons]) /
count(distinct([Manifest].[DeliveryDate])) >= (SELECT
Convert(Int,REPLACE([AppConfiguration].[Value], ',', '')) as Value FROM
[SludgeBillingSystem].[dbo].[AppConfiguration] where Id =
'9208BD92-2777-400C-8E3E-ED2C791CB13E')" ConnectionString="<%$
ConnectionStrings:SludgeBillingSystem %>" ProviderName="System.Data.SqlClient" ID="DataSource2" runat="server"></asp:SqlDataSource>

 

           
<telerik:RadGrid DataSourceID="DataSource2" ID="RadGrid2" runat="server" Skin="Windows7">

               
<ExportSettings ExportOnlyData="False" FileName="ExportedRadGrid" OpenInNewWindow="False" IgnorePaging="False" />

           
</telerik:RadGrid>

       
</div>

   
</asp:content>

<%--   </form>

</body>

</html>
--%>

 

 

 

Princy
Top achievements
Rank 2
 answered on 27 Aug 2014
1 answer
181 views
I am not able to get whether RadButton - Radio has been "checked or not" at the client-side
My Telerik HTML code is

<Telerik:RadButton ID="rbFixed" runat="server" ButtonType="ToggleButton" ToggleType="Radio"
GroupName="rbGrpFixedOrVariable" Checked="true" Text="Fixed" CssClass="standard_radio">
<Telerik:RadButton ID="rbVariable" runat="server" ButtonType="ToggleButton" ToggleType="Radio"
GroupName="rbGrpFixedOrVariable" Checked="false" Text="Variable" CssClass="standard_radio">
 
I am trying to access the same in my Javascript as

document.getElementById('<%= rbFixed.ClientID %>').get_checked () - Didn't work

document.getElementById('<%= rbFixed.ClientID %>').checked - Didn't work

$('#<%= rbFixed.ClientID %>').get_checked () - Didn't work

$find('#<%= rbFixed.ClientID %>').get_checked () - Didn't work

Any pointers would help a lot.

Thanks in Advance,
Vijai
Princy
Top achievements
Rank 2
 answered on 27 Aug 2014
10 answers
592 views
Hey guys,

I am in a situation where I need to close my RadDropDownLists on mouseleave.
The dropdowns are on my UserControl.ascx page along with some comboboxes.

I have referred your code for RadComboboxes and it works really fine. It closes the comboboxes on mouseleave. But when I call the same javascipt function for the DropDownLists on OnClientLoad it doesn't work.

Following is the code which I have referred:
<telerik:RadComboBox runat="server" ID="lstFoodStorage" OnClientLoad="onLoad">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="FoodStorage" />
        <telerik:RadComboBoxItem runat="server" Text="Freezer" />
        <telerik:RadComboBoxItem runat="server" Text="Fridge" />
        <telerik:RadComboBoxItem runat="server" Text="Microwave" />
        <telerik:RadComboBoxItem runat="server" Text="OnTheGo" />
        <telerik:RadComboBoxItem CssClass="rcbitemlast" runat="server" Text="Pantry" />
    </Items>
</telerik:RadComboBox>
<script type="text/javascript" language="javascript">
    function onLoad(sender) {
        var div = sender.get_element();
 
        $telerik.$(div).bind('mouseenter', function () {
            if (!sender.get_dropDownVisible())
                sender.showDropDown();
        });
 
 
        $telerik.$(".RadComboBoxDropDown").mouseleave(function (e) {
            hideDropDown("#" + sender.get_id(), sender, e);
        });
 
 
        $telerik.$(div).mouseleave(function (e) {
            hideDropDown(".RadComboBoxDropDown", sender, e);
        });
 
    }
 
    function hideDropDown(selector, combo, e) {
        var tgt = e.relatedTarget;
        var parent = $telerik.$(selector)[0];
        var parents = $telerik.$(tgt).parents(selector);
 
        if (tgt != parent && parents.length == 0) {
            if (combo.get_dropDownVisible())
                combo.hideDropDown();
        }
    }
</script>

The selector in $telerik.$(".RadComboBoxDropDown") does not recognize the RadDropDownLists. It is only for ComboBoxes.
I need to achieve the same thing for my dropdownlists as well.

Following is the code for my dropdownlist:

<telerik:RadDropDownList ID="RadDropDownAreaList" Visible="true" runat="server" Width="300px"
DropDownHeight="200px">

</
telerik:RadDropDownList>
<asp:CompareValidator runat="server" ID="Comparevalidator1" ValueToCompare="- Select -"
Operator="NotEqual" ControlToValidate="RadDropDownAreaList" ErrorMessage="Required"                                       
ValidationGroup="e" />

Shinu
Top achievements
Rank 2
 answered on 27 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?