Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
446 views
I have a problem when using the RadFormDecorator.
In IE6, when I disable a RadioButtonList (also with RadioButton, CheckBox and CheckBoxList), they are displayed as selected, only the display, but the controls are not really selected.

The following example:
<asp:RadioButtonList ID="rbl_radio_list" runat="server" Enabled="false">
    <asp:ListItem Text="Radio List Item 1" Value="1"></asp:ListItem>
    <asp:ListItem Text="Radio List Item 2" Value="2"></asp:ListItem>
    <asp:ListItem Text="Radio List Item 3" Value="3"></asp:ListItem>
</asp:RadioButtonList>
 
<asp:RadioButton ID="rdb_radio" runat="server" Text="Radio 1" Enabled="false" Checked="false"/>
 
<asp:CheckBoxList ID="cbl_check_list" runat="server" Enabled="false">
    <asp:ListItem Text="Check List Item 1" Value="1"></asp:ListItem>
    <asp:ListItem Text="Check List Item 2" Value="2"></asp:ListItem>
    <asp:ListItem Text="Check List Item 3" Value="3"></asp:ListItem>
</asp:CheckBoxList>
 
<asp:CheckBox ID="cbx_check" runat="server" Text="Check 1" Enabled="false" Checked="false" />
 
<telerik:RadFormDecorator ID="rfd_radio" runat="server" DecoratedControls="RadioButtons"  />
<telerik:RadFormDecorator ID="rfd_check" runat="server" DecoratedControls="CheckBoxes"  />

Bozhidar
Telerik team
 answered on 01 Sep 2011
1 answer
114 views
In my share point application user control, I have a RadEditor and a hyper link. clicking on the hyperlink would open a modaldialog. when user select some data and click on apply button in the modaldialog, the data should automatically insert into the RadEditor. How to achieve this?
Rumen
Telerik team
 answered on 01 Sep 2011
3 answers
112 views
Hi All,

I have created a Rad Grid with Pagination and got a <Select All> button to select all items on current page.

Now, everything works fine, except that when I navigate from 1 page to another then I want to get all selected items count of new page, but what I am getting is selected item of old page.
Eg: I have selected 5 items of Page No. 1, now when I go to Page No. 2, I get selected items as 5 instead of 0.

How to get selected items of clicked (new) page?

Please help me regarding this issue!!!

Dhaval
Pavlina
Telerik team
 answered on 01 Sep 2011
3 answers
99 views
I have a RadAjaxManager in my Master Page, as well as some controls for a 'shopping basket'
On my content page I have a number of user controls, with each one having an 'Add' button. These are added to the page dynamically.
The Ajax settings for the Add buttons are created in code in the Page_Load function.

When one of the add buttons are clicked, it should write a database entry, and then update the shopping basket to show the number of items currently in it.

This works fine, except for the first time a button is clicked.
The first time one of the 'Add' buttons are clicked, the database entry is created as expected, but the shopping basket does not get updated. The second button clicked updates everything as expected and the basket will show 2 items. Buttons then work as expected, with the basket showing correctly.

Putting a breakpoint in the code, all the expected events seem to fire, but the basket is not updated.

I am using Q1 2011, in VS2010 and .NET 4.0

Am I missing something?

Thankyou.

Paul

Pavlina
Telerik team
 answered on 01 Sep 2011
1 answer
66 views
I'm curious what's available in your ASP.Net AJAX package to do one or both of the following:
 - Flowchart - ie. Rectangles containing text linked together with connecting lines
 - Gantt Chart - typically used for scheduling

Note: I realize that the latter can sort of be simulated with a treeview but I wonder if it would have the same visual impact


I'm very familiar with the controls of yours that I've frequently used but not so much with the others.  Hoping you can shed some light onto what's available within your package that I purchased.

Sincerely,

Robert Werner
Vancouver, BC
Sebastian
Telerik team
 answered on 01 Sep 2011
3 answers
419 views

We are binding Generic List of entities (e.g. List<Employee>) with RadGrid (Teleric.Web.UI.dll v2009.2.826.35). We are using GridBoundColumn. Grid gets diplsayed properly. Also it gets exported very well in .pdf and .csv formats. But when we try to export in Excel using ExcelML format, it generates blank excel file. Here is sample code:

 

 

 

 

protected void Page_Load(object sender, EventArgs e)
{
   
}

 

 

 

protected void uxRadListView_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
    SetGridDataSource();
}

 

 

 

public void SetGridDataSource()
{
    uxRadListView.DataSource = GetList();
}

 

 

 

private List<Employee> GetList()
{
    List<Employee> employees = new List<Employee>();
    for (int i = 0; i < 10; i++)
    {
        Employee emp = new Employee();
        emp.EmpId = 100;
        emp.FName = "John";
        employees.Add(emp);
    }
}

 

 

 

protected void uxBtnExport_Click(object sender, EventArgs e)
{
    uxRadListView.ExportSettings.IgnorePaging = true;
    uxRadListView.ExportSettings.OpenInNewWindow = true;
    uxRadListView.ExportSettings.FileName = "EXCEL";

 

 

 

    uxRadListView.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
    uxRadListView.ExportSettings.ExportOnlyData = false;
    uxRadListView.MasterTableView.ExportToExcel();

 

 

 

}

 

 

 

 

 

 

 

 

 

 


Does Telerik support Generic Lists to bind grid? If so, then can somebody help to resolve mentioned issue?. Thank you in advance.
Andreas
Top achievements
Rank 1
 answered on 01 Sep 2011
5 answers
173 views
Here is the design of my page:

I have a TreeView; selecting a node in the view will display a ListView that is filled based on the node.

I also have a search function that displays the ListView filled based on the results of search.

Those functions both work correctly.

My ListView contains a DataPager. The DataPager initializes correctly and matches the contents of the ListView.

My problem is that I can't page. The DataPager itself is changed (page number, etc) but the ListView is static.

RadAjaxManager section
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnRefreshTree">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTreeView1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadTreeView1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadSlider1" />
                <telerik:AjaxUpdatedControl ControlID="DescriptionText" />
                <telerik:AjaxUpdatedControl ControlID="lblTotalAssets" />
                <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="RadDataPager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnSelectAll">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnUnSelectAll">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnRefresh">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadSlider1" />
                <telerik:AjaxUpdatedControl ControlID="lblTotalAssets" />
                <telerik:AjaxUpdatedControl ControlID="RadListView1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadListView1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTreeView1" />
                <telerik:AjaxUpdatedControl ControlID="RadSlider1" />
                <telerik:AjaxUpdatedControl ControlID="DescriptionText" />
                <telerik:AjaxUpdatedControl ControlID="lblTotalAssets" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadDataPager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadSlider1" />
                <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

ListView and DataPager section:
<telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" ItemPlaceholderID="PlaceHolder1"
    OnItemCreated="RadListView1_ItemCreated" OnPreRender="RadListView1_PreRender"
    DataKeyNames="id">
    <LayoutTemplate>
        <div class="RadListView RadListViewFloated RadListView_Windows7">
            <telerik:RadDataPager ID="RadDataPager1" runat="server" Skin="Sitefinity" PageSize="25"
                PagedControlID="RadListView1" BorderWidth="0">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <telerik:RadDataPagerButtonField FieldType="Numeric" />
                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                    <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                    <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                        TextBoxWidth="15" />
                    <telerik:RadDataPagerTemplatePageField>
                        <PagerTemplate>
                            <div style="float: right">
                                <b>Items
                                    <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex + 1%>" />
                                    to
                                    <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.StartRowIndex+Container.Owner.PageSize %>" />
                                    of
                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                    <br />
                                </b>
                            </div>
                        </PagerTemplate>
                    </telerik:RadDataPagerTemplatePageField>
                </Fields>
            </telerik:RadDataPager>
            <div id="PlaceHolder1" runat="server" />
        </div>
    </LayoutTemplate>
    <ItemTemplate>
        <div style="float: left;">
            <fieldset style="border: 0; width: 154px; height: 154px; margin: 5px 5px 5px 5px;">
                <div class="myClass" style="padding: 2px 2px 2px 2px; background: #eeeeee; text-align: center;">
                    <a href="javascript:Popup_Window('asset_preview','<%# Eval("id") %>')">
                        <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" AutoAdjustImageControlSize="False"
                            CssClass="myClass" ImageUrl='<%# Eval("thumbUrl") %>' ResizeMode="Fit" AlternateText="Click to view preview"
                            ToolTip="Click to view preview" Width="150px" Height="150px" />
                    </a>
                </div>
            </fieldset>
            <div style="border: 0px; white-space: normal; width: 150px; margin: 5px 5px 5px 5px;
                padding: 2px 2px 2px 2px;">
                <asp:CheckBox ID="chkImage" runat="server" AutoPostBack="True" />
                <a href="javascript:Popup_Window('asset_detail','<%# Eval("id") %>')">
                    <%# Eval("title") %>
                    -
                    <%# Eval("filenameextension") %></a>
                <%--<asp:HyperLink ID="lnkAsset" Target="_new" NavigateUrl="assetinfo.aspx" runat="server"><%# Eval("filename") %></asp:HyperLink>--%>
                <asp:HiddenField ID="hiddenAssetId" Value='<%# Eval("id") %>' runat="server" />
            </div>
        </div>
    </ItemTemplate>
    <EmptyDataTemplate>
        No Assets Found
    </EmptyDataTemplate>
</telerik:RadListView>
Maria Ilieva
Telerik team
 answered on 01 Sep 2011
0 answers
94 views
 Hi ,
Scheduler Appointment Visible for only start date and End date comes from db, but
if i End Date  Empty/ Null from Database then Rad Scheduler appointment not visible.
Please help me here,

Thanks




NEMEE
Top achievements
Rank 1
 asked on 01 Sep 2011
1 answer
320 views
Hi Every one,

I am trying to expand the list of the rows on click of the checkbox which is in the TreelistTempelatecolumn.I am not able to maintain the state of the variables.Can anyone help me please.

This is what I am doing
<telerik:RadPanelItem Value="CandidateInformation" runat="server">
                        <ItemTemplate>
                            <telerik:RadTreeList ID="rtlSpecsGroup" Width="40%" runat="server" DataSourceID="sdsTreeView"
                                    ParentDataKeyNames="PARENTID" AllowSorting="true" DataKeyNames="CATGROUPID" AllowMultiItemSelection="false"
                                 AutoGenerateColumns="false" OnItemDataBound="OnItemDataBound_rtlSpecsGroup" >
                                <Columns>
                                    
                                    <telerik:TreeListTemplateColumn UniqueName="chkTempelatecolumn" DataField="CATGROUPID" ItemStyle-Width="30px" HeaderStyle-Width="30px">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkGroups" runat="server" AutoPostBack="True" OnCheckedChanged="OnCheckedChanged_chkGroups"/>
                                        </ItemTemplate>
                                    </telerik:TreeListTemplateColumn>
                                   
                                    <telerik:TreeListBoundColumn UniqueName="NAME" HeaderText="Experience" DataField="NAME" ReadOnly="true"></telerik:TreeListBoundColumn>
                                    <telerik:TreeListTemplateColumn UniqueName="rblTempelatecolumn" HeaderText="YearsOfExperience">
                                        <ItemTemplate>
                                            <asp:RadioButtonList ID="rblYearsOfExp" runat="server" Enabled="false" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                                <asp:ListItem Text="0-5" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="6-10" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="11-15" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="16-20" Value="4"></asp:ListItem>
                                                <asp:ListItem Text="20+" Value="5"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </ItemTemplate>
                                    </telerik:TreeListTemplateColumn>
                                    <telerik:TreeListBoundColumn UniqueName="CATGROUPID" DataField="CATGROUPID" Visible="false" ReadOnly="true"></telerik:TreeListBoundColumn>
                                </Columns>
                            </telerik:RadTreeList>
                            <telerik:RadButton ID="rbtnCINext" runat="server" Text="Next>>" OnClick="rbtnCINext_OnClick">
                            </telerik:RadButton>
                            
                        </ItemTemplate>
                    </telerik:RadPanelItem>
on the code side this is what i am doing

    protected void OnCheckedChanged_chkGroups(object sender, EventArgs e)
    {
        RadPanelItem CandidateInformation = rpbMainInfo.FindItemByValue("CandidateInformation");
        RadTreeList rtlSpecsGroup = (RadTreeList)CandidateInformation.FindControl("rtlSpecsGroup");
        ((sender as CheckBox).NamingContainer as TreeListDataItem).Selected = (sender as CheckBox).Checked;
            foreach (TreeListDataItem tlTreeName in rtlSpecsGroup.Items)
            {
                string ParentId = tlTreeName["CATGROUPID"].Text;
                RadioButtonList rbtnlist = (RadioButtonList)tlTreeName.FindControl("rblYearsOfExp");
                if ((sender as CheckBox).Checked == true)
                {
                    if (tlTreeName.Selected == true)
                    {
                        if (ParentId == "1" || ParentId == "2" || ParentId == "3" || ParentId == "4")
                        {
                            tlTreeName.Expanded = true;
                          
                        }
                        
                    }
                   
                }
              
            }   
        
    }
what I am doing is On click of the check box I am trying to expand the parent item and also make the row selected.this part is working but the checkbox which I checked doesn't maintain.It returns the selected column with unchecked check box column.Itried with different styles but did not work out for me .Please let me know the best solution for the above problem

Thanks InAdvance,
Sravz
Veli
Telerik team
 answered on 01 Sep 2011
3 answers
238 views
Hi all,

This does not work when I call this from my server side code.

I get an error :'null is null or not an object.'

It seems that the documentation rarely mentions how to reference jscript from server side code and there are not enough examples to demonstrate this.

According to your documents I used:

var button = $find("<%= RadbuttonID.ClientID %>");



My code from the server is called onindexchanged of my combobox:

public void RadComboBox4_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
 
            ScriptManager.RegisterStartupScript(this, this.GetType(), "fireClientEvent", "changeButtonState()", true);
                        
 
        }

My javascript and ASPX code is:

function changeButtonState()
       {
          //alert('test popup');
           var button = $find("<%= btnSelectDeal.ClientID %>");
           alert(button.get_text());
        
      }

<telerik:RadButton runat="server" Text="Select" ID="btnSelectDeal"
                 UseSubmitBehavior="False"  Skin="Telerik"
                 OnClick="btnSelectDeal_Click" onclientclicked="OnClientClicked" >
            </telerik:RadButton>

I can get the first alert in my jscript to fire but not the second one. Any ideas? I have this script in my code in my RadScriptBlock.


Thanks
Svetlina Anati
Telerik team
 answered on 01 Sep 2011
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?