Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
42 views
I lost a few hours on this, so I thought I'd alert others....

My RadGrid Updates mysteriously stopped working. I went around in circles until I saw a post that implicated Viewstate.

I went back into my master pages and other files and realized that, in an effort to cut the page bloat, I'd turned off Viewstate in some files. After I restored the viewstate to the default, my update commands (appearing in ItemCommand) started working again.

Hope this helps someone else avoid the frustration.

Ken
kencox
Top achievements
Rank 1
 asked on 06 Sep 2009
1 answer
409 views
I have a radGrid that has a GridClientSelectColumn but I need to be able to dynamically hide/show this based on the data per row. How can I do that. I know how to hide/show the entire column, but that isn't what I want. There are certain rows within the grid that I don't want as selectable (based on the data within the row). So was hoping I could do someting on the grid databound event to do this.

Thanks!
Debbie
Debbie
Top achievements
Rank 1
 answered on 06 Sep 2009
1 answer
61 views
Hi,

When i goto delete record this error is raising why that?

Incorrect syntax near '?'.


this is my grid and datasource
 <telerik:RadGrid ID="RadGrid5" runat="server" AutoGenerateColumns="False"  AllowAutomaticInserts="True"
                                AllowAutomaticUpdates="True" AllowAutomaticDeletes="false"
                                        GridLines="None" DataSourceID="SqlDataSource2" Width="400px"
                                AllowSorting="True" Skin="Web20" >
                                <MasterTableView AutoGenerateColumns="False" DataKeyNames="DocNo" CommandItemDisplay="TopAndBottom"
                                 AllowAutomaticDeletes="true" AllowAutomaticInserts="true" >
                                
                                    <Columns>
                                                                             
                                        <telerik:GridBoundColumn DataField="DocNo" HeaderText="Doc No" Visible="false" ReadOnly="true"
                                            UniqueName="DocNo">
                                        </telerik:GridBoundColumn>
                                        
                                      <telerik:GridTemplateColumn UniqueName="IDCcomID" HeaderText="Doc Own AppComment">                                        
                                        <ItemTemplate>                                        
                                         <telerik:RadComboBox runat="server"
                                             ID="RadComp"
                                             DataTextField="DocOwnAppComment"
                                             DataValueField="DocOACID"
                                             HighlightTemplatedItems="true"
                                             Height="190px"
                                             Width="220px"
                                             DropDownWidth="420px"
                                                DataSourceID="ContactsDataSource"
                                                SelectedValue='<%#Bind("IDCcomID") %>'></telerik:RadComboBox>                                        
                                        </ItemTemplate>
                                        <EditItemTemplate>                                        
                                        <telerik:RadComboBox runat="server"
                                             ID="RadCompEdit"
                                             DataTextField="DocOwnAppComment"
                                             DataValueField="DocOACID"
                                             HighlightTemplatedItems="true"
                                             Height="190px"
                                             Width="220px"
                                             DropDownWidth="420px"
                                                DataSourceID="ContactsDataSource"
                                                SelectedValue='<%#Bind("IDCcomID") %>'></telerik:RadComboBox>                                                
                                        
                                        </EditItemTemplate>                                        
                                        </telerik:GridTemplateColumn>                                
                                        
                                        <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure delete this record?"
                                            Text="Delete" UniqueName="column">
                                        </telerik:GridButtonColumn>
                                       </Columns>
                                    
                                </MasterTableView>
                              </telerik:RadGrid>


 <asp:SqlDataSource ID="SqlDataSource2"
                                    ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>"
                                    SelectCommand="SELECT DocNo , [IDCcomID] FROM [tbl_DATA_IDCcomment] WHERE (DocNo = @DocNo)"
                                    DeleteCommand= "delete from  tbl_DATA_IDCcomment where DocNo = @DocNo and IDCcomID=?"
                                     runat="server">
                                   
                                  <SelectParameters>                                                                           
                                        <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="DocNo" />
                                    </SelectParameters>
                                     <DeleteParameters>
                                      <asp:Parameter Name="IDCcomID" Type="Int32" />
                                     
                                     </DeleteParameters>  
                                </asp:SqlDataSource>





lakmal
Top achievements
Rank 2
 answered on 06 Sep 2009
4 answers
144 views
  I am using a RadScheduler which defaults in month view and uses only the AdvancedEdit form.  I have customized both the data provider as well as the advanced edit form basing my code off the sample code.  Everything is working fine, however, I am not sure how to ensure that appointment are not scheduled with overlapping resources. 
  Each appointment can have one or more resources of the same type.  I have seen numerous examples where, knowing the start and end times, on a single day, the resources allowed to be selected are filtered, but I don't think that an be done here because users can a) change the start and end dates and b) have the appointment recur.
  My latest attempt was to use GetAppointmentsInRange as suggested in a reply to another post here, which seems to work in some cases.  Unfortunately, it does not work in the case when the appointment is recurring.  That is, the code only checks appointments from the start to the end of the first occurrence and not each of the future ones.  Any guidence would be appreciated.
  Also, please to not point me to the sample labelled Resource Availability unless you can explain how to extend this to using the advanced edit form and recurring events.  Thanks!
CHU Sainte-Justine
Top achievements
Rank 1
 answered on 06 Sep 2009
2 answers
148 views
Experiencing some issues with the RadComboBox when enabling LoadOnDemand with a WCF service.  I thought I had implemented something wrong until I went back to the demo pages and have found that this issue is evident on the demo page as well.

To reproduce:
  1. Go to the demo page:  http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx
  2. On any of the combo's click in the combo area and type the letter T
  3. 6 results display -- all the items starting with T
  4. Hit the backspace to remove the T
  5. My expectation is that the full list would now display but instead, only the T's display.
  6. Now type in the letter S
  7. Still the items starting with T display in the dropdown.  My expectataion is that any item in the list starting with S would dislplay

Like I stated, i'm have the same issues within my app and am using version (2009.2.826.35).  Is this an overall bug with the combo?  If so, will this get fixed?
Kerim Suner
Top achievements
Rank 2
 answered on 05 Sep 2009
3 answers
241 views
With a RadTabStrip in a page that uses a master page, the code
$find( "<%= RadTabStrip1.ClientID %>") 
returns 'null' is null or not an object.  I have tried variations on this as well, using $get, or changing <%= to <%#.  It works fine as above if the tab strip is not in a page that uses a master page.

Any suggestions?
Ivan Ruiz
Top achievements
Rank 1
 answered on 05 Sep 2009
2 answers
128 views
Having a scrollable horizontal tab, which is scrolled as far right as possible, will show the last tab completely with the right scroll button next to it. However, if you resize just a bit, or trigger a tabstrip resize event from code, the tabs will immediately scroll to the left appr. 20px. This is causing parts of the last tab to be hidden behind the right scroll button. In particular this is annoying when I have added close buttons on each tab and this is hidden behinf the scroll button... Any quick and easy fix I can do (or you will do)?

Regds.
Sigmund Lunde
Sigmund Lunde
Top achievements
Rank 1
 answered on 05 Sep 2009
2 answers
197 views
I have a rather large scale application where I'd like to do the following:

1. Create a "Load on Demand" Multipage - controlled by a radTabStrip

2. AJAX-ify the TabStrip/MultiPage so that the new page views are loaded via callback (not postback)

3. Let the loaded PageViews determine how to handle submissions (postback/callback)

I can do #1 & #2 (albeit w/ some lingering viewstate issues) but the end result is a loaded pageview/form that always uses the tabstrip/multipage AJAX (where I'd prefer to be able to make selective AJAX calls or, in some cases postbacks from the loaded elements.)

Is what I'm looking to do even possible?

Bill
nilesh
Top achievements
Rank 1
 answered on 05 Sep 2009
0 answers
124 views
Hi
i have radupload in my page and some comboboxes;
now whenever the page got ajax cal through the selected index  change of combobox or full postback by clicking the button then the selected file get cleared from the radupload control.
i want to keep the selected file until and unless user closes the page.
thanks for the help in advance
DK
Top achievements
Rank 2
 asked on 05 Sep 2009
1 answer
194 views
Greetings,

Here's a strange thing: I have a RadTabStrip with a RadMultiPage all set up and working.
Moving from one tab to another creates always a new PageView (a userControl).
Usually all works beautifully. But when we go back a tab, correct certain form data and resubmitting in order to ahead again (recreacting the next PageView), we get the following error message:

Script control '' is not a registered script control. Script controls must be registered using 
RegisterScriptControl() before calling RegisterScriptDescriptors().  
Parameter name: scriptControl 

This happens only on opening one tab. No problem with any other. The tab in question includes
- a RadGrid
- a RadWindowManager (required for editing RadGrid items
- RadAjaxManager
- RadAjaxLoadingPanel

A RadScriptManager is placed in the WebForm (.aspx) page that contains the RadTabStrip.

As mentioned, when you just move forward from one tab to another there are no problems. That problem happens only when going back one tab and clicking submit again to move forward.

Any clue?
Thanks much.
Chanan Zass
Top achievements
Rank 1
 answered on 04 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?