Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
113 views
This was driving me nuts.  I have a child node several levels down in the tree that sometimes has no context menu on it.  It's about the only one that does.

When it didn't have a menu defined, well, it still had a menu.  I couldn't get rid of it even setting the ContextMenuID to an empty string.

I finally determined I could prevent that by setting it to something other than "", but that didn't corrrespond to an actual menu.  It appears that it was inheriting the menu of the root node since that's the only one that used that particular menu.

Easy to remedy, but extremely frustrating for a little while. 
Plamen
Telerik team
 answered on 07 Oct 2011
1 answer
123 views
Hi

I just updated to the latest version (2011.2 915) and now I have extra whitespace in my grids in Internet Explorer 9. Firefox is fine. How do I fix this?

Cheers,
Jeremy

Edit: The telerik demos look fine in ie9, so not sure whats going on.

Edit2: Found the reason - someone else had added the following line to the masterpage for testing :P
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

So the real question is how do I fix this for display in ie7?
Pavlina
Telerik team
 answered on 07 Oct 2011
3 answers
119 views
Hi -

Im trying to edit the black menu skin in the Visual Style Builder, but it wont create skin.
Error: Failed to create skin!.

Other skins works perfect, but not the black. Any idea?

Also, is it possible to adjust the height of a horizontal root menu ?

Kind r

Bjørn.
Kate
Telerik team
 answered on 07 Oct 2011
1 answer
104 views
All,

    In certain cases I'll have a WEB Method that will send HTML down to the Client.  For example:
[WebMethod]
public static string EmitHtml(string Msg) {
    return "<div style=\"height:100px; width:100px; background-color: #808000;\">\" TEST \"</div><br/>";
}

Then on the Client in my JavaScript I'll either use jQuery or straight JavaScript to do something like this:
function onGotHtml(Html) {
    $get('divContainer').innerHTML = Html;
}


My question is:  Can I do something similar with the Telerik controls?  Or is this approach soley limited to simple HTML controls?
Stuart Hemming
Top achievements
Rank 2
 answered on 07 Oct 2011
2 answers
113 views
i have a data grid with a template column for date.
data field having both date and time as the data source. while displaying it formatted only to display date.
the data and time format differs with the language format.

 <telerik:GridTemplateColumn DataField="RegDate" FilterControlWidth="30"  HeaderStyle-Width="30" SortExpression="RegDate" AllowFiltering="true" ItemStyle-HorizontalAlign="Left" UniqueName="lblRegDate">
                 <ItemTemplate >
                  <div class="column-80" style="text-align:left;width:56px;float:left"><%#string.Format("{0:d}", Convert.ToDateTime(Eval("RegDate"))) %></div>
                 </ItemTemplate>
                </telerik:GridTemplateColumn>

when filters applied its not filtering by formatted date.
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Oct 2011
1 answer
63 views
Hi!

I am using nested gridview in my project..it is working fine.. but i want the grid to be expanded always. how can i do this?
thanks in advance..


regards,
geetha
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Oct 2011
1 answer
67 views
i need help on an isue..
wen i click on edit btn of the rad grid a postback occurs and an empty grid is displayed..
this happen only in case of mozilla firefox..
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Oct 2011
1 answer
159 views
My issue is somewhat the same as Paul's here:
http://www.telerik.com/community/forums/aspnet-ajax/scheduler/server-side-control-over-functionality.aspx

But my question is simpler. I have no datasource at all. All i want to do ATM is:
On a click on a normal asp button on the page, i want an appointment label inserted into the scheduler, say from 12:00 to 13:00 on the current day. And i want to do it from codebehind. Thats all. Anyone?
Jostein
Top achievements
Rank 1
 answered on 07 Oct 2011
1 answer
179 views
Greetings,

i've been trying to use RadScheduler for a few hours and i have already a problem.
Got this error "Both DataSource and DataSourceID are defined on 'RadScheduler".

I don't understand why since i haven't defined a datasource anywhere. Just DataSourceID trying to set a DataSource.
All my code was so far generated automatically


This is what i have:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadSchedulerWebForm.aspx.cs" Inherits="RadSchedulerWebForm" %>

<%@ Register src="RadSchedulerWebFormAdvancedForm.ascx" tagname="AdvancedForm" tagprefix="uc1" %>

<!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>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <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 Java Script code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Forest">
    </telerik:RadSkinManager>
    <div>
        <telerik:RadScheduler runat="server" ID="RadScheduler1"
            Width="750px"
            OnAppointmentInsert="RadScheduler1_AppointmentInsert"
            OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
            OnAppointmentDelete="RadScheduler1_AppointmentDelete"
            DataKeyField="idRDV" DataSubjectField="objet" DataStartField="debut" DataEndField="duree"
            DataRecurrenceField="objet" DataRecurrenceParentKeyField="objet"
            StartInsertingInAdvancedForm="True" DataDescriptionField="description"
            DataSourceID="SqlDataSource1">

            <AdvancedEditTemplate>
            <uc1:AdvancedForm    runat="server" ID="AdvancedEditForm"
                                        Subject='<%# Bind("Subject") %>'
                                        Start='<%# Bind("Start") %>'
                                        End='<%# Bind("End") %>'/>
               <div style="text-align: right">
                    <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update"/>
                    <asp:Button ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"/>
               </div>
            </AdvancedEditTemplate>
            <AdvancedInsertTemplate>
            <uc1:AdvancedForm    runat="server" ID="AdvancedInsertForm"
                                        Subject='<%# Bind("Subject") %>'
                                        Start='<%# Bind("Start") %>'
                                        End='<%# Bind("End") %>'/>
                <div style="text-align: right">
                    <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert"/>
                    <asp:Button ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"/>
                </div>
            </AdvancedInsertTemplate>
    </telerik:RadScheduler>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:IntranetConnectionString %>"
            SelectCommand="SELECT [objet], [debut], [duree], [heure], [description], [lieu], [idRDV] FROM [rendezvous]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>




thank you in advance for you help
Plamen
Telerik team
 answered on 07 Oct 2011
3 answers
96 views
Took the following sample code:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultvb.aspx

And adapted it to mysql and my dB, can get grids one and two working as they should but grid 3 will not show any data. what am i doing wrong?
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
 
 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ajaxsettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid3" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid3" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid3">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid3" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </ajaxsettings>
    </telerik:RadAjaxManager>
     
    <strong>States:</strong>
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true"
        PageSize="5" DataSourceID="SqlDataSource1" GridLines="None" width="95%">
        <clientsettings allowkeyboardnavigation="true" enablepostbackonrowclick="true">
            <Selecting AllowRowSelect="true" />
        </clientsettings>
        <mastertableview datakeynames="State" />
        <pagerstyle mode="NextPrevAndNumeric" />
    </telerik:RadGrid><br /><br />
     
    <strong>Companies:</strong>
    <telerik:RadGrid ID="RadGrid2" ShowStatusBar="true" runat="server"
        AllowPaging="True" PageSize="5" DataSourceID="SqlDataSource2" GridLines="None"
        width="95%" HorizontalAlign="NotSet">
        <mastertableview width="100%" datakeynames="State"
            datasourceid="SqlDataSource2">
        </mastertableview>
         <clientsettings allowkeyboardnavigation="true" enablepostbackonrowclick="true">
            <Selecting AllowRowSelect="true" />
        </clientsettings>
        <pagerstyle mode="NextPrevAndNumeric" />
    </telerik:RadGrid><br /><br />
     
    <strong>Records:</strong>
    <telerik:RadGrid ID="RadGrid3" ShowStatusBar="true" runat="server"
        AllowPaging="True" PageSize="5" DataSourceID="SqlDataSource3" GridLines="None"
        width="95%" HorizontalAlign="NotSet">
        <mastertableview width="100%"
            datasourceid="SqlDataSource3">
        </mastertableview>
         <clientsettings allowkeyboardnavigation="true" enablepostbackonrowclick="true">
            <Selecting AllowRowSelect="true" />
        </clientsettings>
        <pagerstyle mode="NextPrevAndNumeric" />
    </telerik:RadGrid>
 
 
    <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:connex %>"
        ProviderName="MySql.Data.MySqlClient" SelectCommand="
            SELECT EMPLOYER_STATE AS State,
            COUNT(EMPLOYER_STATE) as 'Total Filings'
            FROM y2010
            GROUP BY EMPLOYER_STATE
            ORDER BY COUNT(EMPLOYER_STATE) desc"
        runat="server"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" ConnectionString="<%$ ConnectionStrings:connex %>"
        ProviderName="MySql.Data.MySqlClient" SelectCommand="
        SELECT EMPLOYER_NAME AS Employer,
        EMPLOYER_STATE AS State,
        COUNT(EMPLOYER_NAME) as 'Total Filings'
        FROM y2010
        WHERE EMPLOYER_STATE=@state
        GROUP BY EMPLOYER_NAME
        ORDER BY COUNT(EMPLOYER_STATE) desc"
        runat="server">
        <SelectParameters>
         <asp:ControlParameter ControlID="RadGrid1" DefaultValue="CA" Name="State"
         PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" ConnectionString="<%$ ConnectionStrings:connex %>"
        ProviderName="<%$ ConnectionStrings:connex.ProviderName %>"
        SelectCommand="SELECT SOC_NAME, EMPLOYER_NAME AS Employer
        FROM y2010 WHERE (EMPLOYER_NAME = @Employer)"
        runat="server">
        <SelectParameters>
         <asp:ControlParameter ControlID="RadGrid2" name="Employer"
         PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>


Marin
Telerik team
 answered on 07 Oct 2011
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?