Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
I'm using the r.a.d calendar control (Q2 2007).  When the calendar icon is at the bottom of the page and a user clicks on it, the calendar appears below outside of the viewable area and users have to scroll down the page to see the calendar.  Is there a way to fix this? 
Princy
Top achievements
Rank 2
 answered on 10 Jul 2008
1 answer
121 views
Here is my control:
<radP:RadPanelbar ID="RadPanelbar1" runat="server"   
    Skin="VPort" SkinsPath="~\RadControls\Panelbar\Skins" 
    ExpandAnimation-Duration="0" ExpandAnimation-Type="None"   
    BackColor="#FFFFFF">  
    <ItemTemplate> 
        <span id='spText' onmouseover='javascript:fnChangeRowColor(this, 1);'   
            style='text-align:left;float:left;display:inline;top:1px;text-decoration:underline;'>  
                <asp:label ID="lbl" runat="server"></asp:label> 
            </span> 
        <span id='spImages' style='text-align:right;float:right;display:inline;vertical-align:middle;'>  
            <asp:Image ID="img1" runat="server" ImageUrl="~/spacer.gif" 
        </span> 
    </ItemTemplate> 
</radP:RadPanelbar> 

If i call event RadPanelBar1_ItemDataBound how do I get access to the controls "lbl" and "img1"?

This is what I have so far:
    void RadPanelbar1_ItemDataBound(object sender, RadPanelbarEventArgs e)  
    {  
        RadPanelItem item = e.Item;  
        DataRowView dataRow = (DataRowView)e.Item.DataItem;  
    } 
Atanas Korchev
Telerik team
 answered on 10 Jul 2008
2 answers
73 views
Hi

I am having problem with customizing the button for the grid, where the grid have the DetailTables so when i click on this button on the left it expands. But the button looks so weired, how can i change this one with own button.

Thanks in Advance
Ricky

Ricky
Top achievements
Rank 2
 answered on 10 Jul 2008
1 answer
89 views
I'm in the process of upgrading some charts to use radchart, and since i'm pretty new to it (just started today and i love it already) I'm looking for some advice that I haven't been able to find in the documentation...

we have some monthly data which is in the form of a table with the columns
month monthname yr value

which means a user might have data for the past 3 years in 36 rows, one for each month of the year. I want to be able to show three line graphs on one radchart, one for each year in a different color. I thought that I would need to make three separate queries, one for each year, but when I was playing with it, I noticed I could just grab all data and "group" it somehow... I couldn't quite get it to work right however... so eventually I did end up splitting it into three chartseries, but now I can't get the month names to show up at the bottom, instead of showing the monthname, it shows the numerical month 1 - 12. I initialized the chartseries items with the value and the monthname, but that doesn't seem to affect the x axis.

so I guess my question is this: can I make a three-line chart using one bulk grab of data like I wanted to?

and also: how do I change the x-axis to show the month names instead of the numerical representations?

thanks!
Ves
Telerik team
 answered on 10 Jul 2008
1 answer
151 views
Is there functionality for the TreeView such as there is for the PanelBar in that you can Persist State in Cookie? I am using a treeview as a navigation menu and ofcourse when a user changes pages the selected node is lost.

I was thinking of storing the current state in a Session variable, but then I saw the Persist State in Cookie option of the PanelBar and thought this would be a better way to handle this.

Any ideas?
Atanas Korchev
Telerik team
 answered on 10 Jul 2008
2 answers
322 views
I have a simple Master/Detail Table structure that is not showing up correctly.  I am trying to show the details table but it comes up with No Child Records found.  I have followed the online samples and looked in all Telerik support but I have found no solution as to why it is not working correctly.    Additionally I have tried all sort of parameters, Control Parameter based on RadGrid1.SelectedValue, Session Control Parameter and more.  Can anyone give me any assistance.  Here is my code.  There is no code-behind.

<asp:SqlDataSource ID="SqlDataSource1" runat="server"

ConnectionString="<%$ ConnectionStrings:InsideWyatt %>"

SelectCommand="SELECT Email, FirstName, LastName, Phone, Office, Image, RecordID FROM dropdown_qry WHERE (Image IS NOT NULL) ORDER BY LastName, FirstName">

</asp:SqlDataSource>

<asp:SqlDataSource ID="SqlDataSource2" runat="server"

ConnectionString="<%$ ConnectionStrings:InsideWyatt %>"

SelectCommand="SELECT [RecordID], [JobTitle], [Department], [Assistant], [OfficeStreet], [State], [Hired], [OfficeNumber], [Extension] FROM [qry_UserProfileList] WHERE ([RecordID] = @RecordID)">

<SelectParameters>

<asp:SessionParameter Name="RecordID" SessionField="RecordID" Type="Int64" />

</SelectParameters>

</asp:SqlDataSource>

<br />

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"

DataSourceID="SqlDataSource1" GridLines="None" Skin="Outlook">

<

MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="RecordID">

<DetailTables>

<telerik:GridTableView runat="server"

DataSourceID="sqldatasource2" >

<ParentTableRelation>

<telerik:GridRelationFields DetailKeyField="RecordID"

MasterKeyField="RecordID" />

</ParentTableRelation>

</telerik:GridTableView>

</DetailTables>

<

ExpandCollapseColumn Visible="True">

<

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

</

ExpandCollapseColumn>

<Columns>

<telerik:GridBoundColumn DataField="Email" HeaderText="Email"

SortExpression="Email" UniqueName="Email">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName"

SortExpression="FirstName" UniqueName="FirstName">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="LastName" HeaderText="LastName"

SortExpression="LastName" UniqueName="LastName">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Phone" HeaderText="Phone"

SortExpression="Phone" UniqueName="Phone">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Office" HeaderText="Office"

SortExpression="Office" UniqueName="Office">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Image" HeaderText="Image"

SortExpression="Image" UniqueName="Image">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="RecordID" DataType="System.Int64"

HeaderText="RecordID" SortExpression="RecordID" UniqueName="RecordID">

</telerik:GridBoundColumn>

</Columns>

</

MasterTableView>

</telerik:RadGrid>

Thank you.
Corey Hambrick

Shinu
Top achievements
Rank 2
 answered on 10 Jul 2008
3 answers
163 views
Hi
I've been implementing a way to display different edit controls depending on data type here : http://www.telerik.com/community/forums/thread/b311D-beechm.aspx

Everything works fine except that if the EditItemTemplate row contains a RadtextBox with multiline enabled, the UPDATE event will not be fired on exit.

Any ideas on the reason why?

Best regards
Philippe
Pavel
Telerik team
 answered on 10 Jul 2008
1 answer
209 views
so i have a radgrid all wired up and working properly...  BUT the header text of a few Columns is pretty long and I would like it to be displayed on 2 lines...

Example

HeaderText="Specimen Collection Date" displays as

Specimen Collection Date

I would like it to have a break in there and display as

Specimen
Collection Date
Vlad
Telerik team
 answered on 10 Jul 2008
1 answer
102 views
I only see EditItemTemplate.  What if the edit fields are different than the insert fields. 

Or what if i need 2 different FormTemplates - one when inserting and one when editing?  What if you have 6 fields on insert and only update 1 on edit.

Shinu
Top achievements
Rank 2
 answered on 10 Jul 2008
1 answer
122 views
I'm trying to add a highlight effect to newly added rows in the radgrid.  I have a timer that will all me to rebind the radgrid to my datasource but I am unable to determine which row has been added to the grid so I will be able to call my highlight effect.

The code below will display for all rows whenever the timer fires.  Is there a way to attach my highlight effect only on newly added rows instead of everything already in the grid too?
    <script src="/scripts/prototype.js" type="text/javascript"></script> 
    <script src="/scripts/scriptaculous.js" type="text/javascript"></script> 
    <script type="text/javascript"> 
        function RowCreated(sender, eventArgs) 
        { 
            new Effect.Highlight(eventArgs.get_gridDataItem().get_element(),  
                      { 
                        startcolor: "#ffff99", 
                        endcolor: eventArgs.get_gridDataItem().get_element().style.backgroundColor, 
                        duration: 8 
                      })             
        } 
    </script> 
 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> 
        <telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" DataSourceID="LinqDataSource1" 
            GridLines="None" Skin="Telerik"> 
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="RequestId" DataSourceID="LinqDataSource1"> 
                <RowIndicatorColumn Visible="False"> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn Visible="False" Resizable="False"> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="RequestId" DataType="System.Decimal" HeaderText="RequestId" 
                        ReadOnly="True" SortExpression="RequestId" UniqueName="RequestId"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" 
                        UniqueName="FirstName"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="LastName" HeaderText="LastName" SortExpression="LastName" 
                        UniqueName="LastName"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="DateOfBirth" DataType="System.DateTime" HeaderText="DateOfBirth" 
                        SortExpression="DateOfBirth" UniqueName="DateOfBirth"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CreatedDate" DataType="System.DateTime" HeaderText="CreatedDate" 
                        SortExpression="CreatedDate" UniqueName="CreatedDate"> 
                    </telerik:GridBoundColumn> 
                </Columns> 
                <EditFormSettings> 
                    <PopUpSettings ScrollBars="None"></PopUpSettings> 
                </EditFormSettings> 
            </MasterTableView> 
            <ClientSettings> 
                <ClientEvents OnRowCreated="RowCreated" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="MyDataContext" 
            TableName="MyTable" OrderBy="CreatedDate desc"> 
        </asp:LinqDataSource> 
        <asp:Timer ID="Timer1" runat="server" Interval="15000" OnTick="Timer1_Tick"> 
        </asp:Timer> 
    </telerik:RadAjaxPanel> 
 

Princy
Top achievements
Rank 2
 answered on 10 Jul 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?