Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
Dear All!

I would like to know how can I create dynamically the following type of RadGrid (see the picture):
Need to choose from every group only one value if the user wants and at the end determine the value of the radiobuttons.

http://www.anda.hu/grid.jpg

thx,
alsi

Princy
Top achievements
Rank 2
 answered on 27 Oct 2008
2 answers
138 views
Hi all,

I'm running into a bit of a problem and was wondering if anyone knew a workaround to this...

I'm working on a small report program which makes use of RadEditor for people to input daily activities, except we're kinda forcing the users to use bulleted lists for the sake of storing report items into a backend for future reporting. 

The pasteHtml I am using is...

editor.pasteHtml("<p><b>" + val + "</b></p><ul><li>"); 

Now, in IE this works fine.  RadEditor does close the tags, but it sets the cursor inside the <li> and allows people to start typing report items.

In Firefox, which everyone around her prefers to use, the cursor goes to the beginning of the textbox, and you cannot click into the <li> to insert an item.  You can, however, click to html preview mode, and when you click back, it puts the cursor right where we want it.  The question is, how can I use javascript to let people enter items (after the pasteHtml) without having to click to html preview and back? :)

Any help or suggestions are welcome. ;D
Serrin
Top achievements
Rank 1
 answered on 27 Oct 2008
4 answers
193 views
I have a 3-level hierarchy radgrid as:
State name
    County name
        Township name - population
I can get subtotal for township population using Aggregate=Sum
Is that possible to get each County population total , State population, and all states population grand total?
Regards,

d-cpt


d-cpt
Top achievements
Rank 2
 answered on 27 Oct 2008
3 answers
181 views
Hi there,

From what i understand, the EditFormType property affects inserts AND updates.  Is it possible to use different methods for each approach?

For example...
 
I have a grid that displays a list of products.  I want to use a custom usercontrol for the insert so that users may "search" for a product before inserting a new one.  For updates however, i just want to use the auto-generated "update" row.

Is this possible?
Princy
Top achievements
Rank 2
 answered on 27 Oct 2008
2 answers
73 views
I have used two telerik grid using rad tab, now facing an issue (no idea either its an issue or existing feature) as below: If I select "Add New Record" or edit button of a grid for the 1st tab then it open said form....here no issue. But if I leave it as it is and click to another tab and do something with 2nd grid and later I come back to 1st tab containing 1st grid......still display the said form open (Add New record or Edit Form).

I want the auto feature through which New form or Edit form should be close automatically when I visit one tab to another tab ..

Please give me needfull suggestion.
regards

rajendra 
rajendra
Top achievements
Rank 1
 answered on 27 Oct 2008
2 answers
142 views
what is the analogue of property 'Externalcallbackpage'
in new version?
Valera
Top achievements
Rank 1
 answered on 27 Oct 2008
6 answers
172 views
hi there. I'm Stuck
wondering if a sample exists that could demonstrate how one would relate two comboboxes when in edit/insert mode within a radgrid.

I have the following source / code combo
Note the gridTemplate is where I was wanting to do my compares.. but if i could do it using the griddropdown feature, that sure would be easier.

I have looked at the demos on relating radcombos, and don't have any issue when working with these independentanly. my issues arise when trying to work with them in a radgrid or similar container. My assumption is that I am not referencing the objects correctly.

thanks for any tips oh and if there is a preferred method, please feel free to state.

my code first:
Sub updateCB2()  
       
        Dim cb2 As RadComboBox = DirectCast(RadGrid1.FindControl("RadComboBox2"), RadComboBox)  
        Dim cb1 As RadComboBox = DirectCast(RadGrid1.FindControl("RadComboBox1"), RadComboBox)  
        cb2.DataSource = functions.dt("Select SubGroup as DepartmentGroup from ATS_CareerTypes where career = '" & cb1.SelectedValue & "'")  
        cb2.DataBind()  
    End Sub  
 
      
    Protected Sub selectTems(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)  
        updateCB2()  
 
    End Sub 

my source

 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:PHCJobPostsConn %>" 
             SelectCommand="SELECT distinct [Career] FROM [ATS_CareerTypes]" /> 
         <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:PHCJobPostsConn %>" 
             SelectCommand="SELECT distinct [SubGroup] as DepartmentGroup FROM [ATS_CareerTypes]" /> 
              
          
          
                     <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:PHCJobPostsConn %>" 
             SelectCommand="SELECT [Dpt_External], [Dpt_Internal], [Career], [DepartmentGroup], [Position_Type], [Department_Name], [PostingNumber] FROM [ExternalPostings]">  
         </asp:SqlDataSource> 
         <br /> 
         <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateEditColumn="True" DataSourceID="SqlDataSource3" 
             GridLines="None">  
             <MasterTableView   AutoGenerateColumns="False" DataSourceID="SqlDataSource3">  
                 <RowIndicatorColumn> 
                     <HeaderStyle Width="20px" /> 
                 </RowIndicatorColumn> 
                 <ExpandCollapseColumn> 
                     <HeaderStyle Width="20px" /> 
                 </ExpandCollapseColumn> 
                 <Columns> 
                     <telerik:GridCheckBoxColumn DataField="Dpt_External" DataType="System.Boolean" HeaderText="Dpt_External" 
                         SortExpression="Dpt_External" UniqueName="Dpt_External">  
                     </telerik:GridCheckBoxColumn> 
                     <telerik:GridCheckBoxColumn DataField="Dpt_Internal" DataType="System.Boolean" HeaderText="Dpt_Internal" 
                         SortExpression="Dpt_Internal" UniqueName="Dpt_Internal">  
                     </telerik:GridCheckBoxColumn> 
                    <telerik:GridTemplateColumn UniqueName="TemplateColumn" > 
                    <eDITItemTemplate> 
                        &nbsp;<telerik:RadComboBox ID="RadComboBox1" AutoPostBack="true" runat="server"   
                        DataSourceID="SqlDataSource1"   DataTextField="Career" DataValueField="Career"   
                        SelectedValue='<%# bind("career") %>'   
                            OnSelectedIndexChanged="selectTems">  
                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        </telerik:RadComboBox> 
                        <telerik:RadComboBox ID="RadComboBox2" runat="server" DataSourceID="SqlDataSource2" 
                            DataTextField="DepartmentGroup" DataValueField="DepartmentGroup"   
                            SelectedValue='<%# Bind("DepartmentGroup") %>'>  
                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        </telerik:RadComboBox> 
                        <br /> 
                    </EDITItemTemplate> 
                    </telerik:GridTemplateColumn> 
                      
                     <telerik:GridDropDownColumn UniqueName="CareerGroup" HeaderText="Career"  ListValueField="Career" ListTextField="Career" DataField="Career" DataSourceID="SQLDataSource1" DropDownControlType="DropDownList" /> 
                     <telerik:GridDropDownColumn  HeaderText="SubGroup"  ListValueField="DepartmentGroup" ListTextField="DepartmentGroup" DataField="DepartmentGroup" DataSourceID="SQLDataSource2" DropDownControlType="DropDownList" UniqueName="DepartmentGroup" /> 
                      
                     <telerik:GridBoundColumn DataField="Position_Type" HeaderText="Position_Type" SortExpression="Position_Type" 
                         UniqueName="Position_Type">  
                     </telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn DataField="Department_Name" HeaderText="Department_Name" 
                         SortExpression="Department_Name" UniqueName="Department_Name">  
                     </telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn DataField="PostingNumber" HeaderText="PostingNumber" SortExpression="PostingNumber" 
                         UniqueName="PostingNumber">  
                     </telerik:GridBoundColumn> 
                 </Columns> 
                  
             </MasterTableView> 
                 <FilterMenu EnableTheming="True">  
                 <CollapseAnimation Duration="200" Type="OutQuint" /> 
             </FilterMenu> 
         </telerik:RadGrid><br /> 
         <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
             <AjaxSettings> 
                 <telerik:AjaxSetting AjaxControlID="RadComboBox1">  
                     <UpdatedControls> 
                         <telerik:AjaxUpdatedControl ControlID="RadComboBox1" /> 
                         <telerik:AjaxUpdatedControl ControlID="RadComboBox2" /> 
                     </UpdatedControls> 
                 </telerik:AjaxSetting> 
             </AjaxSettings> 
         </telerik:RadAjaxManager> 



Yavor
Telerik team
 answered on 27 Oct 2008
1 answer
186 views
Hi,

 In RadGrid control how to cheked the Chebox exist in the HeaderTemplate in ItemDataBound event, Please solve my problem how to checked the CheckBox exist in the Header option of the colulmn in ItemDataBound Event of RadGrid control.

Thanks
Pankaj Tyagi

Princy
Top achievements
Rank 2
 answered on 27 Oct 2008
3 answers
144 views
Hi I'm having a bit of troubles with radprompt.

I set the default value but everything after the first space is ignored.

Is this a known issue?

Thanks

Guido Tapia
Georgi Tunev
Telerik team
 answered on 27 Oct 2008
1 answer
143 views
Dev Environment: VS 2008 
Telerik.Web.UI: 2008.2.826.35
Build: ASP.Net 3.5

Problem:
In my local development environment (localhost), all response.redirects work fine.  When I deploy the code to the web server, the redirects do not work and I get the following error:

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. 
Details: Error parsing near ' 
 
&lt;!DOCTYPE html P'. 

Why would the redirects work on my machine but not on the webserver?

In my previous version of the website (using a previous Telerik build and using ASP.Net 2.0) everything worked just fine.

I know that previously you could not do response.redirects but that changed a while back (the application has been in a production environment for the last 3 months using them on an ajaxified pages without problem).

Dustin

Sebastian
Telerik team
 answered on 27 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?