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

Using a Multicolumn Combobox with OpenAccess and trying to insert a blank item - as need to have the option of not selecting any item from the list - tried various solutions/posts with no success - code for combobox as below

<telerik:RadComboBox runat="server" ID="RadComboBox1" Height="190px" Width="100%"
    MarkFirstMatch="true" DataSourceID="OpenAccessLinqDataSource1" EnableLoadOnDemand="true"
    HighlightTemplatedItems="true" DataValueField="PartID" DataTextField="PartNumber"
    AppendDataBoundItems="True" SelectedValue='<%# Bind("PartID") %>' ItemsPerRequest="10"
    EnableVirtualScrolling="True" Filter="Contains" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"
    AutoPostBack="True">
    <HeaderTemplate>
        <ul>
            <li class="col1">Part Number</li>
            <li class="col2">Part Description</li>
        </ul>
    </HeaderTemplate>
    <ItemTemplate>
        <ul>
            <li class="col1">
                <%# DataBinder.Eval(Container.DataItem, "PartNumber")%>
            </li>
            <li class="col2">
                <%# DataBinder.Eval(Container.DataItem, "PartDescription")%></li>
        </ul>
    </ItemTemplate>
</telerik:RadComboBox>

Tried online demo http://www.telerik.com/help/aspnet-ajax/combobox-insert-default-item-when-databinding.html 

(Using vb)

Thanks



Boyan Dimitrov
Telerik team
 answered on 30 Oct 2013
1 answer
76 views
1 : I don't know how to do like this exp: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplatedeclarativerelations/defaultcs.aspx
I have a list of item List<item> get by DAL how to bind it to Detail info
(i don't have sqldatasource)

2: I wonder why all exp use sqldatasource is it the new stand of programming ?

3 : Can i bind the list item to sqldatasourece and do like exp

Thanks.



Viktor Tachev
Telerik team
 answered on 30 Oct 2013
2 answers
136 views
Hi Sir,

      i am having some problem when i am using Two RadGrids with in Single page.

     Problem: (1). When i Click Add New Record Button on RadGrid1 then it is in Insert Mode
               (2).  Next if Click on Add New Record Button on Second RadGrid2 then Both are in Insert mode.
             
               (3). Now i want to Add the Records through RadGrid2 after Clicking Insert Button Now the Problem is Both Grids validations are        firing so  the Record is not able to Add through RadGrid2. how to overcome this problem Please give me the Suggestion.

Please go-through the Screenshots.

      


Venkateswarlu
Top achievements
Rank 1
 answered on 30 Oct 2013
4 answers
134 views
I have a pair of ListBoxes that I use to transfer items between.  I've disabled the Double Click capability for both ListBoxes, but the right hand box still allows double-clicking.  I was able to duplicate this using the online example here (http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/transfer/defaultcs.aspx).  In the example, disable the Double Click Transfer.  You can verify that double click is disabled by trying to click in the left hand box.  Then, move a couple of items to the right hand box.  Now, double click one of those items and you'll see they are moved back to the left hand box.  This is not the behavior I expected to see.  I need to be able to leave the box enabled, but prevent the user from transferring data by double clicking.  Please help.

Please note:  Setting Allow Transfer to false does not prevent this type of double clicking to transfer items.  Weird!

Dave
Priyalakshmi
Top achievements
Rank 1
 answered on 30 Oct 2013
1 answer
101 views
Hi,
it is possible to upload files using Copy/paste from windows Explorer, e.g. you select one or several files in a folder, ctrl+c, set focus to AsyncUpload, press ctrl+v, AsyncUpload upload files?

Thanks
Alex
Shinu
Top achievements
Rank 2
 answered on 30 Oct 2013
1 answer
103 views
Hi, 

I have a rad grid where all the columns created dynamically from code behind. Some are template columns and others are bound columns. I have a save button which is outside the grid where i need to read the cell values on click event. 
But inside the on click event I can't access the mastertableview columns or items. 

Eg: radGrid.MasterTableView.Items.Count - this equals to zero. Therefore I can't iterate through the cell values. 

The grid is defined on the markup. And I add the dynamically columns on Page_Init(). I'm assigning a dynamically generated DataTable as the datasource for the grid.

I have tried lot of solutions suggested in forums but nothing works. So now I started reading all the cell values from client side and it seems slow. Can somebody help?

Thanks. 
Princy
Top achievements
Rank 2
 answered on 30 Oct 2013
1 answer
50 views
Hello I am new to RadScheduler, and trying to edit the appointment format.

For example, when we try to add an appointment, it asks us to fill subject, location, background, etc, I want to make my own appointment format, so i can get rid of such features that i do not need in my program.

Is there any way to do this?
Plamen
Telerik team
 answered on 30 Oct 2013
4 answers
150 views
In a post I found -- I used the below code to hide the expalnd and collapse image on the panel bar.

<style type="text/css">  
    div.RadPanelBar .rpExpandable .rpText,  
    div.RadPanelBar .rpExpanded .rpText  
    {  
        background-image:none;  
    }  
</style>

Which worked great, until I upgraded to the latest 2010 Q2 dll.  I was using the 2009 Q3 dll. 

It would be great if there was a property for this -- although I don't see anything like that.   Any ideas?

Thanks,
Todd.
Shinu
Top achievements
Rank 2
 answered on 30 Oct 2013
2 answers
109 views
Hi Telerik,

---------------------------------------------------
Telerik.web.dll version:  2013.1.403.40
net .4.0
VS2012
---------------------------------------------------
I don't want make skin files into an dll file, because my client needs to modify it without dll files. So I download 1 skin from Visual Style Builder  which name is s_office2007.zip and extract it.

I put all files under my solution and I wrote below codes. two buttons, one uses  s_office2007, one uses default skin.(just want to see how different it is)  However, it is working on Firefox & Chrome ,not IE 9.  The button which uses s_office2007 shows wrong style, did I miss someting?

Thanks in advance.
Bill




<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StyleTest.aspx.cs" Inherits="EmailClient.StyleTest" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
    <link href="Styles/s_office2007/AutoCompleteBox.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Button.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Calendar.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/ColorPicker.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/ComboBox.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/DataPager.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Dock.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/DropDownList.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Editor.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/FileExplorer.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Filter.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/FormDecorator.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Grid.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/ImageEditor.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Input.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/ListBox.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/ListView.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Menu.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Notification.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/OrgChart.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/PanelBar.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/PivotGrid.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/ProgressArea.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Rating.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/RibbonBar.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Rotator.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Scheduler.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/SearchBox.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/SiteMap.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Slider.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/SocialShare.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Splitter.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/TabStrip.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/TagCloud.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/ToolBar.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/ToolTip.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/TreeList.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/TreeView.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Upload.s_office2007.css" rel="stylesheet" />
    <link href="Styles/s_office2007/Window.s_office2007.css" rel="stylesheet" />
</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>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
                </asp:ScriptReference>
            </Scripts>
            
        </telerik:RadScriptManager>
        <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="s_office2007">
        </telerik:RadSkinManager>
    <div>
        <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="True" EnableTheming="False"></telerik:RadButton>
        <telerik:RadButton ID="RadButton2" runat="server" Text="RadButton"  Skin="Default"></telerik:RadButton>
    </div>
    </form>
</body>
</html>

Please take a look at attachments. same aspx page. but works on Firefox & Chrome, not IE 9.
wg
Top achievements
Rank 1
 answered on 30 Oct 2013
2 answers
63 views
IE: 9.0
Asp.net:  4.0
Telerik Version: 2013.1.403.40

Hi Telerik,

The page has just 1 RadGrid and which height is 100%, it works well but when I resize the browser from normal size to a smaller size, it gives me "Blank Area" on the bottom. Please take a look at  attachments.

BTW: It works with FireFox and Chrome.

Thank you very much,
Bill

Html:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestDataGrid.aspx.cs" Inherits="MainFrameTest.TestDataGrid" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head id="Head1" runat="server">
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <title>RadGrid for ASP.NET AJAX</title>
    <style type="text/css">
        html {
            overflow: auto;
        }
 
        html,
        body,
        form {
            margin: 0;
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <telerik:RadGrid
            ID="RadGrid1"
            runat="server"
            DataSourceID="XmlDataSource1"
            AllowPaging="true"
            PageSize="40"
            Width="100%"
            Height="100%"
            Style="border: 0; outline: none">
            <MasterTableView TableLayout="Fixed" AllowFilteringByColumn="true" />
            <ClientSettings EnableRowHoverStyle="true">
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            </ClientSettings>
            <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
        </telerik:RadGrid>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/datasource.xml" />
 
    </form>
</body>
</html>


datasource.xml
<?xml version="1.0" encoding="utf-8" ?>
<students>
  <student id="1" firstname="Cathy" lastname="Smith" suffixname="Jr" phone="704-717-0090" />
  <student id="2" firstname="Mary" lastname="Andrew" suffixname="Sr" phone="704-717-0290" />
  <student id="1" firstname="Cathy" lastname="Smith" suffixname="Jr" phone="704-717-0090" />
  <student id="2" firstname="Mary" lastname="Andrew" suffixname="Sr" phone="704-717-0290" />
  <student id="1" firstname="Cathy" lastname="Smith" suffixname="Jr" phone="704-717-0090" />
  <student id="2" firstname="Mary" lastname="Andrew" suffixname="Sr" phone="704-717-0290" />
  
</students>


wg
Top achievements
Rank 1
 answered on 30 Oct 2013
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?