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

I want to hide checkbox control based on condition over telerik grid popup window. I tried by reading control itself but still checkbox label is appearing over the screen.

If we clear Header Text value of template then only colon (:) appears over the screen. Please suggest suitable approach which will help me to hide checkbox control from the popup window.

Thanks in advance

~ Pravin
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Feb 2014
4 answers
51 views
Hi I have a RadGrid with several columns one of the columns has a RadTextBox which user will type something hit enter and call a javascript filter function as you can see below. Any thought about how could I call my javascript function.

Paulo
Top achievements
Rank 1
 answered on 03 Feb 2014
1 answer
91 views
I have 2 columns:

1. GridClientSelectColumn with a unique name of cCheckBox
2. GridTemplateColumn with a dropdown list in it, with a unique name of cDropDownList

If the DropDownList for a row changes value I need to automatically put a check in the checkbox of the same row.

So far I did the following:
for my ddl I added the following properties:
OnSelectedIndexChanged="ddlRegistryStatus_SelectedIndexChanged" AutoPostBack="True
in my code behind:
I created a sub:
Protected Sub ddlRegistryStatus_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)

End Sub

I don't know what to do from here. It would also be nice if I could Ajaxify this whole thing.






Princy
Top achievements
Rank 2
 answered on 03 Feb 2014
1 answer
111 views
I am using RadGrid in a user control  within an asp page to display a collection of records (15 columns) depending on the type of request needed (3 different types).

In Page_Load(), I assign the type of collection for binding the grid and immediately after, define the columns that it should have as GridBoundColumns (i.e. boundColumn.DataField = "Column 1" ; boundColumn.HeaderText = "Header 1" ; RadGrid1.MasterTableView.Columns.Add(boundColumn) ...)

In the RadGrid1_ItemDataBound(...), I do some processing on some columns (i.e. format date to short string) and add some controls (i.e. textbox) to certain columns (for capturing notes next to what's displayed).

When I post back and refresh the page, it's all fine.
When I filter by a column or click to go to the next page, all columns show the string representation of the grid column data class (i.e. Wireless_Equipment_Support_System.Telecommunication.TypeOneDataObject)

Any suggestions why this is happening?
Princy
Top achievements
Rank 2
 answered on 03 Feb 2014
1 answer
138 views
Hi,
I have put a button on the screen to turn filtering on and off.

I initially start with filtering off, and have a button to switch it on. When I do this, nothing happens. I switch it off, and then switch it on again, and it works fine. From then on turning it on and off is fine - it is just the initial turning it on that seems to be ignored.

Any ideas please?

Thanks

Pete
Shinu
Top achievements
Rank 2
 answered on 03 Feb 2014
3 answers
258 views
Hi, 
I am using radwindow in a grid view. I display some details in the radwindow. I want to format the date field which is displayed in there and make it display only date part without the time part of it. Can that be done? Below is the code I use to get the date field into the radwindow label.

PopUp.aspx.cs
============

EventDateLabel.Text = EventInfoResultElement.eventDt.ToString();

Thanks
Shinu
Top achievements
Rank 2
 answered on 03 Feb 2014
3 answers
616 views
I'm using RadDropDownList but I have a problem when I set a width to the component.

The textbox have the desired width but the list of items doesn't have it. That works fine with RadCombobox where either the textbox and the list of items adjust to the width I set.

I attach a few images to explain what I mean.
Princy
Top achievements
Rank 2
 answered on 03 Feb 2014
8 answers
379 views
I downloaded the trial version of the ASP.NET controls to see if they would work for a project I am about to start.  What I need to do is to display a date, some text, and an image about the text from a jpg file.  Our database contails a column with the name of the jpg (e.g., image1.jpg).  In the Gridview I was able to set it up to display the photo but I have not been able to figure out how to configure the RadGrid control to display the jpeg.  Any suggestions?

Thanks.

- Steve
Jack
Top achievements
Rank 1
 answered on 02 Feb 2014
4 answers
233 views
Hi all,
I work on a financial project and I am developping actually a window for accounting entry.
I am using a grid with EditMode="InPlace".
I have a problem in the column named BalanceAccountNumber :
<telerik:GridTemplateColumn HeaderText="Bal. Acc. Type" UniqueName="BalanceAccount" HeaderStyle-Width="150" >
                        <ItemTemplate>
                            <%# Guid.Parse(Eval("BalanceAccountTypeId").ToString()) != null?
                              ERPHR.BusinessObjects.FinBalanceAccountTypeRepository.GetNameByLanguage(Guid.Parse(Eval("BalanceAccountTypeId").ToString()), PageLanguage):"" %>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadComboBox runat="server" ID="ddlBalanceAccountType" DataSourceID="edsBalanceAccounts" Width="140" AutoPostBack="true"
                                DataValueField="Id" DataTextField='<%# PageLanguage == ERPHR.AppUtilities.Enums.LanguageEnum.Arabic? "NameArabic": "NameEnglish" %>'>
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="BalanceAccountNumber" HeaderText="Bal. Acc. No" SortExpression="AccountNumber" ItemStyle-Width="150px">
                        <FooterTemplate>Template footer</FooterTemplate>
                        <FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />
                        <ItemTemplate>
                            <%# Guid.Parse(Eval("BalanceAccountId").ToString()) != null?
                              ERPHR.BusinessObjects.FinAccountRepository.GetAccountById(Guid.Parse(Eval("BalanceAccountId").ToString())).AccountNumber:"" %>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadComboBox runat="server" ID="rcbBalanceAccountNumber" EnableLoadOnDemand="True" DataTextField="AccountNumber" DataValueField="Id" AutoPostBack="true"
                                HighlightTemplatedItems="true" Height="140px" Width="140" DropDownWidth="420px" OnItemsRequested="rcbBalanceAccountNumber_ItemsRequested">
                                <HeaderTemplate>
                                    <ul>
                                        <li class="col1">Account No</li>
                                        <li class="col2">Account Name</li>
                                    </ul>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <ul>
                                        <li class="col1">
                                            <%# DataBinder.Eval(Container, "Text")%>
                                        </li>
                                        <li class="col2">
                                            <%# DataBinder.Eval(Container, "Attributes['AccountName']")%>
                                        </li>
                                    </ul>
                                </ItemTemplate>
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
This column in edition or insertion is a RadCombox that the result is depending from the previous column(Balance Account Type):Balance Account Type in edition or insertion is also a RadComboBox and I need to retrieve in each time the SelectedValue of Balance Account Type RadComboBox to find her Balance account list. For that I am using this code :
protected void rcbBalanceAccountNumber_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            RadComboBox comboBox = sender as RadComboBox;
            RadComboBox rcbBalance = (RadComboBox)AccountPostingGrid.MasterTableView.GetInsertItem().FindControl("ddlBalanceAccountType");
            List<FinAccount> ListAccounts = BusinessObjects.FinAccountRepository.GetAccountByAccountNo(e.Text, Guid.Parse(rcbBalance.SelectedItem.Value));
 
            // Clear the default Item that has been re-created from ViewState at this point.
            comboBox.Items.Clear();
 
            foreach (FinAccount Account in ListAccounts)
            {
                RadComboBoxItem item = new RadComboBoxItem();
                item.Text = Account.AccountNumber;
                item.Value = Account.Id.ToString();
                item.Attributes.Add("AccountName", PageLanguage == LanguageEnum.Arabic ? Account.NameArabic : Account.NameEnglish);
 
                comboBox.Items.Add(item);
                item.DataBind();
            }
        }
My Problem is that I always the rcbBalance.SelectedItem.Value is the same : the value of the first Item of Balance Account Type RadComboBox.
Any idea about this problem????
Mehdi Baatout
Top achievements
Rank 1
 answered on 02 Feb 2014
1 answer
68 views
Greetings,

I am trying to figure out which input control to use.  We have numeric account numbers that can have zero to many decimal points.  For example...

123456
123.456
12.345.6789
1234.5.6

These would all be valid account numbers.  I need to have an input that only allows numbers and periods.  Any advice?

Much appreciated,

Matt
Matt
Top achievements
Rank 1
 answered on 31 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?