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

I am using rad grid and am facing some layout issues with both IE and FF.

In the aspx page I have the grid and some controls below it. But when page is rendered then the controls show above the grid. For some cases if I set a width for the grid then this problem gets reduced in IE.

The grids I am using are heirarchical grids. I am not sure if that is related to the problem.

Can someone please help.

Thanks,
- Manoj
Princy
Top achievements
Rank 2
 answered on 04 Feb 2009
2 answers
109 views
Is it possible to change the text of the pager when it is in slider mode?

I need to change the text because of the language so " Page 1 out of 19 pages " becomes " Side 1 ud af 19 sider "

Implementing a custom pager is alot of work for this small change i hope there is another way to achieve this?
Princy
Top achievements
Rank 2
 answered on 04 Feb 2009
9 answers
710 views
I hope some one can help me.  I have the following jQuery I need to execute when my aspx page loads:

<head runat="server"
    <title>Center Categories Maintenance</title> 
    <link rel="stylesheet" href="Style/sunsetroundcorner.css" /> 
    <script type="text/javascript" src="./js/jquery-1.2.6.js"></script> 
    <script type="text/javascript" src="./js/jquery.corner.js"></script> 
    <script type="text/javascript"
        $(function(){ 
            $("div.centercategorybox").corner();              
            $("div.hashidbox").corner();  
            $("div.buttonBox").corner(); 
        }); 
    </script>  
</head> 

But when I place my controls inside the RadAjaxPanel, the script does not fire.  Should I wrap my javascript inside a RadScriptBlock?
Sebastian
Telerik team
 answered on 04 Feb 2009
2 answers
110 views
i have a rad input field with IP mask:
<telerik:radmaskedtextbox id="SecondaryIPAddressTextBox" runat="server"  Text='<%# Bind("SecondaryIPAddress") %>' mask="<0..255>.<0..255>.<0..255>.<0..255>" Skin="Vista"  PromptChar="_"></telerik:radmaskedtextbox> 
The text that is saved for the IP 192.192.192.192 (For example) is: 192192192192.
How can I save the text WITH the mask elements?


Hk
Top achievements
Rank 2
 answered on 04 Feb 2009
2 answers
176 views
I have a FormTemplate

                        <FormTemplate> 
                            <table> 
                                <tr> 
                                    <td> 
                                        First name: 
                                    </td> 
                                    <td> 
                                        <asp:TextBox ID="txtFirstName" runat="server" Text='<%# Bind("FirstName") %>'></asp:TextBox> 
                                    </td> 
                                    <td> 
                                        Last name: 
                                    </td> 
                                    <td> 
                                        <asp:TextBox ID="txtLastName" runat="server" Text='<%# Bind("LastName") %>'></asp:TextBox> 
                                    </td> 
                                   <td> 
                                        Role: 
                                    </td> 
                                    <td> 
                                        <asp:DropDownList ID="ddlRoles" runat="server"></asp:DropDownList> 
                                    </td> 
                                    <td align="right"
                                        <asp:LinkButton ID="btnUpdate" runat="server" CommandName="Update" Visible='<%# Eval("Id").ToString().Length != 0  %>'>Update</asp:LinkButton> 
                                        <asp:LinkButton ID="btnAdd" runat="server" CommandName="PerformInsert" Visible='<%# Eval("Id").ToString().Length == 0 %>'>Add</asp:LinkButton> 
                                        &nbsp;&nbsp;&nbsp; 
                                        <asp:LinkButton ID="btnCancel" runat="server" CommandName="Cancel">Cancel</asp:LinkButton> 
                                    </td> 
                                </tr> 
                            </table> 
                        </FormTemplate> 

        protected void rgUsers_ItemCommand(object source, GridCommandEventArgs e) 
        { 
            if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode)) 
            { 
                GridEditFormItem editedItem = (GridEditFormItem) e.Item; 
                DropDownList ddlRoles = (DropDownList)editedItem.FindControl("ddlRoles"); 
                ddlRoles.DataSource = Role.GetAll(); 
                ddlRoles.DataTextField = "Name"
                ddlRoles.DataValueField = "Id"
            } 
        } 

I tried to fill data for the DropDownList in ItemDataBound event but the DropDownList is empty even Role.GetAll() returns 3 items.

Also I tried to apply as this example: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx, but in Visual Studio, SelectedValue of DropDownList doesn't show up.


t800t8
Top achievements
Rank 1
 answered on 04 Feb 2009
1 answer
81 views
I'm new to Rad and .NET in general.  I having trouble with the RAD controls not rendering properly.  I've downloaded the latest demo version 2008 Q3.  For example the RAD editor with the "Vista" skin will initially display stretched and not recognizable.  This will only clear up after a browser refresh.  Occasionally, a series of "-" will show up extending downward stacked on top of each other.  

Regards,

dsdon10
Paul
Telerik team
 answered on 04 Feb 2009
7 answers
824 views
document.getElementById('testbutton').value = "fred";

does not work on buttons?

in html
<input id="testbutton" style="text-align: left;width:74px;" type="button" value="My Test Button" />

in javascript
document.getElementById('testbutton').value = "fred";

Does not change the text on the button, remove the formdecorator and it works fine...

Any ideas?
Georgi Tunev
Telerik team
 answered on 04 Feb 2009
3 answers
106 views
If I selected a font size larger than 3. And in DispForm.aspx, the body message collapsed toether. But if I pasted large font from Word, it displays ok
Stanimir
Telerik team
 answered on 04 Feb 2009
2 answers
159 views
Hi,

I am creating pivot style grid. I can bind the data with row and column as well as dynamic text box control for each cell.
Rate field is text box and user can enter the data. I can create and bind the grid as follow. But when I read the data from each cells I got null referennce exception. Please let me know how do i get the data from control that dynamically created.

E.g
        

 

SGD

HKD

USD

2.0

2.5

AUD

1.0

1.5



public DataTable PivotTable()  
        {  
            DataTable dest = new DataTable("Pivoted");  
            dest.Columns.Add(" ");  
 
            CurrencyRate currencyRate = new CurrencyRate();  
            IList<DCCPP.BusinessEntities.Currency> bCurrencyList = RetrieveFXRateLocalBaseCurrency(currencyRate);  
            foreach (DCCPP.BusinessEntities.Currency bCurrency in bCurrencyList)  
            {  
                dest.Columns.Add(bCurrency.Code);  
            }  
 
            IList<DCCPP.BusinessEntities.Currency> sCurrencyList = RetrieveFXRateSupportedCurrency(currencyRate);  
            for (int i = 0; i < sCurrencyList.Count; i++)  
            {  
                dest.Rows.Add(dest.NewRow());  
            }  
            for (int r = 0; r < dest.Rows.Count; r++)  
            {  
                for (int c = 0; c < dest.Columns.Count; c++)  
                {  
                    if (c == 0)  
                        dest.Rows[r][0] = sCurrencyList[r].Code;  
                    //else  
                        //dest.Rows[r][c] = source.Rows[c - 1][r + 1];  
                }  
            }  
            dest.AcceptChanges();  
            return dest;  
        }  
 
        protected void rgFXRateDetail_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
        {  
 
            rgFXRateDetail.DataSource = PivotTable();  
        }  
 
        protected void rgFXRateDetail_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
            if (e.Item is GridDataItem)  
            {  
                (e.Item as GridDataItem)[(rgFXRateDetail.MasterTableView.AutoGeneratedColumns[0] as GridBoundColumn).UniqueName].Font.Bold = true;  
                (e.Item as GridDataItem)[(rgFXRateDetail.MasterTableView.AutoGeneratedColumns[0] as GridBoundColumn).UniqueName].BackColor = System.Drawing.SystemColors.Control;  
                (e.Item as GridDataItem)[(rgFXRateDetail.MasterTableView.AutoGeneratedColumns[0] as GridBoundColumn).UniqueName].BorderColor = System.Drawing.Color.White;  
 
 
                CurrencyRate currencyRate = new CurrencyRate();  
                IList<DCCPP.BusinessEntities.Currency> bCurrencyList = RetrieveFXRateLocalBaseCurrency(currencyRate);  
                //IList<DCCPP.BusinessEntities.Currency> sCurrencyList = RetrieveFXRateSupportedCurrency(currencyRate);  
                int j = 2;  
                for (int i = 1; i <= bCurrencyList.Count; i++)  
                {  
                    DCCPP.BusinessEntities.Currency currency = bCurrencyList[i - 1];  
                    //string str = e.Item.Cells[j].ID;  
 
                    string controlSuffix = currency.ID.ToString();  
 
                    TextBox txtRate = new TextBox();  
                    txtRate.ID = "txtRate" + controlSuffix;  
                      
                      
                    j++;  
 
                    e.Item.Cells[j].Controls.Add(txtRate);  
                      
                      
                }  
            }  
 
              
        }  
 
        protected void rgFXRateDetail_ItemCommand(object source, GridCommandEventArgs e)  
        {  
            foreach (GridItem item in rgFXRateDetail.MasterTableView.Items)  
            {  
                if (item is GridDataItem)  
                {  
                    GridDataItem current = item as GridDataItem;  
                      
                    CurrencyRate currencyRate = new CurrencyRate();  
                    IList<DCCPP.BusinessEntities.Currency> bCurrencyList = RetrieveFXRateLocalBaseCurrency(currencyRate);  
                    //IList<DCCPP.BusinessEntities.Currency> sCurrencyList = RetrieveFXRateSupportedCurrency(currencyRate);  
                    int j = 2;  
                    for (int i = 1; i <= bCurrencyList.Count; i++)  
                    {  
                        DCCPP.BusinessEntities.Currency currency = bCurrencyList[i - 1];  
                        string controlSuffix = currency.ID.ToString();  
                        j++;  
                        string fxRate = ((TextBox)current.Cells[j].FindControl("txtRate" + controlSuffix)).Text;  
     
                    }  
                      
 
                }  
 
            }  
        } 
Tsvetoslav
Telerik team
 answered on 04 Feb 2009
3 answers
196 views
I have a master detail radGrid.  I need to programmatically update all detail rows when a column changes in the master table.  Is there a demo or something that will assist me in how to gather all child rows?  I'm able to extract the updated row from e.Item in the ItemUpdated event, but I can't figure out how to access all child rows.  Do I need to go to the datasource or does radGrid provide me with access via the object model?
Sebastian
Telerik team
 answered on 04 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?