Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
53 views
Hi,

I'm having a problem when I try to insert on a grid. I'm using OnItemDataBound and when it's an insert command I can assing values to any field but my problem comes when:

I have a dropdowncolumn and when the user selects some value in specific a window shows up and you can do some operations there, when you finish you click the submit button and the window returns the value you obtain. I already check and the value is correct and the window works fine. But I can't put that value on the corresponding field.

For example, the dropdowncolum has values of types of food, if you select the option 'fruit' a window is open with all the types of fruit, then you select all the items you want and the window returns a list with all the names you selected. What I want is to put automatically the value returned by the window on the next field (names), but I can't do that, I can't put that value on the field

Do you have any examples???

Thanks in advance
Pavlina
Telerik team
 answered on 16 Feb 2011
7 answers
177 views
Hi,

As a newbie to the RAD controls having just recently purchased them i am having issues displaying a RAD Rotator XML Feed inside an AJAX tab container. The first tab contains the XML feed in the rotator, the second tab has a rad textbox (which i can see no probs), I just cannot view the XML feed on the page, yet if i view source the content is definitely there from the XML feed.....is there any issue that i dont know about using the RAD Rotator XML Feed with AJAX tab container? The rad rotator work without the tab containers being on the same page.

 
<div id="page_content_home">  
        &nbsp;  
    <cc1:TabContainer ID="tcHomePage" runat="server" CssClass="sales_tabs_home" ActiveTabIndex="0">  
          
        <cc1:TabPanel ID="tpNews" runat="server">  
            <contenttemplate><br /> 
            <telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="xmlDataSource1" ScrollDirection="Up" ScrollDuration="2000" Width="450px" Height="330px"   
             FrameDuration="1" InitialItemIndex="-1">  
                 <ItemTemplate> 
                            <div class="newsFeed">  
                                <href='<%# XPath("link") %>'>  
                                    <%# System.Web.HttpUtility.HtmlEncode(XPath("title").ToString())%> 
                                </a> 
                                <br /><%# XPath("description") %><br /> 
                                <%# XPath("pubDate") %> 
                            </div> 
                        </ItemTemplate> 
 
            </telerik:RadRotator> 
          
                      
              
            </contenttemplate> 
            <headertemplate>News</headertemplate> 
        </cc1:TabPanel> 
          
        <cc1:TabPanel ID="tpMatchInfo" runat="server">  
            <contenttemplate> <br /> 
                <telerik:RadTextBox ID="RadTextBox1" runat="server" Text="radtextbox" Width="125px">  
                </telerik:RadTextBox><br /> 
                This will be the latest match information  
            </contenttemplate> 
            <headertemplate>Match Info</headertemplate> 
        </cc1:TabPanel> 
          
        <cc1:TabPanel ID="tpLatestPredictions" runat="server" > 
            <contenttemplate> <br /><br /> 
                This the latest match prediction from users                 
            </contenttemplate> 
            <headertemplate>Latest Predictions</headertemplate> 
        </cc1:TabPanel> 
          
        <cc1:TabPanel ID="tpComments" runat="server" > 
            <contenttemplate><br /><br /> 
                This is the latest comments from users  
            </contenttemplate> 
            <headertemplate>Supporter Comments</headertemplate> 
        </cc1:TabPanel> 
          
  
          
          
       
                         
        
          
     
           
            
            
            
       
    </cc1:TabContainer> 
       
            <asp:XmlDataSource ID="xmlDataSource1" XPath="rss/channel/item" runat="server" DataFile="http://www.finning.co.uk/rss/">  
                </asp:XmlDataSource> 
</div>     

 

Tsvetie
Telerik team
 answered on 16 Feb 2011
5 answers
202 views
Hi all,

I am new to telerik controls.... I have a radgrid in my application where the columns are generated at runtime based on user selection (user selects the display columns from a checkbox list, and also the number of columns are not fixed). I loop through the collection, and add the colums to the grid in code-behind.  I use the need_DataSource event to bind the grid. The grid displays the data columns correctly based on what the user has clicked. When I click on the column header to sort, the header text disappears, and the column data remain unaltered.
 
I guess I am calling the function which adds columns to the grid in the wrong place. Please any help regarding this would be appreciated. 

Pavlina
Telerik team
 answered on 16 Feb 2011
2 answers
81 views
Hello, I have an issue with the Filter control in a user control. when clicking on the field or operator dropdown the page posts back to show the directory listing of the folder that contains the user control. The url shows the user control folder with a # sign in the end. Its similar to this issue

http://www.telerik.com/community/forums/aspnet-ajax/scheduler/directory-listing-shows-when-scheduler-buttons-clicked-ie7.aspx

I'm using 2010 Q3 version of telerik. Any help please?

Thanks,
Phani



Maria Ilieva
Telerik team
 answered on 16 Feb 2011
3 answers
121 views
I've tried this on three different machines now, all with Visual Studio 2008 Professional with .NET 3.5 and SP1 for both, targeting a standard .NET 2.0 ASP.NET Web Application, all are VISTA Ultimate with SP1 as well.  Any attempts to right-click a toolbox category and selecting Choose Items causes the usual lengthy delay, then immediately crashes and closes Visual Studio.  This only happens when targeting a .NET 2.0 project/solution.  As such, I'm unable to use the Telerik Rad Controls for ASP.NET AJAX on any of our .NET 2.0 projects.  I've checked for differing framework DLLs in the GAC, and have resolved any issues there, and still the same problem.

Is anyone else experiencing this, or can point me in a direction of where to look next?  No events are registered, and no relevant log files indicated anything amiss or that addresses this problem.

Thank you!

--Scott Wade--

Sebastian
Telerik team
 answered on 16 Feb 2011
1 answer
144 views

 

Hi,
I just installed trial version of the ASP.NET AJAX controls and after running Toolbox Configurator still unable to see controls in the toolbox.
(Windows 7 ultimate, Visual Studio 10 professional)
Any advice will be greatly appreciated.


Eugene.

Sebastian
Telerik team
 answered on 16 Feb 2011
4 answers
403 views
Hi Telerik,

My scenario: (All of these controls are dynamically created/restored) I have a RadSplitter w/ 2 RadPanes and a RadSplitBar. Each RadPane has a RadDockZone. Each RadDockZone has a RadDock on it. Each RadDock has a control on it. 

I capture the pane's OnClientResized event and pass back to the server the new height/width of the panes affected so that I may restore their state properly on the next page reinit.

On page reinit I restore all the Rad controls. On page load I restore the controls located on the RadDocks and then I change the controls height/width to reflect the changes made to the RadPane's height/width. 

I do not see these changes immediately. I have to refresh the entire page before I see the changes made. This seems slightly odd to me as I hadn't had any issues seeing the RadDock's control's resizing when I initially drop them onto the page. 

I tried creating conditionally-updating UpdatePanels for each of the RadDocks, adding the UpdatePanel to the RadDock, and then adding the control to the UpdatePanel. I'm not sure where I would call Update, though. I tried calling update in Page_LoadComplete, but was given an error stating that the control could not be found -- curious, because Page.FindControl was able to track it down.

I tried wrapping all the Rad controls in a static UpdatePanel w/ UpdateMode = Always, but it seems to be conflicting heavily with RadAjaxManager. 

I am at a complete loss. I feel extremely close to having this all working, but at the same time maybe the problem is extremely deep-seated. I can provide any/all code necessary, but perhaps a formal ticket might be in order.

Regardless, if Telerik has any idea why I wouldn't be seeing these changes reflected I would be really interested in knowing. I am not convinced I even need an update panel -- the page reinitalizes whenever I care about seeing the changed graph (OnClientResized is firing and thus causing the page to reinit after). 

Thanks!
Maria Ilieva
Telerik team
 answered on 16 Feb 2011
1 answer
63 views
I have RadGrid inside RadAjaxPanel. I have MyUserControl with RadToolTipManager inside.
MyUserControl inside Grid ItemTemplate.
Sometimes after refresh RadGrid (using Refresh button) I don't have any resporse. Only loading panel is working and working...
Can you help?
Iana Tsolova
Telerik team
 answered on 16 Feb 2011
4 answers
217 views
Hi,

      I am using a RadGrid control (Rad Controls for ASP.NET AJAX Q3 2009 NET20) to display data. I am not sure why my  control is not displaying data at all when I navigate from my first page. Below is the sample I am working with. Please help me understand what I am missing and how to rectify.

Thanks in advance.

Regards,
Krishna Chaduvula.

WEB.CONFIG (HTTP Handler)
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />

ASPX Page:

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="testRadGrid.aspx.vb" Inherits="testRadGrid" %>

 

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

 

<

 

head runat="server">

 

 

<title></title>

 

 

</

 

head>

 

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<div>

 

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

</asp:ScriptManager>

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="grdPayStatements">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="grdPayStatements" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadGrid runat="server" ID="grdPayStatements" AllowPaging="True"

 

 

 

AutoGenerateColumns="False" GridLines="None" GroupingEnabled="False"

 

 

 

HorizontalAlign="Center" >

 

 

<MasterTableView>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridHyperLinkColumn AllowFiltering="False"

 

 

 

DataNavigateUrlFields="SEQNR" DataNavigateUrlFormatString="test.aspx?id={0}"

 

 

 

DataTextField="PayDate" HeaderText="Pay Date" UniqueName="column1">

 

 

</telerik:GridHyperLinkColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False"

 

 

 

DataField="TotalGross" DefaultInsertValue="" HeaderText="Total Gross"

 

 

 

UniqueName="column2">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False"

 

 

 

DataField="NetPay" DefaultInsertValue="" HeaderText="Net Pay"

 

 

 

UniqueName="column3">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False"

 

 

 

DataField="SEQNR" DefaultInsertValue="" HeaderText="SEQNR" UniqueName="column"

 

 

 

Visible="False">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</div>

 

 

</form>

 

 

</

 

body>

 

 

</

 

html>


CODE BEHIND

 

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

 

 

If Not Page.IsPostBack Then

 

 

 

 

 

 

 

LoadData()

 

 

 

End If

 

 

 

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

 

 

Private Sub LoadData()

 

 

 

 

Dim dt As DataTable = New DataTable()

 

 

dt.Columns.Add(

 

"SEQNR")

 

 

dt.Columns.Add(

 

"PayDate")

 

 

dt.Columns.Add(

 

"TotalGross")

 

 

dt.Columns.Add(

 

"NetPay")

 

 

 

 

Dim t As Double = 0

 

 

 

 

For i As Integer = 0 To 29

 

 

 

 

Dim dr As DataRow = dt.NewRow()

 

 

dr(

 

"PayDate") = DateTime.Today().AddDays(i)

 

 

dr(

 

"NetPay") = 2000

 

 

t += 2000

 

dr(

 

"TotalGross") = t

 

 

dr(

 

"SEQNR") = i + 1

 

 

dt.Rows.Add(dr)

 

 

 

Next

 

 

 

 

 

 

 

grdPayStatements.DataSource = dt

 

grdPayStatements.DataBind()

 

 

 

End Sub

 

 

Pavlina
Telerik team
 answered on 16 Feb 2011
1 answer
137 views
Hopefully this is an easy one.

I have two related grids on a form and I am using a Master/Detail setup as described in one of the demos and this works great.

Here is my ASPX Code

<telerik:RadGrid ID="rgd_UserJobRoles" runat="server" DataSourceID="sds_UserJobRoles" 
    GridLines="None" Width="245px">
    <clientsettings allowkeyboardnavigation="true" enablepostbackonrowclick="true">
            <Selecting AllowRowSelect="true" />
    </clientsettings>
    <MasterTableView DataKeyNames="DbRole" AutoGenerateColumns="False" DataSourceID="sds_UserJobRoles">
        <RowIndicatorColumn>
        <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
        <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="DbRole" HeaderText="Job Roles" 
                    SortExpression="DbRole" UniqueName="DbRole">
                </telerik:GridBoundColumn>
            </Columns>
    </MasterTableView>
</telerik:RadGrid>
  
  
<telerik:RadGrid ID="rgd_UserTaskRoles" runat="server" DataSourceID="sds_UserTaskRoles" 
    GridLines="None" Width="245px">
    <MasterTableView AutoGenerateColumns="False" DataSourceID="sds_UserTaskRoles">
    <RowIndicatorColumn>
    <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>
    <ExpandCollapseColumn>
    <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" 
                SortExpression="UserName" UniqueName="UserName" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="RoleName" HeaderText="Task Roles" 
                SortExpression="RoleName" UniqueName="RoleName" HeaderStyle-HorizontalAlign="Center">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
  
  
<asp:SqlDataSource ID="sds_UserJobRoles" runat="server" 
ConnectionString="<%$ ConnectionStrings:AeriesAdmin_ConnectionString %>" 
SelectCommand="SELECT [MemberName], [DbName], [DbRole] FROM [Aeries_RoleMembers] WHERE (([DbName] = @DbName) AND ([MemberName] = @UserName)) AND [DbRole] LIKE '%jr_%'">
<SelectParameters>
    <asp:ControlParameter ControlID="rcb_Database" Name="DbName" PropertyName="SelectedValue" Type="String" />
    <asp:ControlParameter ControlID="rcb_Users" Name="UserName" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
  
  
<asp:SqlDataSource ID="sds_UserTaskRoles" runat="server" 
    ConnectionString="<%$ ConnectionStrings:AeriesAdmin_ConnectionString %>" 
    SelectCommand="SELECT DISTINCT [UserName], [RoleName] FROM [vw_AA_Users] WHERE ([UserName] = @DbRole)">
    <SelectParameters>
        <asp:ControlParameter ControlID="rgd_UserJobRoles" Name="DbRole" PropertyName="SelectedValue" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
  
  
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <ajaxsettings>
        <telerik:AjaxSetting AjaxControlID="rgd_UserJobRoles">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgd_UserJobRoles" />
                <telerik:AjaxUpdatedControl ControlID="rgd_UserTaskRoles" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rgd_UserTaskRoles">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgd_UserTaskRoles" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </ajaxsettings>
</telerik:RadAjaxManager>

And here is my VB code

Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
    If rgd_UserJobRoles.SelectedIndexes.Count = 0 AndAlso rgd_UserTaskRoles.SelectedIndexes.Count = 0 Then
        rgd_UserJobRoles.SelectedIndexes.Add(0)
        rgd_UserTaskRoles.SelectedIndexes.Add(0)
    End If
End Sub

Rather than have the user select a row from the master grid, what I would like to accomplish is to not require the user to select anything in the master grid. I would prefer that when the master grid has data in it, the details grid automatically displays the related data.

Example Data

User Job Role - OfficeAssistant    has the related TaskRolls - BasicUsage, StudentView, and ViewAllTables
User Job Role - AttendanceClerk  has the related TaskRolls - AbsenceLetters, CurrentClasses, Contacts, Disipline

When a user selects a UserName from a Dropdown list, the master grid would populate with the user's Job Roles and the related grid would automatically populate with the Task Roles for both Job Roles.

   Job Roles                          Task Rolls
------------------                ------------------
OfficeAssistant                  BasicUsage,
AttendanceClerk                StudentView
                                       ViewAllTables
                                       AbsenceLetters
                                       CurrentClasses
                                       Contacts
                                       Disipline

I hope this makes sence.

Princy
Top achievements
Rank 2
 answered on 16 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?