Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
Hi

   I have google Spreedsheet using this  i want to create telerik  gantt chart 

  in this first we want to import spreedsheet content into database

  and now using this database we want to create gantt chart 

  can any one tell the solution for this 


Thanking you
P.Mugil
Marin Bratanov
Telerik team
 answered on 18 Mar 2013
3 answers
171 views
Hello everybody!

I have a problem and I dont know how to resolve it.
I have a grid, in the grid I have some columns. When the page loads I want to appear the records of the grid but also the template to add new records, also has the link to add a new record, to edit and to remove (this two in each row of the records).
The template doesnt have all the fields on my table. But when I load the page I need to bind combos on my template and then save those values.
Here is my grid aspx:

<

                    <telerik:RadGrid ID="RadGridArticles" runat="server" AutoGenerateColumns="false" GridLines="None" OnNeedDataSource="RadGridArticles_NeedDataSource" OnInsertCommand="RadGridArticles_InsertCommand" OnDeleteCommand="RadGridArticles_DeleteCommand" OnUpdateCommand="RadGridArticles_UpdateCommand">
                        <MasterTableView DataKeyNames="Id" InsertItemDisplay="top" CommandItemDisplay="Top">
                            <CommandItemSettings AddNewRecordText="Add new record" ShowRefreshButton="false" />
                            <Columns>
                                <telerik:GridBoundColumn HeaderText="Article Name" DataField="Name"></telerik:GridBoundColumn>
                                <telerik:GridNumericColumn HeaderText="Amount" DataField="ArticleAmount"></telerik:GridNumericColumn>
                                <telerik:GridNumericColumn HeaderText="Price" DataField="ArticlePrice" NumericType="Currency" DecimalDigits="2"></telerik:GridNumericColumn>
                                <telerik:GridBoundColumn HeaderText="Category" DataField="CategoryName"></telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn HeaderText="Category THF">
                                    <ItemTemplate>
                                        <%#  Eval("CategoryName")%> <%#  Eval("THFDescription")%>
                                    </ItemTemplate>

                                </telerik:GridTemplateColumn>
                                <telerik:GridButtonColumn ButtonType="PushButton" Text="Add" CommandName="Edit"></telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="PushButton" Text="Remove" CommandName="Delete"></telerik:GridButtonColumn>
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                                <FormTemplate>
                                    <div style="padding: 10px;">
                                        <div>
                                            <asp:Label ID="LabelArticle" runat="server"  Text="Article"></asp:Label>
                                            <telerik:RadTextBox ID="RadTextBoxArticle"  runat="server"  AppendDataBoundItems="true" DataTextField="Name" DataValueField="Id" ></telerik:RadTextBox>
                                        </div>
                                        <div>
                                            <asp:Label ID="LabelArticleAmount" runat="server" Text="Amount" ></asp:Label>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxAmount" runat="server" AppendDataBoundItems="true" Type="Currency"></telerik:RadNumericTextBox>
                                        </div>
                                        <div>
                                            <asp:Label ID="LabelCateg" runat="server" Text="Category" ></asp:Label>
                                            <telerik:RadComboBox ID="RadComboBoxCateg" runat="server" Type="Number" DataValueField="IdCategory" DataTextField="CategoryName" ></telerik:RadComboBox>
                                        </div>
                                        <div>
                                            <asp:Label ID="LabelTHF" runat="server" Text="THF" ></asp:Label>
                                            <telerik:RadComboBox ID="RadComboBoxTHF" runat="server" Type="Currency"  DataValueField="IdTHF" DataTextField="THFDescription" AppendDataBoundItems="true"></telerik:RadComboBox>
                                        </div>
                                        <div>
                                            <asp:Button ID="ButtonUpdate"  runat="server" CommandName="Update"  ></asp:Button>
                                            <asp:Button ID="ButtonInsert"  runat="server" CommandName="PerformInsert" ></asp:Button>
                                        </div>
                           
                                </FormTemplate>
                            </EditFormSettings>
                        </MasterTableView>
                    </telerik:RadGrid>

>


I tried to load the combo like this but nothing. Hopw someone can help me!
Thanks telerik team!!!

 

protected void RadGridExpensesLines_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)

{

 

if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))

{

GridEditFormItem editform = (GridEditFormItem)e.Item;

RadComboBox ComboBox = (RadComboBox)editform.FindControl("RadComboBoxTHF");
Combobox.datasource=MYDATASOURCE;

ComboBoxBTW.DataBind();

 

}

}

Joan
Top achievements
Rank 1
 answered on 18 Mar 2013
1 answer
44 views
RadSchedular UI is getting disturbed when the user mouse hovers on the Asp.Net Menu items. The radshedular is expanding horizontally and looking awkward.  This issue occurs only in IE 8.  Please find the screen shots and let us know what is the solution for this.

Plamen
Telerik team
 answered on 18 Mar 2013
1 answer
32 views
RadSchedular UI is getting disturbed when the user mouse hovers on the Asp.Net Menu items. The radshedular grid is expanding horizontally on every mouse hover on the menu items and looking awkward.
This issue occurs only in IE 8.  Please find the attached screen shots and let us know what is the solution for this.
Plamen
Telerik team
 answered on 18 Mar 2013
1 answer
125 views
Hello,

We are attempting to incorporate Radcontrols such as RadComboBox, RadGrid, etc. into the Kentico CMS system as Webparts (.ascx controls).  When we setup and test these controls in a non-Kentico project, they work as expected.  When we try to use them in Kentico they either don't work at all or generate errors.  For instance, we put a basic RadGrid into the .ascx and turn on filtering and sorting, and attach it to a basic SQL data source.  When the page runs, the grid displays with data from the data source, but if we try to filter or sort, nothing changes or updates in the grid.

Has anyone used Radcontrols in a Kentico CMS v6 or v7 project?  If so, any help would be greatly appreciated.  Kentico states that any standard .net controls can be used as Kentico is a .net based system, but we cannot get even basic funtionality yet.

Thanks again.
Pavlina
Telerik team
 answered on 18 Mar 2013
3 answers
304 views
Hello,

I'm using a RadToolTipManager to display a ToolTip (web user control).  I have a RadComboBox within this ToolTip 
(web user control).  The problem that I am having is that the dropdown from the RadComboBox is being displayed behind the ToolTip (web user control) instead of on top of the ToolTip. I've tried adjusting the ZIndex but to no avail.

Thanks in advance,
Quan
asp:FormView ID="DetailView" runat="server" BackColor="#EEEEEE" Width="750" style="z-index: 1;">  
    <ItemTemplate> 
        <table style="width: 670; height: 370;">  
            <tr> 
                <td> 
                    <div  align="center" style=" border:1px solid #999999; background-color:black; margin-right:20px; width:370px; height:370px; background-position:center; background-repeat:no-repeat; background-image:url('<%# Eval("LargeSize", "../../../Images/Large/{0}") %>');"> 
                    </div> 
                </td> 
                <td></td>  
                <td> 
                    <table style="float:left; width:300;">  
                        <tr> 
                            <td colspan="2">  
                                    <hr/> 
                                    <span class="TooltipDetailTitle">Caption: </span> 
                                     
                                    <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Eval("ItemCaption") %>' Width="250" BorderStyle="None" BackColor="#EEEEEE" Font-Italic="True" AutoPostBack="False">  
                                    </telerik:RadTextBox> 
                                    <br/> 
                                    <br/> 
                                      
                                    <span class="TooltipDetailTitle">Event: </span> 
                                    <asp:Label CssClass="TooltipDetailDesc" ID="Event" runat="server"><%# Eval("Event") %></asp:Label> 
                                    <telerik:RadComboBox ID="RadComboBox1" runat="server" Height="400" ZIndex="2">  
                                    </telerik:RadComboBox> 
                                    <br/> 
                                    <br/> 
 
                                    <span class="TooltipDetailTitle">Date: </span> 
                                    <telerik:RadTextBox ID="RadTextBox2" runat="server" Text='<%# Eval("DateTaken") %>' Width="250" BorderStyle="None" BackColor="#EEEEEE" Font-Italic="True" AutoPostBack="False">  
                                    </telerik:RadTextBox> 
                                      
                                    <br/> 
                                    <br/> 
 
                                    <span class="TooltipDetailTitle">File: </span> 
                                    <asp:Label CssClass="TooltipDetailDesc" ID="File" runat="server"><%# Eval("PrintSize")%></asp:Label> 
                                    <hr/> 
                                   
                                    <telerik:RadInputManager ID="RadInputManager1" runat="server">    
                                      
                                        <telerik:DateInputSetting BehaviorID="DateInputBehavior1" Validation-IsRequired="true" DateFormat="mm/dd/yyyy">  
                                              
                                            <TargetControls> 
                                                <telerik:TargetInput ControlID="RadTextBox2" /> 
                                            </TargetControls> 
                                              
                                        </telerik:DateInputSetting> 
                                                                        
                                    </telerik:RadInputManager> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                <asp:Button ID="Button1" runat="server" Text="Edit" onclick="Button1_Click"/>  
                            </td> 
                            <td> 
                                <asp:Button ID="Button2" runat="server" Text="Save" onclick="Button2_Click"/>  
                            </td> 
                        </tr> 
                    </table> 
                </td> 
            </tr> 
        </table> 
 
    </ItemTemplate> 
</asp:FormView> 
uan
Hristo Valyavicharski
Telerik team
 answered on 18 Mar 2013
1 answer
73 views
I have a RadToolTip that contains a RadComboBox. When the RadToolTip shows, the RadComboBox isn't visibile until the user hovers over it. I've tried setting the z-index higher, but that doesn't help.

Also, if I have FireBug enabled, it doesn't happen. Any fix or even debugging suggestions are appreciated.
Nencho
Telerik team
 answered on 18 Mar 2013
1 answer
55 views
I am using  usercontrols inside the Telerik RadTab.I need to pass parameters into the usercontrol (to load a grid inside it).But when i am setting parameters inside in the usercontrol and running the application,application starts but end in error and prompting  the visual studio to close the program.The sample of my tab control is this

 <telerik:RadPageView runat="server" ID="PageView1">
        <div class="contactWrap">
            <uc:Cover ID="covercontrol" runat="server" />
        </div>
    </telerik:RadPageView>
    <telerik:RadPageView runat="server" ID="PageView2">
        <uc:settingdetail ID="settingDiscount" runat="server"  />
    </telerik:RadPageView>
The application runs fine  with this code.But when I set a property inside the user control "settingdetail" such as SettingId="0" to pass it to the grid inside the usercontrol ,then above problem occurs.

Please provide a solution for it.
Thanks,
Sheharban
Nencho
Telerik team
 answered on 18 Mar 2013
1 answer
50 views
We have an assignment control that's reused throughout our project.  It contains two rad grids:  Available and Assigned.  When the user double clicks the row in one of the grids, the item is moved to the opposite grid.  This is defined as follows for the Available grid (the Assigned grid is pretty much the same, except Available is replaced with Assigned where :

 <telerik:RadGrid runat="server" ID="grdAvailableFields" SkinID="AssignmentGridWithoutPaging" OnItemDataBound="grdAvailableFields_OnItemDataBound"
Width="280px" OnNeedDataSource="grdAvailableFields_NeedDataSource" OnDataBound="grdAvailableFields_DataBound">
<MasterTableView Name="AvailableFields" DataKeyNames="Id">
<Columns>
...

</Columns>
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowSelected="grdAvailableFields_OnRowSelected"
OnRowDblClick="AvailableFieldDblClick" />
</ClientSettings>
</telerik:RadGrid>

The corresponding javascript is defined as follows:

function AvailableFieldDblClick() {
    $get("<%= btnAssignField.ClientID %>").click();
}
 
function btnAssignField_ClientClick() {
    if (assignFieldEnabled) {
        ResetFieldsButtons();
        MakeFieldsDirty();
        return true;
    }
    return false;
}

This all works fine when we only have one instance of the control on the page.  However, in some cases, we have to have it twice (they're located on different tabs of a multipage control -- tab 2 and tab 5).  In these cases, when the user doubleclicks the row, the javascript that fires belongs to the last control that was created (e.g., on tab 5), even though the user was on the control that was first created.  (When the control is used multiple times on the page, there are duplicate javascript functions in the aspx code.)

For example, if Grid1 and Grid2 are on Tab1 and Grid3 and Grid4 are on Tab2, when I doubleclick G3 or G4, the item moves to the correct paired grid.  However, if I doubleclick G1 (or G2), the javascript that's fired refers to G3 (or G4) and therefore nothing happens.

Since the javascript functions are the same for each control, the browser is calling the incorrect method (e.g., the method associated with the last grid) when the user doubleclicks on the first grid.  Since this is the same control, I can't change the function name in design and expect it to make a difference in production.

How can I differentiate which function to call so that when the user doubleclicks any of the grids, the function that's executed is the one associated with the correct grid?
Andrey
Telerik team
 answered on 18 Mar 2013
7 answers
707 views
Hi: I followed the suggestions both:

http://www.telerik.com/automated-testing-tools/community/forums/aspnet/grid/radgrid-mouseover.aspx and
http://www.telerik.com/help/aspnet/grid/grdsetstyleonmouseover.html

with no success. I am currently developing against the Q1 2010 tools and every time I add the clientsettings tag or the clientsetetings-clientevents-onrowclick property of the Rad Grid the page loads but it appears as though none of the JavaScript runs. My tooltops do not pop-up, the radpanels do not resize, etc. Any help is appreciated. Thanks

            <telerik:RadToolTip ID="AlertMenuToolTip" Animation="Slide" RelativeTo="Element" Position="BottomCenter"   
                        AnimationDuration="100" ShowCallout="false" TargetControlID="AlertNoticeIcon" IsClientID="true" 
                        OffsetX="-108" OffsetY="-5" runat="server" HideEvent="LeaveToolTip">  
                <div class="AlertMenuItemContainer">  
                <Telerik:RadGrid RegisterWithScriptManager="true" ID="StudentCheckListRadGrid" AutoGenerateColumns="false" runat="server" AllowSorting="true" ClientSettings-ClientEvents-OnRowClick="javascript:alert();" 
                  AllowPaging="false" ShowHeader="false" PageSize="10" Width="100%" BorderWidth="0" ItemStyle-BackColor="#E8E8E8" AlternatingItemStyle-BackColor="White">  
                    <MasterTableView AllowMultiColumnSorting="true" AutoGenerateColumns="false" ForeColor="#4B4B4B" Font-Names="Tahoma,Arial,Verdana" Font-Size="11px">  
                    <Columns> 
                        <Telerik:GridBoundColumn DataField="" HeaderText="TaskSummaryCheckList"></Telerik:GridBoundColumn> 
                    </Columns> 
                    </MasterTableView>        
                    </telerik:RadGrid> 
                </div> 
                <div style='text-align:center;'><href="#" ID="StudentCheckListMoreLink" OnClick="OpenStudentCheckListWindow()">view more...</a></div>  
        </telerik:RadToolTip> 
Galin
Telerik team
 answered on 18 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?