Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
123 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
79 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
175 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
204 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
136 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
46 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
1 answer
86 views
We are trying to construct a File Explorer type of experience for browsing a file structure that is stored in our database. I explored the RadFileExplorer and found that, while it's tree view was good, the file view side would not show a radgrid with customizable/filterable columns without a whole lot of work, so I'm constructing our file explorer by using  a RadTreeView and a RadGrid instead.

Due to the size of the file structure, I decided to use the RadTreeView's LoadOnDemand. I'm currently using ExpandMode=WebService, since I have to go back to the database for the "values" of the nodes and use my business objects to populate the "text" -- but I don't want to have to deal with the overhead of a postback.

I load the root of the file structure during TreeView_Load:
if(!this.IsPostBack)
{
   tvFolders.Nodes.Add(new RadTreeNode("Files", "1"){ExpandMode = TreeNodeExpandMode.WebService});
}

This is working great when I want to start my file explorer in the root node. However, there are cases in my app when I want to start in a subdirectory. (For example: Files/Folder/SubFolder)

I would like to expand the "Files" node (and populate it's children), the "Folder" node (and populate it's children), and select the "SubFolder" node (so that it fires the SelectedIndexChanged event, which populates the RadGrid). I don't know at design time how deep into the tree I'll need to load, but I will know the entire path (both by Text and by Value) by the time I need to populate the tree in OnLoad.

Is this possible with WebService expand? If so, how can I do it? I've tried just setting Node.Expand=true, but that doesn't seem to populate all the children.

--Christina
Nikolay Tsenkov
Telerik team
 answered on 11 Aug 2011
3 answers
134 views
I cannot hear any CAPTCHA audio in IE8 (for Windows 7), although it works fine in Firefox on the same computer. I have tried multiple computers (all similar configuration) in our office and all have the same issue.

This applies to my own code as well as the sample on demos.telerik.com.

I have the Quicktime add-in installed and enabled for all sites, but do not have Quicktime Player installed.

There is no error, just no sound.

What is required for audio to work and if Quicktime is not installed should it not prompt to install the add-in or revert to the WAV files?
Slav
Telerik team
 answered on 11 Aug 2011
1 answer
100 views
I need to create a drop down menu for a toolbar like the attached image "tbdropdown.png". (I also attached a second image "tbdropdown2.png" to further illustrate the concept.)

Can I do this with the toolbar component? If not, what Telerik components should I use to accomplish this task?

I thought about taking a RadButton and making a dropdown pop below it, and sticking that in the toolbar, but I can't figure out how to make a drop down similar to "tbdropdown.png".

Any assistance as to where I should start, and what components I should use would be greatly appreciated. Thanks!
Kate
Telerik team
 answered on 11 Aug 2011
1 answer
100 views
Hello,

I am getting a "File Not Found" Error when binding SPRadGrid and SPRadListView to a SharePoint List data source.

Please see screen shot.

Can this be fixed? 

Thank you,

David


Tsvetoslav
Telerik team
 answered on 11 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?