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

    I am using scale breaks for my bar chart and I am wondering how to adjust the value at which the scale break occurs. There is a property - valueTolerance but it accepts a BYTE value and I am not sure how to use it. Or is there a way I could do specific customizations using the axisSegment property?

Can anybody help?

Thanks,
wayne
Ves
Telerik team
 answered on 02 Feb 2010
2 answers
162 views
I have two columns in a radgrid. 

Column1 = Client
Column2 = Category

The catgory column is related to employees.  When I select edit item on the grid i need my category dropdownlist to only show categories for that client.  And if I switch the client in edit item mode i need the category drop down list to update to reflect the new categories.


Thanks,

Jon
Jon Markee
Top achievements
Rank 1
 answered on 02 Feb 2010
2 answers
157 views
I get the feeling that I will have to upgrade to a new version of Telerik.Web.UI to use the ListView, is this correct?

Currently I am on version 2008.03.1314.35 and I get the following error Unknown server tag telerik:RadListView 
Mike
Top achievements
Rank 1
 answered on 02 Feb 2010
1 answer
137 views
Hi,
    
 The attachment is the error i am getting when i deploy my application in the IIS. It's working fine with visual studio but i don't know y i m getting this error after deploying.

I haven't used any rad script manager in the application still it's refering to it.can you please help me in this regard and resolve the issue.

Thanks & Regards
        Rajesh
Vesko
Top achievements
Rank 2
 answered on 02 Feb 2010
1 answer
132 views
When I enable reordering in a list box as well as multiple-select, the control doesn't reorder the items properly. Example:
Initial List:
Text     SortID
A            1
B            2
C            3
D            4
E            5

If you select C, D & E and drag them between A&B, you should get a list sorted like A C D E B.  However, here's what you get:
Text    SortID
A            2
B            3
C            4
D            5
E            3

Which results in an order of A E B C D (it effectively only moves the last item you selected).  Actually, it is not even predictible since sortID 3 is duplicated.

This looks very much like a bug - is there a workaround or a fix available?
Yana
Telerik team
 answered on 02 Feb 2010
1 answer
84 views
I am building a Google like filtering radgrid composite component which will be used on multiple projects\multiple pages.  I am looking for best practices on how to dynamically build the Google like filtering feature when the number of columns is unknown.
Pavlina
Telerik team
 answered on 02 Feb 2010
2 answers
429 views
I have a web control with a RadTabStrip, and when I call $find(), I'm getting NULL.  I know I must be doing something wrong, but for the life of me I don't know what.  Currently, I have both the RadTabStrip markup and the javascript that is calling $find() in the same .ascx file, and it's still not working.

Any ideas where I am going wrong?

<div runat="server"
    <telerik:RadTabStrip ID="radTabStrip" runat="server" Skin="Sunset" 
            MultiPageID="mpageTabs" SelectedIndex="0"
        <Tabs> 
            <telerik:RadTab Text="Graph"></telerik:RadTab> 
            <telerik:RadTab Text="Table"></telerik:RadTab> 
            <telerik:RadTab Text="Criteria"></telerik:RadTab> 
        </Tabs> 
    </telerik:RadTabStrip> 
    <telerik:RadMultiPage ID="mpageTabs" runat="server" SelectedIndex="0"
        <telerik:RadPageView ID="pageGraph" runat="server"
        </telerik:RadPageView> 
 
        <telerik:RadPageView ID="pageChart" runat="server"
        </telerik:RadPageView> 
 
        <telerik:RadPageView ID="pageCriteria" runat="server"
        </telerik:RadPageView> 
         
    </telerik:RadMultiPage> 
 
</div> 
 
<script type="text/javascript"
    function getRadTabStrip() 
    { 
        debugger; 
        var clientId = "<%= radTabStrip.ClientID %>"
        var tabStrip = $find(clientId); 
        return tabStrip; 
    } 
</script> 
 

Jeff
Top achievements
Rank 1
 answered on 02 Feb 2010
1 answer
129 views

Hi guys,

I have been asked to output the RadGrid content to a PDF. I have used the following formatting code to do the formatting when the item is being created.
Note: that the Grid uses GroupBy headings (in which I am having trouble formatting)

Protected Sub RadGrid_ItemCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgResults.ItemDataBound  
        If (TypeOf e.Item Is GridDataItem OrElse TypeOf e.Item Is GridHeaderItem) Then 
 
            'to align the field left in the PDF even tho it looks ok on the webpage  
            For Each cell As TableCell In e.Item.Cells  
                cell.Style("text-align") = "left" 
            Next 
 
   
 
            Select Case e.Item.ItemType 'Mimic RadGrid appearance for the exported PDF file  
                Case GridItemType.Item  
                    e.Item.Style("background-color") = "#E8E8E8" 
                    Exit Select 
                Case GridItemType.AlternatingItem  
                    e.Item.Style("background-color") = "#FFFFFF" 
                    Exit Select 
                Case GridItemType.GroupHeader  
                    e.Item.Style("background-color") = "#000000" 
                    e.Item.Style("color") = "#FFFFFF " 
                    Exit Select 
                Case GridItemType.Header  
                    e.Item.Style("background-color") = "#000000" 
                    e.Item.Style("color") = "#FFFFFF" 
                    Exit Select 
            End Select 
        End If 
    End Sub 
 
 

 

 

Im assuming that the following code will format the groupby headings in the table however in the PDF it is in plain black text and not with a black background and white text: 

                Case GridItemType.GroupHeader
                    e.Item.Style("background-color") = "#000000"
                    e.Item.Style("color") = "#FFFFFF "
                    Exit Select

Any comments will be grateful,

Thanks

Daniel
Telerik team
 answered on 02 Feb 2010
1 answer
92 views
Hey all, I have a very interesting thing happening with my code and I'm hoping someone can at least point me in the right direction of a solution.

I have a page with a RadAjaxManager, a RadTabStrip that is associated with a RadMultiPage control.  Inside one of the RadPageView controls of the RadMultiPage control is a UserControl that I have created.  In that UserControl I have a RadAjaxManagerProxy (to communicate with the RadAjaxManager on the page), and a RadGrid.  The problem I'm having is that whenever there is an Ajax postback from any of the buttons or drop down lists in the UserControl, when the postback is completed, the RadGrid is somehow rendered in a different place.  It's being put at the end of the RadMultiPageControl, after all of the <div>s of the RadPageView controls.

If I didn't explain that well enough, let me know and I'll try again.

Is there anything special I need to know about having a RadGrid in a UserControl, or using a RadAjaxManagerProxy in a UserControl?  I'm really at a loss as to why this control is seemingly jumping to this new position (outside of it's parent control) upon Ajax postback.
Pavlina
Telerik team
 answered on 02 Feb 2010
1 answer
89 views

I didnot get the proper search results when i try to find (Bind template fields like (text box / dropdown) in Hierarchical / Details table in Grid). So, i posted here for just documentation purposes.
 

 <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" 
                        AllowSorting="True" GridLines="None" AutoGenerateColumns="False" Skin="WebBlue" 
                        EnableEmbeddedSkins="False" AllowMultiRowSelection="True">  
                        <MasterTableView TableLayout="Fixed" CellSpacing="-1" HierarchyLoadMode="Client" 
                            DataKeyNames="parent_Id">  
                            <DetailTables> 
                                <telerik:GridTableView Name="DetailsTable1" Width="100%" AllowFilteringByColumn="False" 
                                    runat="server">  
                                    <Columns> 
                                        <telerik:GridClientSelectColumn HeaderText="" UniqueName="CheckboxSelectColumn" HeaderStyle-Width="35px" 
                                            ItemStyle-Width="35px" /> 
 
                                        <telerik:GridBoundColumn FilterControlWidth="75px" DataField="child_Id" HeaderText="CHILD ID" 
                                            SortExpression="child_Id" UniqueName="child_Id" /> 
 
                                        <telerik:GridTemplateColumn HeaderText="RANK" AllowFiltering="False" SortExpression="Rank" 
                                            UniqueName="Rank">  
                                            <ItemTemplate> 
                                                <telerik:RadNumericTextBox ID="radRankInsideGrid" runat="server" NumberFormat-DecimalDigits="0" 
                                                    NumberFormat-GroupSeparator="" Type="Number" MaxLength="6" Width="40px" DataType="Integer">  
                                                </telerik:RadNumericTextBox> 
                                            </ItemTemplate> 
                                            <HeaderStyle HorizontalAlign="Center" /> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn> 
 
                                        <telerik:GridTemplateColumn HeaderText="SELECTED" AllowFiltering="False" SortExpression="SelectedDesc" 
                                            UniqueName="Selected">  
                                            <ItemTemplate> 
                                                <telerik:RadComboBox ID="radSelectedInsideGrid" DataTextField="SelectedDesc" DataValueField="SelectedID" 
                                                    Width="100px" runat="server" EnableLoadOnDemand="true" AllowCustomText="false" 
                                                    OnItemsRequested="radSelectedInsideGrid_ItemsRequested" /> 
                                            </ItemTemplate> 
                                            <HeaderStyle HorizontalAlign="Center" /> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn> 
                                         
                                    </Columns> 
                                </telerik:GridTableView> 
                            </DetailTables> 
                            <Columns> 
                                <telerik:GridBoundColumn  Visible="False" DataField="parent_Id" UniqueName="parent_Id" /> 
                                <telerik:GridBoundColumn DataField="Name" HeaderText="NAME" SortExpression="Name" 
                                    UniqueName="Name" FilterControlWidth="75%" /> 
                                <telerik:GridBoundColumn DataField="Type" HeaderText="TYPE" SortExpression="Type" 
                                    UniqueName="Type" FilterControlWidth="75%" /> 
                                <telerik:GridDateTimeColumn DataFormatString="{0:d}" DataField="StartDate" 
                                    FilterListOptions="VaryByDataType" HeaderText="START DATE" SortExpression="StartDate" 
                                    UniqueName="StartDate" HeaderStyle-Width="140px" FilterControlWidth="100px" /> 
                           </Columns> 
                        </MasterTableView>         
 </telerik:RadGrid> 

code behind:

Private Sub RadGrid1_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource  
   If Not e.IsFromDetailTable Then 
      RadGrid1.DataSource = ParentBindData()  
   End If 
End Sub

 

 Private Sub RadGrid1_DetailTableDataBind(ByVal source As ObjectByVal e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles RadGrid1.DetailTableDataBind  
        Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)  
        Select Case e.DetailTableView.Name.ToUpper()  
            Case "DETAILSTABLE1" 
                Dim obj As New ClassName  
                obj.Id = dataItem.GetDataKeyValue("parent_Id").ToString()  
                  
                e.DetailTableView.DataSource = obj.bindResults()  
 
                objPI = Nothing 
        End Select 
 End Sub 

 

 Private Sub RadGrid1_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound  
        If e.Item.OwnerTableView.Name = "DetailsTable1" And _  
        (e.Item.ItemType = GridItemType.Item Or e.Item.ItemType = GridItemType.AlternatingItem) Then 
 
            'Grid Item  
            Dim objGridItem As GridDataItem  
            objGridItem = CType(e.Item, GridDataItem)  
 
            'Rank  
            Dim objRadTextBox As RadNumericTextBox  
            objRadTextBox = CType(objGridItem("Rank").FindControl("radRankInsideGrid"), RadNumericTextBox)  
            If Not IsNothing(objRadTextBox) Then 
                objRadTextBox.Text = e.Item.DataItem("Rank").ToString()  
            End If 
 
            'Selected, re-using the same objRadComboBox object.  
            Dim objRadComboBox1 As RadComboBox  
            objRadComboBox1 = CType(objGridItem("Selected").FindControl("radSelectedInsideGrid"), RadComboBox)  
            If Not IsNothing(objRadComboBox1) And e.Item.DataItem("SelectedID").ToString() <> String.Empty Then 
                GetSelectedLKUP(objRadComboBox1)  
                objRadComboBox1.SelectedValue = e.Item.DataItem("SelectedID").ToString()  
            End If 
 
        End If 
    End Sub 

 

 Private Sub GetSelectedLKUP(ByVal objRadComboBox As RadComboBox, Optional ByVal customText As String = "")     
        Dim objLookup As New Lookup     
        Dim objDataSet As DataSet = objLookup.bindSelectedLKUP()     
    
        objRadComboBox.DataSource = objDataSet     
        objRadComboBox.DataBind()     
    
        objLookup = Nothing    
 End Sub    
 
    Protected Sub radSelectedInsideGrid_ItemsRequested(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)     
        Dim objRadComboBox As RadComboBox = DirectCast(sender, RadComboBox)     
        objRadComboBox.Items.Clear()     
        GetSelectedLKUP(objRadComboBox, e.Text)     
    End Sub   
Radoslav
Telerik team
 answered on 02 Feb 2010
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?