Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
113 views
Hi Everyone,

I am using RadGrid to display a sharepoint list items with filter b column enabled. I am using RadAjaxManager with RadGrid inside the updatecontrols. I am able to filter for the first two times but when filtered third time in the same column or any differetnn column I get the following script error in IE

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Mon, 5 Jul 2010 17:05:59 UTC


Message: '_currentFilterTimeoutID' is null or not an object
Line: 22
Char: 307
Code: 0
URI: http://spdev/Pages/ConditionsManager.aspx


The same page in mozilla ir giving "TableView is null" in console window inside the firebug

Any ideas?

Thanks for reading
Deepak
Maria Ilieva
Telerik team
 answered on 28 Sep 2011
0 answers
150 views
Hi,

I am usinf Telerik grid, inside every row i am loading a image.

the image url points to azure storage. also images are small / big any type.

some times images are not loaded - is it somewere we can increase the timeout settings for Telerik grid ?

Thanks
Ilink
Top achievements
Rank 1
 asked on 28 Sep 2011
3 answers
183 views
I am trying to insert/edit items in the TreeList using a pop-up template. The item’s fields being modified have no relation to its parent and the order under its parent is not in a predetermined order, but determined by the person performing the modification and must be maintained.
The inserting and update of the data source is handled manually. I’m trying to use as little server resources as possible. For the edit I can include the DataIndex as a bound field and get the value back in the UpdateCommand event. This does not work when inserting new items in the TreeList. In the ItemCreated, I can get the DataIndex and save it in a protected variable and reference it from the pop-up, but it is not passed back for the InsertCommand, it is not bound.
Any ideas on how the determine the DataIndex of the item which caused the pop-up for the insert/edit?
Tsvetina
Telerik team
 answered on 28 Sep 2011
2 answers
86 views
Hello every one ,

<telerik:RadToolBar ID="RadToolBar1" runat="server" OnClientButtonClicking="onToolBarClientButtonClicking"
                    OnButtonClick="RadToolBar1_ButtonClick">
                    <Items>
                        <telerik:RadToolBarButton Text="<%$ Resources:FormName, Addnew %>" CommandName="InitInsert"
                            ImageUrl="../../images/AddRecord.gif" Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>'>
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton Text="<%$ Resources:FormName, Filter %>" CommandName="Filter"
                            ImageUrl="../../images/Filter 3.gif">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton Text="<%$ Resources:FormName, Refresh %>" CommandName="RebindGrid"
                            ImageUrl="../../images/Refresh.gif">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" CommandName="Excel" Text="Export Excel">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" CommandName="Word" Text="Export Word">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" CommandName="PDF" Text="Export PDF">
                        </telerik:RadToolBarButton>                       
                    </Items>
                </telerik:RadToolBar>


protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            string message = e.Item.Text;
            if (e.Item.Text == "Export Excel")
            {
                      RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount;
                RadGrid1.MasterTableView.ExportToExcel();
            }
            else if (e.Item.Text == "Export Word")
            {
                      RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount;
                RadGrid1.MasterTableView.ExportToWord();
            }
            else if (e.Item.Text == "Export PDF")
            {
                      RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount;
                RadGrid1.MasterTableView.ExportToPdf();
            }
        }


Export Window not come,
That toolbar is closed ,
Replay as soon as possible

Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 28 Sep 2011
2 answers
98 views
Hi,
how to set no of rows to visualize in a radgrid? I don't want to use paging where it's possible to set no of rows to visualize I just want to set rows to visualize in a scrollable radgrid. I have tried to set height to x but that's not a good solution since frame around radgrid disappears in the bottom of the radgrid (around horizontal scrollbar).

Rgds,
Jesper
Jesper
Top achievements
Rank 1
 answered on 28 Sep 2011
2 answers
166 views
I have a grid with a formtemplate. Inside the formtemplate I have a DropDownList that has set AutopostBack="true" and OnSelectedIndexChanged="something". The DropDownList is inside an updatepanel. In the code behind, in RadGrid1_UpdateCommand, I check if the dropdownlist's SelectedIndex > 0. If not, The UpdateCommand should be terminated (I am using editedItem.Edit = true).

When I play around with the DropDownList several times, set the SelectedIndex to 0, click on the UpdateCommand button, and then again selects for instance index 1 in the DropDownList, a full postback on the page is done, without clicking the UpdateCommand button.
Any ideas?
Roy Halvorsen
Top achievements
Rank 1
 answered on 28 Sep 2011
0 answers
58 views
Hello,

I have a rows drag and drop shipped orders radgrid and i would like to insert, update and delete rows to a radgrid and insert, update and delete them from session respectively. When i press in the end "Save", i would like to save all the session records to database as new records. Could you hep me please with some example code taking as an example the C# sample code corresponding to the rows drag and drop shipped orders radgrid which you can find here.

Thank you very much.  

George
Top achievements
Rank 1
 asked on 28 Sep 2011
2 answers
163 views

Hi
I have a Grid, Add/Editing of record is done using EditMode="PopUp"  
Inside a FormTemplate  I have a MultiColumn ComboBox and a TextBox to enter landline no.
I have ASP.NET customValidator besides Textbox and want to perform client side validation. ( Using JQuery ? )
It should check that First two characters entered in landlineno Textbox matches with CityCode Column used in ComboBox Template.


 <telerik:RadGrid ID="RadGrid1" >
  ....
<MasterTableView EditMode="PopUp"  >
....
<EditFormSettings PopUpSettings-Modal="true" >
....
<FormTemplate >
......
.....
  <telerik:RadComboBox ID="RadComboBox2" Runat="server" TabIndex="3"
                      DropDownWidth="320px"
                      HighlightTemplatedItems="true"
                        DataSourceID="EDSStateList" DataTextField="StateName"
                        DataValueField="StateCode" SelectedValue='<%# Bind("FK_StateCode") %>'>
                        <HeaderTemplate>
                         <ul>
                            <li class="col1">StateName</li>
                            <li class="col2">CityName</li>
                            <li class="col3">CityCode</li>
                        </ul>
                        </HeaderTemplate>

                         <ItemTemplate>
                            <ul>
                                <li class="col1">
                                    <%# DataBinder.Eval(Container.DataItem, "StateName")%></li>
                                <li class="col2">
                                    <%# DataBinder.Eval(Container.DataItem, "CityName")%></li>
                                <li class="col3">
                                    <%# DataBinder.Eval(Container.DataItem, "CityCode") %></li>
                            </ul>
                        </ItemTemplate>

                         <FooterTemplate>
          
                        </FooterTemplate>

                    </telerik:RadComboBox>
.....
....
....
<FormTemplate >

-JD

 

JD.
Top achievements
Rank 1
 answered on 28 Sep 2011
3 answers
273 views
Hi all :)

I have a grid which contains general information, and I want to open a new radwindow with more details about selected row when I press on linkbutton

here is my grid:

<asp:LinkButton runat="server" ID="Label2" Text='<%# Eval("News_Title")%>' Font-Bold="true"
                                Font-Names="Tahoma" Font-Size="Small" OnClientClick="javascript:RowDblClick();">
                                </asp:LinkButton>


and here is my window:

<telerik:RadWindowManager ID="RadWindowManager2" runat="server" Skin="Black">
    <Windows>
        <telerik:RadWindow ID="GetContactUsWindow" runat="server" Title="تعليقات" Modal="true"
             ReloadOnShow="true" Width="750px" Height="750px"
            Animation="Fade" AutoSize="true" >
        </telerik:RadWindow>
        </Windows>
        </telerik:RadWindowManager>


and JavaScript function:

function RowDblClick(sender, eventArgs) {
 
            $find('<%= GetContactUsWindow.ClientID%>').show(); return
            false;
             
            
        }


I tried many ways posted here, but no one solve my problem

any help please!
Princy
Top achievements
Rank 2
 answered on 28 Sep 2011
3 answers
190 views
I am using the inline, Edit/Update/Delete
Is it possible to insert a variable using the DefaultInsertValue.

For E.g I have a hidden Field which I am storing an ID in and on an Insert I which to use the value from the hidden field as the defaultinsertvalue. Is this possible?

Perhaps I am going about it the wrong way.
Any assistance would be appreciated.
Thanks.
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?