Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
97 views
I don't think you can do this, but I just want to check.  It would be a cool feature if we good.  Right now, I think the only way to populate a RadWindow is with a url to another page.

For a lot of my pages is is a pain in the neck.  I'll explain why.  I have several pages with RadGrids.  The RadGrids have checkboxes to selected the rows.  After selecting the rows, the user can click a "Delete" button to delete the selected rows.  When they click it, I want to display a RadWindow with a confirmation and a list of items they are going to be deleting.

The problem is that the way the RadWindow is designed, I need to supply it with a URL to "delete" page, and pass the selected ids and other information via a query string.  This is a problem since the query string has a limited length.

Another way I devised to accomplish this using javascript and ajax to get the info onto the page that has the popup, but it's ugly and is prone to errors.

A better way would be to allow for something like this on the base page.

<RadWindow>
  <asp:Panel>
 other controls
</asp:Panel>
</RadWindow>

Then when some click the delete button, I would get a post back. The grid viewstate will have all the info I need and I can use that to populate the stuff in the RadWindow.  I could then display the RadWindow and all events will go to the base page.

This would be so cool if we could figure out a way to do it.
Georgi Tunev
Telerik team
 answered on 04 Sep 2009
2 answers
126 views
Radgrid Gurus,

I am evaluating RadGrid and am trying to AJAXify my Radgrid
Based on the link below I have tried to AJAXify my Radgrid but with limited success
http://www.telerik.com/help/aspnet-ajax/grdmigrationtoprometheus.html

When I tested it (Ex Sorted a column) it did do a postback. Please advise me where I am wrong 
Below is the code from ASPX page

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebGridEval.WebForm1" %>" %>  

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" Runat="Server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
    <!--Start Content Right-->  
        <table id="tblResults" runat="server" width="100%">
                 <br />
                 <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True"
                     GridLines="None" AllowMultiRowEdit="True" AllowMultiRowSelection="True"
                     AutoGenerateColumns="False" AutoGenerateEditColumn="True" AllowPaging="True"
                AllowCustomPaging="True" PageSize="25" EnableAJAX="true"
                     onupdatecommand="RadGrid1_UpdateCommand">
                     <MasterTableView EditMode="InPlace" DataKeyNames="UniqueId">
                         <Columns>
                             <telerik:GridBoundColumn DataField="ContractNo"
                                 HeaderText="Contract Number" UniqueName="ContractNo" AutoPostBackOnFilter="true" >
                                 <FooterStyle Font-Bold="True" />
                                 <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                     Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                     Wrap="True" />
                                 <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                     Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                     Wrap="True" />
                             </telerik:GridBoundColumn>
                             <telerik:GridHyperLinkColumn DataNavigateUrlFields="UniqueId,RevisionNo"
                                 DataNavigateUrlFormatString="~/UpdateDetail.aspx?MaterialID={0}&amp;RevisionNo={1}&amp;"
                                 DataTextField="UniqueId" HeaderText="Material ID" UniqueName="UniqueId" AutoPostBackOnFilter="true">
                                 <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                     Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                     Wrap="True" />
                                 <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                     Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                     Wrap="True" />
                             </telerik:GridHyperLinkColumn>
                         </Columns>
                     </MasterTableView>
                 </telerik:RadGrid>
                 <br />
        </table>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
             <AjaxSettings>
                 <telerik:AjaxSetting AjaxControlID="gvrgPendingWorkflow">
                     <UpdatedControls>
                         <telerik:AjaxUpdatedControl ControlID="gvrgPendingWorkflow" LoadingPanelID=""/>
                     </UpdatedControls>
                 </telerik:AjaxSetting>
             </AjaxSettings>
         </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
         <div id="ContentRight" runat="server"></div>      
     <hr align="left" />   
 
        <asp:Label ID="lblGoTo" CssClass="goto" runat="server" Text="Go To:"></asp:Label>
</asp:Content>


Regards,
Kaushik
Kaushik Subramanya
Top achievements
Rank 1
 answered on 04 Sep 2009
2 answers
129 views
Hello,

I change a value in a RadTextBox on a client, and it's not propagating to the server.  I have a RadTextBox in a ListView.  The values get submitted in bulk to the server via button click, but I don't use the button click directly.  Instead, I'm calling __doPostBack(button.name, "<command>"); and the issue is when I use this approach, changes aren't making there way back to the server, either via:

RTB.SelectedDate
RTB.DateInput.SelectedDate

It's all null.  Why would that be?  I'm using 2008.3.1125.35.

Thanks.
Martin
Telerik team
 answered on 04 Sep 2009
5 answers
94 views
Hi
I have downloaded the demo version of the RadControls for ASP.NET

When i install it, i get an error message as follows :

This Installation package could not be opened. Contact the application vendor to verify that this is a valid windows installer package

I have downloaded it twice already to check if the download had a problem but I have received this error on both occasions.

Kind Regards.
D.Kruger
Erjan Gavalji
Telerik team
 answered on 04 Sep 2009
4 answers
165 views
Hello All,

I've a question about getting data from a database with a listbox.
I have a listbox with 5 items and a submit button. When I select one item and submit it returns the correct value.
When I select two items and submit it only returns the values of the first item.

Could you please tell me how to change this or where I find more information about this.

Thanks!

Paul
paul
Top achievements
Rank 1
 answered on 04 Sep 2009
2 answers
56 views
Hi,

This is my grid and datasource. When i delete its raise this error. Why that?

Could not find control 'RadComp' in ControlParameter 'IDCcomID'.


 <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="TemplateColumn1" 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 %>" runat="server"
                                    SelectCommand="SELECT DocNo , [IDCcomID] FROM [tbl_DATA_IDCcomment] WHERE (DocNo = @DocNo)"
                                    DeleteCommand="DELETE FROM [tbl_DATA_IDCcomment] WHERE [DocNo] = @DocNo and IDCcomID=@IDCcomID "
                                    InsertCommand="INSERT INTO tbl_DATA_IDCcomment(DocNo, IDCcomID) VALUES (@DocNo, @IDCcomID)" >
                                  <SelectParameters>                                                                           
                                        <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="DocNo" />
                                    </SelectParameters>
                                                                        
                                     <DeleteParameters>
                                           <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="DocNo" />   
                                           <asp:ControlParameter ControlID="RadComp" PropertyName="SelectedValue" Type="Int32" Name="IDCcomID" />  
                                    </DeleteParameters>
                                    <InsertParameters>
                                            <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="DocNo" />   
                                           <asp:ControlParameter ControlID="RadCompEdit" PropertyName="SelectedValue" Type="Int32" Name="IDCcomID" />  
                                    </InsertParameters>
                                </asp:SqlDataSource>








lakmal
Top achievements
Rank 2
 answered on 04 Sep 2009
2 answers
221 views
Hi. I am looking at the demo http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/specialdays/defaultcs.aspx
I love the layout and idea but is it possible to display multipe appointments on one day? For instance, what if the user had to pay their mortgage on the same day they had a date (See example for clarification). After, I would like the user to be able to click on the day open a new window and edit the appointment.

Thanks, love the controls!
Steve Napurano
Top achievements
Rank 1
 answered on 04 Sep 2009
7 answers
528 views
I'm having trouble with getting the 'no records' message/template working correctly.

My particular issue is that the NoRecordsTemplate is not being shown when there are no records and the initial data binding takes place on the server side. When the grid is rebound on the client side, then no record message is shown correctly.

In trying to determine why, I created a small test project and found I had the opposite problem. I could not get the no records message to NOT show. I'm hoping that in finding out why I cannot hide the message, I will find out why I can not get it to show in my main project.

Setting the EnableNoRecordsTemplate to false does not hide the message, regardless of whether the <NoRecordsTemplate> element is there.

I cannot find anything in the documentation to suggest why the EnableNoRecordsTemplate has no effect.

Here is my simple grid;

        <telerik:RadGrid ID="RadGrid1" runat="server"
            <MasterTableView EnableNoRecordsTemplate="false"
                <Columns> 
                    <telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName" /> 
                    <telerik:GridBoundColumn DataField="Title" HeaderText="Title" /> 
                    <telerik:GridBoundColumn DataField="TitleOfCourtesy" HeaderText="TitleOfCourtesy" /> 
                </Columns> 
                <NoRecordsTemplate> 
                    <div> 
                        No records custom message.</div> 
                </NoRecordsTemplate> 
            </MasterTableView> 
        </telerik:RadGrid> 

Here is the only code behind used;

    Protected Sub Page_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Init 
        RadGrid1.DataSource = New Object() {} 
        RadGrid1.DataBind() 
    End Sub 

I have tried the latest internal build, but with the same results.
Ryan
Top achievements
Rank 1
 answered on 04 Sep 2009
3 answers
96 views
Hi,

I have a RadPanelBar with multiple items. In one of them I have placed a RadTreeView in the item template.
Expand/collapse functionality works as expected in IE and FireFox, but in Google Chrome the item containing the RadTreeView is always expanded and cannot be collapsed.

Regards,
Konrad
Konrad
Top achievements
Rank 1
 answered on 04 Sep 2009
2 answers
131 views
I am trying to create a checkbox column from a string field that comes back from my stored procedure which returns a 1 or 0 however it does not seem to be working... can someone shed some light as to what i might be doing wrong ?

 

<telerik:GridCheckBoxColumn DataField="Monday"

 

 

HeaderText="Monday"

 

 

AllowSorting="true"

 

 

UniqueName="Monday" DataType="System.Boolean">

 

 

</telerik:GridCheckBoxColumn>

the field name from the table is called 'Monday'

thank you for any help you can give

 

Daniel
Telerik team
 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?