Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
42 views
Hello,

I want to add link in Rad Scheduler header and I am using latest 2011 version of telerik control.
can you give me some solution for this.

Thanks
Wajahat
Peter
Telerik team
 answered on 11 Aug 2011
3 answers
133 views
Hello, i'm having a problem with the scrools look on Telerik Controls i'm using radGrids and RadListBox and the scrool have the Windows 98 appearance....

My Telerik controls version is Q2 2011
Ricardo
Top achievements
Rank 1
 answered on 11 Aug 2011
1 answer
74 views
Hi,
I have requirement that no one can delete default grouping. User can add more columns for grouping and can delete them but i have added one column as default group that column can not be deleted from Grouping section.
 Hope you understand.

Image is attached for better understanding.

Thanks....
Rajneesh
Top achievements
Rank 2
 answered on 11 Aug 2011
6 answers
113 views
Hello!

I am experiencing a performance issue when dynamically adding items to a RadContextMenu in the client.  I am using the following call:

Menu.get_items().add(menuItem);

Each call is taking between 30 to 70 ms according to my measurements on my machine in IE9/W7!  Is there some workaround to increase the performance? 

(I am loading up to 50 items)

Best regards,
Ragnar
Kate
Telerik team
 answered on 11 Aug 2011
2 answers
110 views

Hi All,

I have a radcombox, I have a add button right next to rad combox, If the user chooses something from the rdcombox box, the items moves from the combox to the listbox. I applied radAjaxmanager on the add button so that no postback can be seen if add button is clicked. I am making a panel visible in the code behing once the add button is clicked. when i apply teh ajax on the add button, the panel does not become visible. below is my code.

<td style="width: 160px" valign="top">
                   <telerik:RadComboBox ID="RadComboBox_Filter" runat="server" Width="156px" OnClientSelectedIndexChanging="RadComboBox_Loads"
                       OnItemsRequested="RadComboBox_filters_ItemsRequested" EnableLoadOnDemand="True"
                       AllowCustomText="True" EmptyMessage="Select Filters" HighlightTemplatedItems="True"
                   </telerik:RadComboBox>
               </td>
               <td valign="top">
              
                   <telerik:RadButton runat="server" Text="Add" Width="60px" OnClick="btnAdd_Click"
                       ID="btnAdd" SplitButtonCssClass="" SplitButtonPosition="Right">
                   </telerik:RadButton>
                  
               </td>
               <td rowspan="5" valign="top" colspan="10">
                     
                   <telerik:RadListBox ID="radList_Systems" runat="server" Height="65px" 
                       Width="200px" oninserted="radList_Systems_Inserted" 
                         
                   </telerik:RadListBox>
               </td>
              
           </tr>
   <telerik:RadAjaxManager runat="server">
       <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="btnAdd">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="radList_Systems" />
               </UpdatedControls>
           </telerik:AjaxSetting>
           <telerik:AjaxSetting AjaxControlID="btnRemove">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="radList_Systems" />
               </UpdatedControls>
           </telerik:AjaxSetting>
       </AjaxSettings>
   </telerik:RadAjaxManager>

any help will be appreciated.
Maria Ilieva
Telerik team
 answered on 11 Aug 2011
1 answer
63 views
HI,

    We require to export the Scheduler to ICalendar with custom attributes, is it possible? if yes, then how?

Thanks
Peter
Telerik team
 answered on 11 Aug 2011
1 answer
156 views
Hi,

I 'm using RadGrid to display data and allow users to change the data.  The constraint I have is that the number of columns to be displayed varies depending on the user's search criteria.  Therefore, I don't predefine the grid columns at design time, rather, I set the grid to AutoGenerateColumn="true" and the columns are generated automatically based on a datatable returned by a stored procedure.

I'm also using EditMode="InPlace" to allow users to edit any cell(s) in the grid in place (some columns are set to readyOnly to disable editing).  When user clicks an UpdateAll button, the code captures the changed values from the grid cells and updates the database.

That all works very well.

Now, I would like to do the following:

1. Display one of the columns as a dropdown list, e.g. country code (so users can change the selection).  I don't know how to, at run time, change an auto-generated column to a dropdown and correctly bind the dropdown to the right datasource.  I presume this is all doable?  Can any one point me to the right direction, or sample codes?  Again, the key is: change an auto-genearted column to dropdown at run time. 

Thanks in advance.

Barry
Tsvetina
Telerik team
 answered on 11 Aug 2011
1 answer
185 views
We have RadGrids on several pages which all work in the same way and all show the same problem.

They all have EnableHeaderContextFilterMenu set to true and they all only work every other time the users try to filter using this method. When other commands on the header centext menus are called the Page_Load and Page_Init are only called once, However when filtering these sections are called twice, with different values for Page.IsPostBack and RadAjaxManager1.IsAjaxRequest

Let me go through a sequence of events:
User Navigates to the Page
    Page_Load gets called
        Page.IsPostBack = False
        RadAjaxManager1.IsAjaxRequest = False

So far this is exactly what I would expect
Now Lets try to filter the grid

Filter Request = qty Greater Than 2000
    Page_Load
        Page.IsPostBack = False
        RadAjaxManager1.IsAjaxRequest = False
    Page_Load
        Page.IsPostBack = True
        RadAjaxManager1.IsAjaxRequest = True

So the Grid is now filtered correctly but the AjaxLoadingPanel did not appear whilst it was working on the server side, and Page_Load is called twice.
So lets change the filter now to be Less than 2000 rather than Greater than.

Filter Request = qty Less Than 2000 - AjaxLoadingPanel is Activated
    Page_Load
        Page.IsPostBack = True
        RadAjaxManager1.IsAjaxRequest = False
    Page_Load
        Page.IsPostBack = True
        RadAjaxManager1.IsAjaxRequest = True

Notice the different value of IsPostBack the first time Page_Load is called now. This time theAjaxLoadingPanel is shown but the Page actually performs a full Postback and the contents of the grid are left as they were showing the values Greater than 2000.

Does anyone have a clue as to what might be causing this strange behaviour?






Maria Ilieva
Telerik team
 answered on 11 Aug 2011
4 answers
119 views
http://s284.photobucket.com/albums/ll18/mdewind/?action=view&current=ChartImageCAWB72VY.png

This is the image of my bar chart, and as you can see some series have items that are randomly invisible but show the % of the data. Also there's grey text for the 2 right series even though I have tried specifying for them to be black. Is there a reason the bars are invisible and the text is ignoring the color I am specifying?



Code:

<telerik:RadChart ID="RadChart1" runat="server" DataSourceID="SqlDataSource1"
                Height="650px" Skin="Default" Width="1100px" AutoLayout="True">
                <Appearance>
                    <Border Color="134, 134, 134" />
                </Appearance>
                <Series>
                    <telerik:ChartSeries Name="Unspecified" DataYColumn="Group1Perc"
                        DefaultLabelValue="#Y%">
                        <Appearance>
                            <FillStyle FillType="Solid" MainColor="11, 111, 21" GammaCorrection="False">
                            </FillStyle>
 
<TextAppearance TextProperties-Color="Black"></TextAppearance>
 
<Border Color="69, 115, 167" Visible="False" Width="0"></Border>
                        </Appearance>
                    </telerik:ChartSeries>
                    <telerik:ChartSeries Name="Routine visit, unspecified purpose"
                        DataYColumn="Group2Perc" DefaultLabelValue="#Y%">
                        <Appearance>
                            <FillStyle FillType="Solid" MainColor="111, 11, 99" GammaCorrection="False">
                            </FillStyle>
 
<TextAppearance TextProperties-Color="Black"></TextAppearance>
 
<Border Color="107, 70, 68" Visible="False" Width="0"></Border>
                        </Appearance>
                    </telerik:ChartSeries>
                    <telerik:ChartSeries DataYColumn="Group3Perc" DefaultLabelValue="#Y%"
                        Name="Contracting discussion/negotiation">
                        <Appearance>
                            <FillStyle FillType="Solid" MainColor="0, 0, 153" GammaCorrection="False">
                            </FillStyle>
 
<TextAppearance TextProperties-Color="Black"></TextAppearance>
 
<Border Color="136, 166, 78" Visible="False" Width="0"></Border>
                        </Appearance>
                    </telerik:ChartSeries>
                    <telerik:ChartSeries DataYColumn="Group4Perc" DefaultLabelValue="#Y%"
                        Name="Present/discuss new biopharmaceutical company product data">
                        <Appearance>
                            <FillStyle FillType="Solid" MainColor="196, 196, 196" GammaCorrection="False">
                            </FillStyle>
 
<TextAppearance TextProperties-Color="Black"></TextAppearance>
 
<Border Color="113, 88, 143" Visible="False" Width="0"></Border>
                        </Appearance>
                    </telerik:ChartSeries>
                    <telerik:ChartSeries DataYColumn="Group5Perc" DefaultLabelValue="#Y%"
                        Name="Discuss new competitor product data ">
                        <Appearance>
                            <FillStyle FillType="Solid" MainColor="84, 208, 116" GammaCorrection="False">
                            </FillStyle>
 
<TextAppearance TextProperties-Color="Black"></TextAppearance>
 
<Border Color="66, 152, 175" Visible="False" Width="0"></Border>
                        </Appearance>
                    </telerik:ChartSeries>
                    <telerik:ChartSeries DataYColumn="Group6Perc" DefaultLabelValue="#Y%"
                        Name="Discuss new entrant (brand or generic) ">
                        <Appearance>
                            <FillStyle FillType="Solid" MainColor="166, 42, 151" GammaCorrection="False">
                            </FillStyle>
 
<TextAppearance TextProperties-Color="Black"></TextAppearance>
 
<Border Color="219, 132, 61" Visible="False" Width="0"></Border>
                        </Appearance>
                    </telerik:ChartSeries>
                    <telerik:ChartSeries DataYColumn="Group7Perc" DefaultLabelValue="#Y%"
                        Name="Present/discuss value added program/distribute value added materials ">
                        <Appearance>
                            <FillStyle FillType="Solid" MainColor="3, 122, 231" GammaCorrection="False">
                            </FillStyle>
                            <TextAppearance TextProperties-Color="Black">
                            </TextAppearance>
                            <Border Visible="False" Width="0" />
                        </Appearance>
                    </telerik:ChartSeries>
                    <telerik:ChartSeries DataYColumn="Group8Perc" DefaultLabelValue="#Y%"
                        Name="Other">
                        <Appearance>
                            <FillStyle FillType="Solid" MainColor="134, 134, 134" GammaCorrection="False">
                            </FillStyle>
                            <TextAppearance TextProperties-Color="Black">
                            </TextAppearance>
                            <Border Visible="False" Width="0" />
                        </Appearance>
                    </telerik:ChartSeries>
                </Series>
                <Legend>
                    <Appearance Dimensions-Margins="1px, 1px, 1px, 1px"
                        Dimensions-Paddings="2px, 8px, 6px, 3px" Overflow="Row"
                        Position-AlignedPosition="Bottom">
                        <ItemTextAppearance TextProperties-Color="Black">
                        </ItemTextAppearance>
                        <ItemMarkerAppearance Figure="Square">
                        </ItemMarkerAppearance>
                        <Border Visible="False" />
                    </Appearance>
                </Legend>
                <PlotArea>
                    <XAxis AutoScale="False" DataLabelsColumn="XLabel" MaxValue="7" MinValue="1"
                        Step="1">
                        <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134">
                            <MajorGridLines Color="134, 134, 134" Width="0" />
                            <TextAppearance TextProperties-Color="Black">
                            </TextAppearance>
                        </Appearance>
                        <AxisLabel>
                            <TextBlock>
                                <Appearance TextProperties-Color="Black">
                                </Appearance>
                            </TextBlock>
                        </AxisLabel>
                        <Items>
                            <telerik:ChartAxisItem Value="1">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="2">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="3">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="4">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="5">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="6">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="7">
                            </telerik:ChartAxisItem>
                        </Items>
                    </XAxis>
                    <YAxis AutoScale="False" MaxValue="100" MinValue="0" Step="10">
                        <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134"
                            MinorTick-Color="134, 134, 134" MajorTick-Visible="False"
                            MinorTick-Visible="False">
                            <MajorGridLines Color="134, 134, 134" Visible="False" />
                            <MinorGridLines Color="134, 134, 134" Visible="False" />
                            <TextAppearance TextProperties-Color="Black">
                            </TextAppearance>
                        </Appearance>
                        <AxisLabel>
                            <TextBlock>
                                <Appearance TextProperties-Color="Black">
                                </Appearance>
                            </TextBlock>
                        </AxisLabel>
                        <Items>
                            <telerik:ChartAxisItem>
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="10">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="20">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="30">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="40">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="50">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="60">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="70">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="80">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="90">
                            </telerik:ChartAxisItem>
                            <telerik:ChartAxisItem Value="100">
                            </telerik:ChartAxisItem>
                        </Items>
                    </YAxis>
                    <Appearance Dimensions-Margins="90px, 50px, 170px, 50px">
                        <FillStyle FillType="Solid" MainColor="" SecondColor="">
                        </FillStyle>
                    </Appearance>
                </PlotArea>
                <ChartTitle>
                    <Appearance>
                        <FillStyle MainColor="">
                        </FillStyle>
                    </Appearance>
                    <TextBlock Text="Original Purpose(s) of Meeting">
                        <Appearance TextProperties-Color="Black" TextProperties-Font="Arial, 18px">
                        </Appearance>
                    </TextBlock>
                </ChartTitle>
            </telerik:RadChart>
Evgenia
Telerik team
 answered on 11 Aug 2011
1 answer
40 views
I put together a grid of categories that are self referencing which worked like expected. How I need to add in a detail table of products that could be associated with any level of the existing hierarchy. Please see the following for an example hierarchy:

Category 1
    Category 1a
    Category 1b
        Category 1b1
        Products for category 1b1
Category 2
    Category 2a
    Products for category 2a
Category 3

I am having issues adding the detail information. When I select to expand hierarchy from the main list of categories, nothing happens. None of the child categories appear and none of the products appear.
<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Web20" 
    OnItemCreated="RadGrid1_ItemCreated"  
    OnItemDataBound="RadGrid1_ItemDataBound" OnColumnCreated="RadGrid1_ColumnCreated"
    AutoGenerateColumns="False" ShowStatusBar="True"
    CellSpacing="0" GridLines="None" AllowAutomaticInserts="True">
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    <MasterTableView DataKeyNames="CATEGORY_CDE, PARENT_CDE" ShowHeader="true" 
        HierarchyDefaultExpanded="false" AllowSorting="true" 
        CommandItemDisplay="Bottom" editmode="InPlace" InsertItemDisplay="Bottom">
        <SelfHierarchySettings KeyName="CATEGORY_CDE" ParentKeyName="PARENT_CDE" />
        <DetailTables>
            <telerik:GridTableView runat="server" DataKeyNames="Category_Cde,Product_Cde" 
                DataMember="ProductList">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="Category_Cde" 
                        MasterKeyField="Category_Cde" />
                </ParentTableRelation>
                <CommandItemSettings ExportToPdfText="Export to PDF" />
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </telerik:GridTableView>
        </DetailTables>
    <CommandItemSettings ExportToPdfText="Export to PDF" 
            AddNewRecordText="Add New Category"></CommandItemSettings>
    <Columns>
        <telerik:GridExpandColumn FilterControlAltText="Filter ExpandColumn column" 
            Visible="True">
        </telerik:GridExpandColumn>
        <telerik:GridBoundColumn DataField="Category_Cde" UniqueName="Category_Cde" Visible="true">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Parent_cde" UniqueName="Parent_cde" Visible="true">
        </telerik:GridBoundColumn>
    </Columns>
    <EditFormSettings>
    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
    </EditFormSettings>
    </MasterTableView>
    <ClientSettings AllowExpandCollapse="true" />
    <FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>

Protected Sub RadGrid1_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
    bindRadDataGrid()
End Sub
Sub bindRadDataGrid()
    Dim db As New WebCatVB.category
    categoryListInfo = db.GetCategoryList()
    RadGrid1.DataSource = categoryListInfo
End Sub
Protected Sub RadGrid1_DetailTableDataBind(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles RadGrid1.DetailTableDataBind
    Dim parentItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
    If parentItem.Edit Then
        Return
    End If
    If (e.DetailTableView.DataMember = "ProductList") Then
        Dim db As New WebCatVB.product
        Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
        Dim cat As String = dataItem.GetDataKeyValue("CATEGORY_CDE").ToString()
        e.DetailTableView.DataSource = db.GetProductList(cat)
    End If
End Sub

Could someone take a quick look at the above code and let me know where my logic when wrong. I looked at similar forums but was unable to find what I was overlooking. Any assistance would be greatly appreciated.

Thanks!
Tsvetina
Telerik team
 answered on 11 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?