Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
339 views

My combo is empty until I click the dropdown (items request event is fire): so what is the best strategy to set an initial item (value and text) in RadComboBox while using Loading on Demand?

Thx

Princy
Top achievements
Rank 2
 answered on 13 Jan 2014
1 answer
147 views
how show empty message in combo box after post back page.

Shinu
Top achievements
Rank 2
 answered on 13 Jan 2014
1 answer
168 views
Hi,
             I have multiple Combo Box on my page. when i select combo box values then process on it then my page is reload that time i want set empty message on every combo box not show selected value. provide me sample code.

Thanks,
Rahul
Shinu
Top achievements
Rank 2
 answered on 13 Jan 2014
7 answers
2.6K+ views
Is there a way to set a combo box to "empty" on the client? I mean empty like when the page is first loaded with nothing in it and the empty message is showing.

Through client side code I can clear items, clear selection and even set the combo text. But I can not figure out how to get it back to the initial "empty" state through code. If I manually delete the text in the combo box it shows the empty message but I can't seem to set it through code.

I have linked combo's and if the user clears the parent then the child needs to be cleared (set to empty) and disabled.

I have resulted to clearing the items and setting the text to "select an item". My biggest issue is that the text looks different than the empty message text. Users pick up on that stuff.

This seems like an obvious thing to have. It would be nice if there was a method that set the combo to empty like:
combo.set_empty();
I thought the clearItems method would have done this but it just leaves the text in the combo blank.

Any help would be appreciated.

Thanks,
Craig
Shinu
Top achievements
Rank 2
 answered on 13 Jan 2014
2 answers
145 views
I have a procedure that runs in the ItemDataBound event for my grid. It's purpose is to color code a status field by checking the due date and today's date to see if the request is past due.

The due date is being displayed in a GridDateTimeColumn, however, NULL is a valid value in this field. There is no editing in this grid...it's for display purposes only.

I can't seem to figure out how to check in my code behind if there is a date in the GridDateTimeColumn or not. I tried to cast the field as a RadDatePicker using:

DirectCast(item("due_date").Controls(0), RadDatePicker)

but I get an error:

Specified argument was out of the range of valid values.
Parameter name: index

My code behind is in VB. Can you tell me how to check a GridDateTimeColumn for a null value in code behind? Thanks.
Christopher Lee
Top achievements
Rank 1
 answered on 12 Jan 2014
1 answer
41 views

how can I put this grid to edit mode for all cells ?             
 
          
<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowEdit="True" DataSourceID="SqlDataSource1"                   OnItemDataBound="RadGrid1_ItemDataBound"                 AllowAutomaticUpdates="True"   AutoGenerateColumns="False" CellSpacing="0" GridLines="None">
                <ClientSettings>
                     <Scrolling AllowScroll="True" />
                </ClientSettings>
                <MasterTableView EditMode="InPlace" CommandItemDisplay="Top" TableLayout="Fixed" AutoGenerateColumns="false">
                 <Columns>
                    <telerik:GridBoundColumn UniqueName="RxNo" HeaderText="RxNo" DataField="RxNo" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Guidid" HeaderText="Guidid" DataField="Guidid">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="MusteriGuidid" HeaderText="MusteriGuidid" dataField="MusteriGuidid">
                    </telerik:GridBoundColumn>
                </Columns>
                </MasterTableView>
            </telerik:RadGrid>

            none of these methods not working for me .

    Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs)
        If TypeOf (e.Item) Is GridDataItem Then
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
            dataItem.Edit = True
        End If
        RadGrid1.Rebind()
    End Sub

    Protected Sub RadGrid1_PreRender(sender As Object, e As EventArgs)
        '  RadGrid1.Rebind()
    End Sub

I want all cells in edit mode. there are some samples about "entering edit mode on click" but I dont want that.

any suggestions please ? my code was working in 2011 radgrid versions but not in 2013...
aykut
Top achievements
Rank 1
 answered on 12 Jan 2014
2 answers
296 views
Hi, i have a databound RadHtmlChart pie.
is there a way to explode a SeriesItem indside PieSeries on mouse hover and un explode on move mouse out?
also, in OnClientSeriesClicked is there a way to parse args.get_seriesData()? all i get is [object][object]
thanks.
Yaniv
Top achievements
Rank 1
 answered on 12 Jan 2014
2 answers
201 views
It is my Vb.net code it works perfectly.
Protected Sub ChkTaxCheckedChanged1(ByVal sender As Object, ByVal e As EventArgs)
  
     Dim chkTax As CheckBox
     Dim gv1 As GridDataItem
     chkTax = TryCast(sender, CheckBox)
     gv1 = DirectCast(chkTax.NamingContainer, GridDataItem)
  
     Dim txtAmount1 As Label
     txtAmount1= CType(gv1.OwnerTableView.ParentItem.FindControl("lblItemAmount"), Label)
  
End Sub


But now I want to achieve the same functionality in clientside using JavaScript. Like :
function ChkTaxCheckedChanged1(sender, args) {
  var check = sender.get_parent()..??????
}

How can I do this?

Please help me thanks in advance.
Faraz
Top achievements
Rank 1
 answered on 12 Jan 2014
6 answers
270 views
hello

is that possible to Close Rad window when press outside it

Best Regards
ahmed
Top achievements
Rank 1
 answered on 12 Jan 2014
2 answers
301 views
Hi,

This is a problem similar to the one I had with the HD button. There is no way to hide those options when not required/needed/wanted through the control properties. I'd like to remove the share option (facebook etc.) from my video player. Setting the height/width to 0 under "Social Share" had no effect. Please advise with the required CSS (where it should just be a boolean propery setting within the control).

Thanks.

Barry
Barry
Top achievements
Rank 1
 answered on 12 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?