Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
149 views
Hello,

I modeled our dropdown very similar to this example:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridincombobox/defaultcs.aspx?product=combobox

I am using twitter bootstrap as well as your controls within a site.  I am having some issues with the radcombox in that when I turn EnableEmbeddedBaseStylesheet=true it will allow me to scroll and select items within the combobox like i want.  The radcombox however is taking the look of the embedded style sheet which i do not want.  if i turn it to false it now looks like i want it but when i enter an entry into the combox my information displays but I can no longer scroll through the returned items or select them.  Anyone else run into this and how did you fix it?  

Thanks,


<telerik:RadComboBox ID="rcmbSKU" Width="340px" runat="server" MarkFirstMatch="True" CssClass="SKUCombo" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"
            AllowCustomText="True" OnClientDropDownOpening="HandleOpen" ExpandAnimation-Type="None"
            CollapseAnimation-Type="None" DropDownWidth="340px" onkeyup="HandleKeyPressed(this)">
            <ItemTemplate>
                <telerik:RadGrid ID="rgridSKU" Width="325px" runat="server" OnNeedDataSource="rgridSKU_NeedDataSource" EnableEmbeddedBaseStylesheet="true" EnableEmbeddedSkins="true">
                    <MasterTableView NoMasterRecordsText="" AutoGenerateColumns="False" DataKeyNames="ItemCode, ItemKey, Description"
                        Width="100%" ClientDataKeyNames="ItemCode, ItemKey, Description" TableLayout="Fixed">
                        <Columns>
                        <telerik:GridBoundColumn HeaderText="SKU" DataField="ItemCode" UniqueName="ItemCode">
                                <HeaderStyle Width="90px"></HeaderStyle>
                            </telerik:GridBoundColumn
                             
                            <telerik:GridBoundColumn HeaderText="Description" DataField="Description" UniqueName="Description">
                                <HeaderStyle Width="215px"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings>
                        <ClientEvents OnRowClick="RowClicked" OnGridCreated="GridCreated"></ClientEvents>
                        <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="300px"></Scrolling>
                    </ClientSettings>
                </telerik:RadGrid>
            </ItemTemplate>
            <Items>
                <telerik:RadComboBoxItem runat="server" Text=" "></telerik:RadComboBoxItem>
            </Items>
        </telerik:RadComboBox>
Nencho
Telerik team
 answered on 01 Nov 2012
1 answer
154 views
Hi 

I am trying to implement a org chart for my organization.  In addtion to the staffs reporting to the superior, there is also a position called 'Assistant' working to the superior specifically, in which I would like to put this position as separate level against other subordinate.   The person who is assistant have the property isAssistant flag in SQL Table.  


Please advise How can I do it in ASP.net, I am using VB.net, Linq and SQL 2012.  The attached image is for your reference.  

And also, is it possible to set the block of the chart with whilte background color?  Thanks.


Patrick

Peter Filipov
Telerik team
 answered on 01 Nov 2012
1 answer
625 views
Hello,
i want to disable this functionality - expand and collapse. When i loaded my tree I using tree.ExpandAllNodes().
After that i hidden buttons(checkboxes) for this activity, but now they are invisible but they work.
Princy
Top achievements
Rank 2
 answered on 01 Nov 2012
1 answer
106 views
hello,
I am having a problem of adding a separator to the RibbonBarMenuItem in a ribbonbargroup!
Is there any way to add one?
thank you for your help!
Bozhidar
Telerik team
 answered on 01 Nov 2012
5 answers
248 views
I have a RadGrid with a simple NoRecordsTemplate, just an asp:Panel containing an asp:Label. The label text is fairly long. I do not want the text to wrap, so I specified white-space:nowrap in the css class for the panel. The panel displays narrower than the text, and the text is cut off partway (and outside of the panel). If I add a specific width to the panel, it is cut off as well. I have ShowHeadersWhenNoRecord set to true, and it appears as if the no records template is being placed in a table cell the width of the first column, which would explain why it is being cut off. How do I make the no record template span multiple columns so the full width of it will be displayed?

And as a follow up: Can I put in a request that the cell the no records template is placed in be set to colspan ALL of the table columns? Since there is no data to display anyway, and thus no grid, this certainly shouldn't hurt anything, and would give us much more flexibility in the use of the no records template. 
Antonio Stoilkov
Telerik team
 answered on 01 Nov 2012
3 answers
213 views

I have a TreeList that loads onclick of a button (btnGeoDetailsFacilities) which calls RadGeoTreeListFacilities_Bind() this function grabs the parents. All of that works fine, I get parent rows.

Problem:

The problem is when I click the expand node the Treelist and headers disappear and no event is called. If I click the “btnGeoDetailsFacilities” button a second time RadTreeList1_ChildItemsDataBind is called and the grid loads with child items expanded as it should have when I clicked the expand button.

Question:

Why are the Tree and headers disappearing on expand and how do I get it to work properly e.g. show children when I click expand? As show here http://demos.telerik.com/aspnet-ajax/treelist/examples/databinding/loadondemand/defaultvb.aspx

Code:

<telerik:RadAjaxPanelID="RadAjaxPanel1"LoadingPanelID="RadAjaxLoadingPanel"runat="server">

            <telerik:RadTreeListrunat="server"ID="RadGeoTreeList"Visible="true"DataKeyNames="FacilitiesreportingId"ParentDataKeyNames="VERA3"AutoGenerateColumns="false"

            Width="100%"Height="400"ShowTreeLines="true"AllowLoadOnDemand="true">

                <Columns>

                    <telerik:TreeListBoundColumnDataField="Origin"HeaderText="Origin"UniqueName="Origin"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="Destination"HeaderText="Destination"UniqueName="Destination"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="FinanceNumber"HeaderText="Finance Number"UniqueName="FinanceNumber"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="Address"HeaderText="Address"UniqueName="Address"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="City"HeaderText="City"UniqueName="City"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="State"HeaderText="State"UniqueName="State"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="ZipCode"HeaderText="Zip"UniqueName="ZipCode"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="Distance"HeaderText="Driving Distance"UniqueName="Distance"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="Area"HeaderText="Area"UniqueName="Area"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="PFC"HeaderText="PFC"UniqueName="PFC"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="OnRolls1"HeaderText="OnRolls"UniqueName="OnRolls1"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="Residual"HeaderText="Residual"UniqueName="Residual"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="Withheld"HeaderText="Withheld"UniqueName="Withheld"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="Optional1"HeaderText="OPT"UniqueName="Optional1"></telerik:TreeListBoundColumn>

                    <telerik:TreeListBoundColumnDataField="VERA1"HeaderText="VER"UniqueName="VERA1"></telerik:TreeListBoundColumn>

                </Columns>

            </telerik:RadTreeList>

        </telerik:RadAjaxPanel>

        <telerik:RadAjaxLoadingPanelID="RadAjaxLoadingPanel"runat="server"/>

 

<telerik:RadAjaxManagerrunat="server"ID="RadAjaxManager1"ClientEvents-OnRequestStart="mngRequestStarted"EnableAJAX="true">

              <AjaxSettings>

            <telerik:AjaxSettingAjaxControlID="btnGeoDetailsFacilities">

                           <UpdatedControls>

                    <telerik:AjaxUpdatedControlControlID="RadGeoTreeList"LoadingPanelID="RadAjaxLoadingPanel"/>

                           </UpdatedControls>

                     </telerik:AjaxSetting>

</AjaxSettings>

              <ClientEventsOnRequestStart="mngRequestStarted"/>

       </telerik:RadAjaxManager>

 

 

 

PublicSub RadGeoTreeListFacilities_Bind()

 

        geoDataList = ds.GetDistanceGridFacilities(oLat, oLon, radius, facilityNumber)

 

        Dim g = (From item In geoDataList _

                Where item.VERA3 = Nothing _

                Select item).ToList()

 

        RadGeoTreeList.DataSource = g

        Cache("geoData") = geoDataList

    EndSub

 

‘why does this get called twice onload?

ProtectedSub RadTreeList1_NeedDataSource(ByVal sender AsObject, ByVal e AsTreeListNeedDataSourceEventArgs) Handles RadGeoTreeList.NeedDataSource

        If IsCallback Or IsPostBack Then

            If Session("GeoTreeListMode") = "facilities"Then

                RadGeoTreeListFacilities_Bind()

            ElseIf Session("GeoTreeListMode") = "studies"Then

                RadGeoTreeList_Bind()

            EndIf

        EndIf

    EndSub

 

ProtectedSub RadTreeList1_ChildItemsDataBind(ByVal sender AsObject, ByVal e AsTreeListChildItemsDataBindEventArgs) Handles RadGeoTreeList.ChildItemsDataBind

        Dim id AsInteger = Convert.ToInt32(e.ParentDataKeyValues("FacilitiesreportingId").ToString())

 

        Dim g = (From item In geoDataList _

                Where item.VERA3 = id _

                Select item).ToList()

 

        e.ChildItemsDataSource = g

    EndSub

 

ProtectedSub OnClick_btnGeoDetailsFacilities(sender AsObject, e As System.EventArgs)

        Session("GeoTreeListMode") = "facilities"

End Sub

 

 

PublicClassFacilityItem

    Private _Origin AsString

    PublicProperty Origin() AsString

        Get

            Return _Origin

        EndGet

        Set(ByVal value AsString)

            _Origin = value

        EndSet

    EndProperty

 

    Private _Destination AsString

    PublicProperty Destination() AsString

        Get

            Return _Destination

        EndGet

        Set(ByVal value AsString)

            _Destination = value

        EndSet

    EndProperty

 

    Private _Distance AsString

    PublicProperty Distance() AsString

        Get

            Return _Distance

        EndGet

        Set(ByVal value AsString)

            _Distance = value

        EndSet

    EndProperty

 

 

    Private _Address AsString

    PublicProperty Address() AsString

        Get

            Return _Address

        EndGet

        Set(ByVal value AsString)

            _Address = value

        EndSet

    EndProperty

 

    Private _City AsString

    PublicProperty City() AsString

        Get

            Return _City

        EndGet

        Set(ByVal value AsString)

            _City = value

        EndSet

    EndProperty

 

    Private _State AsString

    PublicProperty State() AsString

        Get

            Return _State

        EndGet

        Set(ByVal value AsString)

            _State = value

        EndSet

    EndProperty

 

    Private _ZipCode AsString

    PublicProperty ZipCode() AsString

        Get

            Return _ZipCode

        EndGet

        Set(ByVal value AsString)

            _ZipCode = value

        EndSet

    EndProperty

 

    Private _FinanceNumber AsString

    PublicProperty FinanceNumber() AsString

        Get

            Return _FinanceNumber

        EndGet

        Set(ByVal value AsString)

            _FinanceNumber = value

        EndSet

    EndProperty

 

    Private _FacilityName AsString

    PublicProperty FacilityName() AsString

        Get

            Return _FacilityName

        EndGet

        Set(ByVal value AsString)

            _FacilityName = value

        EndSet

    EndProperty

 

 

    Private _Optional1 AsInteger

    PublicProperty Optional1() AsInteger

        Get

            Return _Optional1

        EndGet

        Set(ByVal value AsInteger)

            _Optional1 = value

        EndSet

    EndProperty

 

    Private _Withheld AsInteger

    PublicProperty Withheld() AsInteger

        Get

            Return _Withheld

        EndGet

        Set(ByVal value AsInteger)

            _Withheld = value

        EndSet

    EndProperty

 

    Private _OnRolls1 AsInteger

    PublicProperty OnRolls1() AsInteger

        Get

            Return _OnRolls1

        EndGet

        Set(ByVal value AsInteger)

            _OnRolls1 = value

        EndSet

    EndProperty

 

    Private _Area AsString

    PublicProperty Area() AsString

        Get

            Return _Area

        EndGet

        Set(ByVal value AsString)

            _Area = value

        EndSet

    EndProperty

 

    Private _PFC AsString

    PublicProperty PFC() AsString

        Get

            Return _PFC

        EndGet

        Set(ByVal value AsString)

            _PFC = value

        EndSet

    EndProperty

 

    Private _Residual AsInteger

    PublicProperty Residual() AsInteger

        Get

            Return _Residual

        EndGet

        Set(ByVal value AsInteger)

            _Residual = value

        EndSet

    EndProperty

 

    Private _FacilitiesreportingId AsInteger

    PublicProperty FacilitiesreportingId() AsInteger

        Get

            Return _FacilitiesreportingId

        EndGet

        Set(ByVal value AsInteger)

            _FacilitiesreportingId = value

        EndSet

    EndProperty

 

    Private _VERA1 AsInteger

    PublicProperty VERA1() AsInteger

        Get

            Return _VERA1

        EndGet

        Set(ByVal value AsInteger)

            _VERA1 = value

        EndSet

    EndProperty

 

    Private _VERA3 AsInteger

    PublicProperty VERA3() AsInteger

        Get

            Return _VERA3

        EndGet

        Set(ByVal value AsInteger)

            _VERA3 = value

        EndSet

    EndProperty

 

    'Public Sub New(ByVal strOrigin As String, ByVal strDestination As String, ByVal strCity As String, ByVal strState As String, ByVal strZipCode As String, ByVal strAddress As String, _

    '               ByVal strDistance As String, ByVal strFacilityName As String, ByVal strFinanceNumber As String, ByVal strArea As String, ByVal strPFC As String, ByVal intOnRolls1 As Integer, _

    '               ByVal intVERA1 As Integer, ByVal intResidual As Integer, ByVal intOptional1 As Integer, ByVal intWithHeld As Integer, ByVal intFacilitiesreportingId As Integer, ByVal intVERA3 As Integer)

 

    '    Origin = strOrigin

    '    Destination = strDestination

    '    City = strCity

    '    State = strState

    '    ZipCode = strZipCode

    '    Address = strAddress

    '    Distance = strDistance

    '    FacilityName = strFacilityName

    '    FinanceNumber = strFinanceNumber

    '    Area = strArea

    '    PFC = strPFC

    '    OnRolls1 = intOnRolls1

    '    VERA1 = intVERA1

    '    VERA3 = intVERA3

    '    Residual = intResidual

    '    Optional1 = intOptional1

    '    FacilitiesreportingId = intFacilitiesreportingId

    '    Withheld = intWithHeld

    'End Sub

 

 

End Class

 

 

Mock data:

'mergedList.Add(New FacilityItem("asdf", "asdf", "asdf", "asdf", "asdf", "asdf", "asdf", "asdf", "asdf", "asdf", "asdf", 1234, 1234, 1234, 1234, 1234, 222, 1))

        'mergedList.Add(New FacilityItem("header", "header", "header", "header", "header", "header", "header", "header", "header", "header", "header", 1234, 1234, 1234, 1234, 1234, 1, 0))

Marin
Telerik team
 answered on 01 Nov 2012
1 answer
101 views
In my database have column name "imageFile" to store the image "test.jpg". Now I want to display the "test.jpg" in RadAsyncUpload textbox when page is load. But I found cannot implement RadAsyncUpload.text. How do I implement this? is it possible? Thanks
Plamen
Telerik team
 answered on 01 Nov 2012
2 answers
115 views
Hi all,

In my radgrid, I can select multiple rows at  a time. How can I loop through labels of the selected items? Please help me to find an answer.

Thanks in advance

Tsvetoslav
Telerik team
 answered on 01 Nov 2012
5 answers
239 views
While many pivot tables are aggregates, there is plenty of usefullness to have the 3-d format of a pivot and still be able to handle if the user would like to update a cell value in the aggregate section. Is there anyway to do this?
Tsvetoslav
Telerik team
 answered on 01 Nov 2012
1 answer
136 views
In the grid whenever text within the tags is saved it is not visible in the data bound columns.

Ex. If this text <Coffee> is bound to the data column then it does not appear in the column , rather a blank space appears.

(This may be probably as while rendering its considering text as a tag as its b/w tags <>)

What can be the potential fix for this issue?

(I guess similar issue persist in this site in demo of grids. Inline Editing of grid columns. [on saving <Tea> as column value value does not save])
Marin
Telerik team
 answered on 01 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?