Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
309 views
I'm using a PageMethod to update grid data on the server-side and then rebinding on the successful callback. During the PageMethod I have a LoadingPanel shown which I hide on the successful callback. However, the rebind also takes some time and I would like to hide the LoadingPanel AFTER the rebind is complete. Is there any way to have a callback function for rebind()? Or maybe some other way to know when it's complete? At the moment, I'm using a setTimeout to give it an arbitrary second or two to complete (which is not, obviously, always correct)
Veli
Telerik team
 answered on 12 Jan 2011
1 answer
39 views
I have a user control, DuplicateVinDisplay.ascx, which has a rad grid wtih a linkbutton column. The linkbutton column, when clicked, will call a javascript function that will open a radwindow and display another page. This all was working perfectly when I loaded the user control on page load.

But, I need to display the user control when the user tabs out of a textbox on the page the user control is hosted on. So, I added the following to my RadAjaxManager on the hosting page:

 

<telerik:AjaxSetting AjaxControlID="VINTextBox">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="DuplicateVINDisplay1" LoadingPanelID="defaultRadAjaxLoadingPanel"/>
</UpdatedControls>
</telerik:AjaxSetting>

 

This does what I need it to and the user control displays properly when the user tabs our of the VINTextBox control. However, now when I click the linkbutton in the grid, I get a javascript Object Expected error. I have even modified the javascript funtion that is being called to simply be an alert('hi'); but to no avail.

What might I be missing here?
Tsvetina
Telerik team
 answered on 12 Jan 2011
10 answers
206 views
I have created a web page in which I have placed a rad editor and in that when I write 3-4 lines, select any particular line and right align it or change the paragraph style. Then all the lines get right align instead of that particular line in IE browser only. In your rad editor demo also, the same problem appears in the IE. So please suggest some solution for the same as soon as possible. Thanks.

 
Nidhi
Top achievements
Rank 1
 answered on 12 Jan 2011
1 answer
209 views
How to add a linkbutton in RadGrid in Fly?

I had 3 columns in a table

In runtime ...
1)First Column should be linkbutton
2)Second column should be Label
3)Third Column should be same as in table

how to acheive the above one in runtime?

Is it possible..If yes please provide me a small example
Princy
Top achievements
Rank 2
 answered on 12 Jan 2011
0 answers
65 views
Hi,
I want to set hierarchy in RadGrid programmatically. When I click on "show child items" first time, the data is fine. When I click it second time, it shows combination of parent rows and child rows. Each time I click on it parent rows are repeated that much time.
Please assist me....

Thanks  
Rohan
Top achievements
Rank 1
 asked on 12 Jan 2011
1 answer
201 views
Hello,

How can I make the Date Picker to show first days of week only
Or at least allow only selection of the first day of week.

Like for January 2011 month allow only 3,10,17,24 & 31 dates to be selected


Thanks,
Sanjay
Shinu
Top achievements
Rank 2
 answered on 12 Jan 2011
0 answers
88 views

i have used date time field with datepicker now i gets problem in find control .in below code..check code properly and reply as soon as possible.
 <telerik:GridDateTimeColumn  FilterControlWidth="120px" DataField="order_date" HeaderText="ORDER DATE" 
                        UniqueName="order_date" PickerType="DatePicker" DataFormatString="{0:D}" SortExpression="order_date" AllowFiltering ="true">
                        <HeaderStyle Width="160px" />



 if (filterPair.First.ToString() == "EqualTo")
            {
                                   string colName = filterPair.Second.ToString();
             //Here i gets problem--->       TextBox tbPattern = (e.Item as GridFilteringItem)[colName].Controls[0] as TextBox;
                    string values = tbPattern.Text;
                    string newFilter = "(([" + filterPair.Second + "] =" + values + "))";
                    DataTable dt = new DataTable();
                    dt = Session["dt"] as DataTable;
                    DataTable dtNew = new DataTable();
                    dtNew.Columns.Add("order_id");
                    dtNew.Columns.Add("order_date");
                    dtNew.Columns.Add("items_selected");
                    dtNew.Columns.Add("total_amount");
                    dtNew.Columns.Add("order_description");
                    dtNew.Columns.Add("username");
                    dtNew.Columns.Add("status");
                    DataRow row;
                    e.Canceled = true;
umar
Top achievements
Rank 1
 asked on 12 Jan 2011
1 answer
83 views
I have used the following code:-

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
       <telerik:RadPageView ID="RadPageView1" runat="server">
            <telerik:RadGrid ID="rgrd1" runat="server" AutoGenerateColumns="false" 
                      AllowPaging="true" AllowSorting="true"  PageSize="5"  OnSelectedIndexChanged="rgrdAandE_RowSelect"
                       OnPageIndexChanged="rgrd1_PageChange" OnSortCommand="rgrd1_Sort">
                            <MasterTableView>
                                <Columns>
........
                                </Columns>
                            </MasterTableView>
                            <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                                <Selecting AllowRowSelect="true" />
                            </ClientSettings>
                            <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="Bottom" />
              </telerik:RadGrid>

            <telerik:RadGrid ID="rgrd2" runat="server" AutoGenerateColumns="false" 
                      AllowPaging="true" AllowSorting="true"  PageSize="5"  OnSelectedIndexChanged="rgrdAandE_RowSelect"
                       OnPageIndexChanged="rgrd2_PageChange" OnSortCommand="rgrd2_Sort">
                            <MasterTableView>
                                <Columns>
........
                                </Columns>
                            </MasterTableView>
                            <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                                <Selecting AllowRowSelect="true" />
                            </ClientSettings>
                            <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="Bottom" />
              </telerik:RadGrid>
                        
            <telerik:RadGrid ID="rgrd3" runat="server" AutoGenerateColumns="false" 
                      AllowPaging="true" AllowSorting="true"  PageSize="5"  OnSelectedIndexChanged="rgrdAandE_RowSelect"
                       OnPageIndexChanged="rgrd3_PageChange" OnSortCommand="rgrd3_Sort">
                            <MasterTableView>
                                <Columns>
........
                                </Columns>
                            </MasterTableView>
                            <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                                <Selecting AllowRowSelect="true" />
                            </ClientSettings>
                            <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="Bottom" />
              </telerik:RadGrid>

       </telerik:RadPageView>
  </telerik:RadMultiPage>

Code Behind
--------------
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PopulateLists();
            }
        }


        private void PopulateGPViewists()
        {
               DataSet  data = ..........;
                this.rgrd1.DataSource = ............;
                this.rgrd1.DataBind();
                this.rgrd2.DataSource = ............;
                this.rgrd2.DataBind();
                this.rgrd3.DataSource = ............;
                this.rgrd3.DataBind();
            }
        }




When I change the pagesize to say 3 in the text box and click change the gird that I change the pagesize for just disappears. If I refresh the screen it goes back to the original pagesize of 5


Any clues as to why ?

Thanks
Princy
Top achievements
Rank 2
 answered on 12 Jan 2011
1 answer
128 views
 For Each itemcollection As GridDataItem In gvUserJobMapping.Items


            If itemcollection.OwnerTableView.Name = "gvUserJobMapping" Then

            End If


Next


I want to iterate my gridviewrows and how can i access my first column value field in my grid. Because I want to iterate all the rows and keep those values in the arraylist.
Princy
Top achievements
Rank 2
 answered on 12 Jan 2011
0 answers
96 views
I am having Country,Population,website textboxes and States dropdowns in a webform.
I am saving those details into database.
And I am populating Country as parent node and States as child nodes of radtreeview.
On Nodeclick event of the Country I have to populate the population , Country , Website and the relevant States.

I tried using DataValueFied and DataTextField.
I am getting value in e.Node.Text and I am not getting anything in e. Node.Value.

Can you please provide me some sample example for this scenario?

Thanks
Sreedhar Ambati
sreedhar ambati
Top achievements
Rank 1
 asked on 12 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?