Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
130 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
109 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
121 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
69 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
70 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
170 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
199 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
105 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
1 answer
134 views
Greetings.

We are trying to display a simple bar chart. This bar chart has to display following values:

X-Axis    Y-Axis
A              2
B              2
C              2        
D              2
E              2

But when we try to run the page, each time we get different chart. Sometime the bars are overlapping. Please help.

We are using AJAX controls Q3 2010.

Peshito
Telerik team
 answered on 07 Oct 2011
2 answers
143 views
ASP.NET framework 4.0
Windows 7
RadControls for ASP.NET AJAX Q2 2011

preferred programming C#

I have a question about how to change the RadAsyncuploading handling of saving to the targetfolder. 

The situation as i want it goes as follows: The user is able to select his files/images and they are saved in the temporaryfolder. This way i can view the images with the webviewer im using. Also the utility RadASyncUploader helps with deleting files that are not being used or not being deleted and so on..
But i do not want to save the files to another targetfolder but i want to save them in a database. How can i make this happen?

Im rather new to web programming and i really could use the help. Saving to a database i can do ofcourse but where do i change the handling of saving to the targetfolder

THanks in advance,

Koen Staal


Koen
Top achievements
Rank 1
 answered on 07 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?