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

We used radgrid pagination function on our pages, our 508 team find there is issue for the pagination. Focus is lost when the user tabs to the page number link ( e.g 1, 2, 3 for page number) . The dotted border that denotes focus disappears on this link.

Is there any way to address this issue?

Thanks,
Wei
Maria Ilieva
Telerik team
 answered on 15 Mar 2011
1 answer
103 views
Hi,
We used pagination for Radgrid in our pages. There is a layout table being used to display the Page Size dropdown( see attached screen shot).
1. This layout table has a table summary attribute of "combobox" defined. ( see below source code). 

<table class="" summary="combobox" style="border-width: 0pt;" border="0" cellpadding="0" cellspacing="0">
<tbody><tr class="rcbReadOnly">
<td class="rcbInputCell rcbInputCellLeft" style="width: 100%;"><input autocomplete="off" name="ctl00$cphContent$ExceptionRequestRadGrid$ctl00$ctl03$ctl01$PageSizeComboBox" class="rcbInput" id="ctl00_cphContent_ExceptionRequestRadGrid_ctl00_ctl03_ctl01_PageSizeComboBox_Input" value="10" readonly="readonly" type="text"></td><td class="rcbArrowCell rcbArrowCellRight"><a id="ctl00_cphContent_ExceptionRequestRadGrid_ctl00_ctl03_ctl01_PageSizeComboBox_Arrow" style="overflow: hidden; display: block; position: relative; outline: medium none;">select</a></td>
</tr>
</tbody>
</table>

Our 508 team suggested that since this is not real data table, summary attribute should be removed, otherwise Jaws will read that summary and it will  confuse the user. Also, it is possible not use table  but div instead?

2.  The Page Size dropdown is missing a form label

Can these issues be addressed?

Thanks,
Wei

Maria Ilieva
Telerik team
 answered on 15 Mar 2011
2 answers
203 views
Hi,
I would like to have a Tree view that can be filtered. 
Filtering Combo box and a tree view within, but looks like telerik is not supporting it. So is there any alternate for that? or any idea how to achieve something similar to that?

regards,
Naresh
Nikolay Tsenkov
Telerik team
 answered on 15 Mar 2011
3 answers
42 views
Hi,

Trying to think of a way around this, the quickest would be to remove paging but i'd rather do some sort of paging.

If you look at http://brightwells.com/AntiquesAndFineArt/Antiques/Catalogue.aspx you will see it has a hyperlink at the top under order of sale for 1-120 which works as its in view but if you look at 311 and click on it it can't get the hook as it's not on the current page.  I'm binding the <a name="lotnumber"></a> in the Photo Thumbnail field.

Is there anyway to get the paging work according to the a name link?

Thanks,
Chris
Iana Tsolova
Telerik team
 answered on 15 Mar 2011
1 answer
51 views
on the index change of rad combobox arad grid must appear with dynamically created columns containing rad comboboxes and those comboboxes are to be binded with some data from database.the columns with comboboxes are coming but i am unable to bind with data. i am doing this programmatically using ITEMPLATE interface by inheriting in a class and calling InstantiateIn method.
help by sending or posting a code snippet.
thanks in advance
Anirud
    //calling this function inside an event
    public void loadGrid()
    {
      //looping for creating 31 columns
            for (int I_ColumnCount = 1; I_ColumnCount <= 31; I_ColumnCount++)
            {
                 
                GridTemplateColumn gridtemplatecolumn = new GridTemplateColumn();
                gridtemplatecolumn.ItemTemplate = new MyTemplate(Convert.ToString(I_ColumnCount));
                gridtemplatecolumn.HeaderText = Convert.ToString(I_ColumnCount);
                this.rg_Attendence.MasterTableView.Columns.Add(gridtemplatecolumn);
                ViewState["grid_DayCount"]=Convert.ToString(I_ColumnCount);
            }
    }
    
    public class MyTemplate : ITemplate
    {
        protected RadComboBox lblControl;
        public string colname;
        public MyTemplate(string cName)
        {
            colname = cName;
             
        }
        public void InstantiateIn(System.Web.UI.Control container)
        {
             
            lblControl = new RadComboBox();
            lblControl.ID = colname;
            container.Controls.Add(lblControl);
        }
    }
 
    //this function contains data which is retrieved from database and need to bind to rad grid and comboboxes(which are created inside rad grid dynamically)
    protected void loadEmployees()
    {
            RadComboBox lblControl = new RadComboBox();
            
            DataTable DT_Employee = new DataTable();
            DT_Employee = BLL.get_Attendance(_obj_Smhr_Attendance);
            if (DT_Employee.Rows.Count == 0)
            {
                
                    rg_Attendence.Visible = true;
                    rg_Attendence.DataSource = DT_Employee;
                    rg_Attendence.DataBind();
                    for (i = 0; i <= rg_Attendence.Items.Count - 1; i++)
                    {
                        //here i am trying to bind data to comboboxes which are created dynamically inside rad grid
                        rcmbList = rg_Attendence.Items[i].FindControl("lblControl") as RadComboBox;
                        if (Convert.ToString(Convert.ToString(DT_Employee.Rows[i][3])) == "0")
                            rcmbList.SelectedIndex = rcmbList.FindItemIndexByValue(Convert.ToString("P"));
                        else if (Convert.ToString(Convert.ToString(DT_Employee.Rows[i][3])) == "1")
                            rcmbList.SelectedIndex = rcmbList.FindItemIndexByValue(Convert.ToString("L"));
                        
                    }
                }
                else
                {
                    rg_Attendence.Visible = false;
                    btn_Save.Visible = false;
                    btn_Finalize.Visible = false;
                }
            }
            else
            {
                _obj_Smhr_Attendance.OPERATION = operation.Check;
                _obj_Smhr_Attendance.ATTENDANCE_MODE = true;
                DT_Employee = BLL.get_Attendance(_obj_Smhr_Attendance);
                rg_Attendence.Visible = true;
                rg_Attendence.DataSource = DT_Employee;
                rg_Attendence.DataBind();
                for (i = 0; i <= rg_Attendence.Items.Count - 1; i++)
                {
                    //here i am trying to bind data to comboboxes which are created dynamically inside rad grid 
                    lblControl = rg_Attendence.Items[i].FindControl("colname") as RadComboBox;
                    if ((Convert.ToString(Convert.ToString(DT_Employee.Rows[i][2]))).Trim() == "P")
                    {
                        lblControl.SelectedIndex = lblControl.FindItemIndexByValue(Convert.ToString("P"));
                    }
                    else if ((Convert.ToString(Convert.ToString(DT_Employee.Rows[i][2]))).Trim() == "L")
                    {
                        lblControl.SelectedIndex = lblControl.FindItemIndexByValue(Convert.ToString("L"));
                    }
                    
                     
                }
                
            }
            
    }
}
Iana Tsolova
Telerik team
 answered on 15 Mar 2011
2 answers
97 views
I'm using a radcombox (with custom text). I need to be able to change the caret position in the input area of the combo box from the client side.

I can figure out how to get the input domelement - but for the life of me I can't figure out how to change the caret position.

Help!

Thanks.
Karl
Top achievements
Rank 1
 answered on 15 Mar 2011
0 answers
85 views
Hi All,

I have implemented the self ref hierarchy in my page as per the instruction and it is working fine. but yesterday i found that when there are more than 15 records (15 is page size for grid) on secondary level grid shows pagination footer and after clicking on next page button (secondary level pagination) it updates primary level and navigate to the next page of grid instead of secondary levels next page. :(

Please help me..

This is my code
    <telerik:RadGrid ID="RadGrid1" AllowPaging="true" runat="server" PageSize="15">
        <PagerStyle Mode="NextPrevAndNumeric" />
        <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" Width="100%"
            DataKeyNames="PRIMARYSERIALNUMBER,SERIALNUMBER">
            <SelfHierarchySettings ParentKeyName="PRIMARYSERIALNUMBER" KeyName="SERIALNUMBER" />
            <Columns>
                <telerik:GridTemplateColumn>
                    <ItemTemplate>
                        <asp:HyperLink ID="hLinkName" runat="server" ToolTip='<%# DataBinder.Eval(Container.DataItem, "NAME") %>'> </asp:HyperLink>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>  
chetan jagtap
Top achievements
Rank 1
 asked on 15 Mar 2011
4 answers
280 views
Given all the known advantages/disadvantages of doing an ASP.NET or a WinForm app, which way would you go if you are building an internal application and don't need the "Hey, I could go to ANY computer and get to the asp.net app!" advantage?  I look at the number of threads in the asp.net forum and then the winform forum and I get the overwhelming sense that most are using asp.net.

It's been about 6 years since I've done any serious coding but I need to get back into the game to modernize myself.  Therefore I may agree to write a fair sized application for a company.  Telerik will enable me to accelerate the development of the app, etc.  Now the choice becomes asp.net or winform?

I gravitate away from from asp.net because that platform just seems to fight you each step of the way.  Things that are simple in winforms are not in asp.net.  Are they truly that way or is because I have not done any significant coding in a while?  It also seems that Telerik is embracing the browser apps more than winforms so that should confirm the continued tried of the industry towards asp.net.

I think I already know the response but if you got YOUR choice would you do the winform or the asp.net?
Stefan
Telerik team
 answered on 15 Mar 2011
2 answers
194 views
hi to all
 i have a radgrid bind on neededdatasource and now i want to rebind it on button click before that i want to clear the radgrid.
How can I do this?
help me......
thanks
Jaroslaw
Top achievements
Rank 1
 answered on 15 Mar 2011
6 answers
339 views
I have two RadListBox controls in a ASP.NET user control with the allowtransfer property set to true. I  populate the RadListBox with RadListBoxItems on page load. The RadListBox is populated, but the text is not visible for any of the items. If I transfer the items to the other RadListBox, they transfer, but they are again not visible. I then refresh the page and I can see them in the second RadListBox. I transfer them back to the first RadListBox and the text is then visible in that listbox also. Please help, I can't seem to find what is causing the text to not display.
Genady Sergeev
Telerik team
 answered on 15 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?