Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
77 views
Hi Rahul, I had a detailed discussion with Dave today regarding “Drag and Drop” functionality and functionality that Dave’s envision is along the lines of “User being able to select a nested/merge row and drop it. Some Examples eg.

[url=http://postimg.org/image/qkh9toniz/][img]http://s17.postimg.org/qkh9toniz/Pic_1.jpg[/img][/url]
Hercules
Top achievements
Rank 1
 asked on 13 Jan 2015
1 answer
47 views
Please help,

Unable to increase the width of the HoverBox which appear when selected the Menu.
Ivan Danchev
Telerik team
 answered on 13 Jan 2015
0 answers
74 views
I have 2 tables which are related - Clients and ClientContact.

Clients -
ClientID int32
Company varchar
Active bit

ClientContact
ClientID int32
ClientContact varchar

When I use the dropdownlist control on the contact page and set the data source to only show active clients, if the current company is not active it disappears in in edit mode - should I be adding the current value in programmatically or changing the list on insert mode?

 <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
                    AllowSorting="true" AllowAutomaticUpdates="True" AutoGenerateColumns="False" AllowFilteringByColumn="true"
                    DataSourceID="dsContacts" OnDataBound="RadGrid1_DataBound" ShowStatusBar="true" OnItemDataBound="RadGrid1_ItemDataBound" OnInsertCommand="RadGrid1_OnInsertCommand"
                    OnPreRender="RadGrid1_PreRender">
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ClientContactID"
                        DataSourceID="dsContacts" HorizontalAlign="NotSet" Font-Names="Arial"   Font-Size="8" >
                        <CommandItemSettings AddNewRecordText="Add new contact" />
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton">
                                <HeaderStyle Width="20px" />
                                <ItemStyle CssClass="MyImageButton" />
                            </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="ClientContactID" DataType="System.Int32" HeaderText="ContactID"
                        ReadOnly="True" SortExpression="ClientContactID" UniqueName="ClientContactID" Display="False">
                    </telerik:GridBoundColumn>                    
                    <telerik:GridDropDownColumn DataField="ClientID" DataSourceID="dsClient" HeaderText="Client"
                        ListTextField="Company" ListValueField="ClientID" UniqueName="ClientID" Display="False">
                    </telerik:GridDropDownColumn>  
                    
                           
                            <telerik:GridTemplateColumn HeaderText="Name" SortExpression="ClientContact" UniqueName="TemplateColumn1"
                                Display="False" EditFormColumnIndex="0">
                                <EditItemTemplate>
                                    <br />
                                    <asp:TextBox runat="server" ID="tbName" Text='<%# Bind("ClientContact") %>' Width="400px"></asp:TextBox>
                                    <span style="color: Red">*</span>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="tbName"
                                        ErrorMessage="This field is required" runat="server">
                                    </asp:RequiredFieldValidator>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="ClientContact" HeaderText="Client Contact" SortExpression="ClientContact"
                                UniqueName="ClientContact" ReadOnly="True">
                            </telerik:GridBoundColumn>
                             
                                           
                                                      
                        </Columns>
                         <EditFormSettings >
                        <EditColumn ButtonType="ImageButton" />
                    
                </EditFormSettings>
                    </MasterTableView>
                    <ValidationSettings CommandsToValidate="PerformInsert,Update" />
                </telerik:RadGrid>

                 <asp:SqlDataSource ID="dsClient" runat="server" ConnectionString="<%$ ConnectionStrings:connDatabase %>"
                    SelectCommand=" SELECT * FROM [Clients]   ORDER BY [Company] ">
                </asp:SqlDataSource>

Code Not Working
        protected void RadGrid1_OnInsertCommand(object sender, EventArgs e)
        {
            SqlConnection conn = null;

            //  Create a connection to the "pubs" database located
            // on the local computer.
            conn = new SqlConnection(ConfigurationManager.ConnectionStrings["connDatabase"].ConnectionString);

            // Connect to the SQL database using a SQL SELECT query to get
            // all the data from the "Titles" table.
            SqlDataAdapter myCommand = new SqlDataAdapter("SELECT * FROM Clients WHERE Active=1 ORDER BY Company", conn);
            // Create and fill a DataSet.
            DataSet ds = new DataSet();
            myCommand.Fill(ds);


            //GridEditableItem item = e.Item as GridEditableItem;
           // DropDownList list = item.FindControl("ClientID") as DropDownList;
           // list.DataSource = ds;
            //list.DataTextField = "Company";
            //list.DataValueField = "Company";
            //list.DataBind();


        }
Julie3
Top achievements
Rank 1
 asked on 13 Jan 2015
16 answers
710 views
Hello,

I have two problems with my RadComboBox :

1. The RadComboBox doesn't resize automatically when we resize the browser window.
2. When we open the RadComboBox we show the dropdown, so far all is well, but when we "scroll" on the page, the dropdown detach from the input field (as you can show in the two picture attached below).

Here is the ASP.NET code :
                                            
<telerik:RadComboBox ID="PrjComboBox" runat="server"
    AllowCustomText="true"    
    MaxLength="500"
    Width="80%"
    OnPreRender="PrjComboBox_PreRender">
    <ItemTemplate>
        <div>
            <asp:CheckBox runat="server" ID="PrjComboBoxItemCheckBox"
                Checked="false"
                onclick="onPrjComboBoxItemCheckBoxClick(this)"/>
            <asp:Label runat="server" ID="PrjComboBoxItemLabel"
                            AssociatedControlID="PrjComboBoxItemCheckBox"
                                Text='<%# DataBinder.Eval(Container, "Value") %>'>
                        </asp:Label>
                 </div>
    </ItemTemplate>                                                   
</telerik:RadComboBox>

Thanks for your help!

Anatoliy
Top achievements
Rank 2
 answered on 13 Jan 2015
1 answer
75 views
Hi,

I have done for radgrid using radclientdatasource wcf for one table using sample telerik demo. but i am not able to get values relationship table. please help me how to we get data more then one table using radclientdatasource wcf for radgrid.


Thanks in Advance,
Dhamu
Kostadin
Telerik team
 answered on 13 Jan 2015
9 answers
382 views
Hello,

Our project uses several UserControls that are used on different pages.
We load these UserControls dynamically in the page whenever they are needed.

This all works great, and fast, in our development environment.
But when we run it on the production server it takes ages.

We narrowed down the "slowdown" to the following lines of code:

Trace.Write("RegiStar""Start toevoegen mat_Ereigniseingabe"); 
 
        string userControlName = "Mat_Tab_DetailInventar.ascx";  
        Control userControl = Page.LoadControl(userControlName); 
        userControl.ID = e.PageView.ID + "_userControl"
        e.PageView.Controls.Add(userControl); 
 
Trace.Write("RegiStar""einde toevoegen mat_Ereigniseingabe"); 

This part of code takes .09 seconds on our development machine but takes almost 17 seconds on our production server.
What could make this run so slow?

When we trace the PageLoad in "mat_tab_detailinventar.ascx" we see that there is no delay there. It runs almost as fast as on our development server.

For your information.
Our development machines are all English wit XP. The production server is a German Win2003 SBS server.

Does anybody have an idea?

Thanks

Jelte
Boyan Dimitrov
Telerik team
 answered on 13 Jan 2015
4 answers
486 views
<telerik:ChartSeries DataXColumn="Date" DataYColumn="pct" Name="pct" Type="Line">

my data looks like
pct     reportDate
54      2012-09-01 00:00:00.000
65      2012-10-01 00:00:00.000  
57      2012-11-01 00:00:00.000   

when I put DataXColumn="reportDate"
I get an error saying column is not in numeric
when I put "Date" it shows chart but has 1900 dates.

do I just need to have the reportDate formatted in a specific format for it to know to use them as type dates?
do I have to have code behind that sets the dates in the databind?
Doug
Top achievements
Rank 1
 answered on 13 Jan 2015
3 answers
134 views
Hi,

Our application is facing issues in when its trying to render a page with telerik controls in ie11. We have also performed few solutions but still the window blanks out in ie11. 

Please find the Document attached with the screenshots for detailed explanation. Looking forward to the solution soon.
Ianko
Telerik team
 answered on 13 Jan 2015
5 answers
760 views
Hi!

How do I implement the collapsing/burger menu that is used at www.Telerik.com (re-size the screen width to make it smaller and you get a burger menu) ?

Code snippet would be nice. Sample web page even nicer.

Thanks
Ivan Zhekov
Telerik team
 answered on 13 Jan 2015
1 answer
120 views
Hi there,

I am able to bind a datatable to a radmenu.

I want to show images to the rad items and use a column in the datatable for this.
I cannot find the right property to the radmenu.

Anybody any idea??


Regards,

Marcel


Ivan Danchev
Telerik team
 answered on 13 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?