Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
113 views
Hello
           I am using Telerik Reporting Q1 2008 , I have Created a RadChart when i try to set ToolTip For an  Active Region it shows "Object reference is not set to instance of an Object". 

The Code have used in ItemDataBound is..

Telerik.Reporting.Charting.

ChartSeriesItem chartseries = sender as Telerik.Reporting.Charting.ChartSeriesItem;

chartseries.ActiveRegion.Tooltip = dsGraph.Tables[0].Columns[0].ColumnName;

Pls Kindly help me..

Steve
Telerik team
 answered on 21 Aug 2008
1 answer
69 views
Hi,

we purchased RadControls For ASP.NET AJAX : version 2008.1.619 (7/23/2008) and have recently tri-state treeview functionality is not available.

Could you please confirm whether this is in fact the case and  if so:
1. where can I download the latest release which comes with Treeview tri-state functionality.
2. Is this update free with  my or does this need to be purchased as an upgrade.

Kind Regards.
Donna
Telerik team
 answered on 21 Aug 2008
4 answers
318 views
Is there a way to disable the builtin copy/paste context menu? Or even better, disable/remove items from the builtin copy/paste context menu?

I have an editor implementation where I only want to allow PastePlainText. However I cant seem to access this copy/paste context menu to disable the other paste options.

If I use <contextmenu forElement="*" /> in the toolsfile to create a custom contextmenu, will this override the table property context menu and the image property context menu?

Thanks in advance.
Rumen
Telerik team
 answered on 21 Aug 2008
1 answer
70 views
I have a grid that I create about 6 grid bound columns for.  I fire off the oncolumncreated event to hide and unhide two columns depending on the data being displayed.  The problem is the examples I have found show changing GridBoundColumn display or visibility setting, but when I stop the code execution during the event all of the columns are Expand Columns?  Here are my grid settings:

<

telerik:RadGrid ID="rgLG"

runat="server"

EnableEmbeddedSkins="false"

AutoGenerateColumns="false"

Visible="true"

OnNeedDataSource="rgLG_OnNeedDataSource"

Skin="Report"

EnableLinqExpressions="false"

AllowSorting="false"

ShowStatusBar="false"

AllowPaging="false"

onitemcommand="rgLG_ItemCommand"

oncolumncreated="rgLG_ColumnCreated" >

<MasterTableView AllowSorting="true"

AlternatingItemStyle-BackColor="Gray"

CommandItemDisplay="Top"

DataKeyNames="LG_ID" >

Thanks jim

Daniel
Telerik team
 answered on 21 Aug 2008
8 answers
245 views
Hi,

I would like to use the ComboBox and the Load On Demand feature but would like to use this with the new ADO.NET Data Services.

I was thinking of hooking into the OnClientItemsRequesting event and then calling the Data Services RESTful service (using the Skip and top commands for the paging) and then adding the results to the combobox.  I believe I would also have to cancel the serverside event?  Any ideas?

I know I could do this via a web service call or via your server side event, however I'm interested in using the new Data Service.

Cheers,

Jeff
Jeff
Top achievements
Rank 1
 answered on 21 Aug 2008
1 answer
96 views
The appt times in our database are recorded as ints (0-2400).

This seems to cause a converison issue. We must leave the time formats as is in the database, so how can I work around this on the telerik side of the issue
?

Thanks,
Zach McCain

InvalidCastException: Invalid cast from 'Int16' to 'DateTime'.]
   System.Int16.System.IConvertible.ToDateTime(IFormatProvider provider) +159
   System.Convert.ToDateTime(Object value) +29
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.GetAppointments(RadScheduler owner) +489
   Telerik.Web.UI.RadScheduler.PerformSelect() +186
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   Telerik.Web.UI.RadScheduler.EnsureDataBound() +24
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +107
   Telerik.Web.UI.RadScheduler.CreateChildControls() +29
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +50
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
T. Tsonev
Telerik team
 answered on 21 Aug 2008
2 answers
144 views

When a radGrid column is a non-templated regular column, and the database field is empty, I see the gridlines ok, eg using skin Outlook2007:

<telerik:GridBoundColumn DataField="FileName" HeaderText="FileName"   
    SortExpression="FileName" UniqueName="FileName">  
</telerik:GridBoundColumn> 

But, when I convert the column to a template column, and the field is empty or it contains only spaces, the gridlines disappear for that cell:

<telerik:GridTemplateColumn DataField="FileName" HeaderText="FileName"   
    SortExpression="FileName" UniqueName="FileName">  
    <EditItemTemplate> 
        <asp:TextBox ID="FileNameTextBox" runat="server"   
            Text='<%# Bind("FileName") %>'"></asp:TextBox> 
    </EditItemTemplate> 
    <ItemTemplate> 
        <asp:Label ID="FileNameLabel" runat="server"   
            Text='<%# Eval("FileName") %>'></asp:Label> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 
 

Why is this? And how can I work around this problem?

Thanks, Steve
Steve Newbery
Top achievements
Rank 1
 answered on 21 Aug 2008
1 answer
104 views
Hi,

I found some strange behaviour when working with content with a leading space in the text. I use the get_html javascript method in order to save the content down to sql server through an ajax call. This is working fine. I package up the content in an xml packet and parse this out in sql server.

However, when I have a leading space in the content, this space (and this space only) is encoded differently and breaks my stored proc. I have managed to fix this by using an NVARCHAR parameter rather than a VARCHAR parameter, which is the correct practice for passing in xml to a stored proc, but thought I should let you know about the strange behaviour.

Regards,

Rowen
Rumen
Telerik team
 answered on 21 Aug 2008
7 answers
325 views
I am using the tooltip for prometheus and IE. I have narrowed the problem down to scrolling. I have a registration form which goes byond the limits of the screen so there is a scrollbar on the rightside. If I tab thru the fields, the tooltip on all the fields visible on the current screen works fine. Then I scroll down. When i place my cursor in one of the fields, the tooltip either is way up top, not next to the element, or sometimes, not present at all.

Thanks so much.
Susan

Here is my tooltip code:

<telerik:RadToolTipManager runat="server" ID="RadToolTip5"

ShowEvent="OnFocus"

OnClientShow="OnClientShow"

Skin="Vista"

ShowDelay="100"

AutoCloseDelay="5000"

Width="300px"

Position="MiddleRight"

RelativeTo="Element">

<TargetControls>

<telerik:ToolTipTargetControl TargetControlID="CustomerName" />

<telerik:ToolTipTargetControl TargetControlID="BillAddress1" />

<telerik:ToolTipTargetControl TargetControlID="BillCity" />

<telerik:ToolTipTargetControl TargetControlID="BillState" />

<telerik:ToolTipTargetControl TargetControlID="BillZip" />

<telerik:ToolTipTargetControl TargetControlID="HomePhoneNumber" />

<telerik:ToolTipTargetControl TargetControlID="WorkPhoneNumber" />

<telerik:ToolTipTargetControl TargetControlID="CellPhoneNumber" />

<telerik:ToolTipTargetControl TargetControlID="Last4SSN" />

<telerik:ToolTipTargetControl TargetControlID="FaxNumber" />

<telerik:ToolTipTargetControl TargetControlID="EmailAddress" />

<telerik:ToolTipTargetControl TargetControlID="UserId" />

<telerik:ToolTipTargetControl TargetControlID="Password" />

<telerik:ToolTipTargetControl TargetControlID="ShipAddress1" />

<telerik:ToolTipTargetControl TargetControlID="ShipCity" />

<telerik:ToolTipTargetControl TargetControlID="ShipState" />

<telerik:ToolTipTargetControl TargetControlID="ShipZip" />

<telerik:ToolTipTargetControl TargetControlID="NameOnCard" />

<telerik:ToolTipTargetControl TargetControlID="CardNumber" />

<telerik:ToolTipTargetControl TargetControlID="CVV2Code" />

</TargetControls>

</telerik:RadToolTipManager>

Tsvetie
Telerik team
 answered on 21 Aug 2008
2 answers
163 views
Hi,

I have a control containing a detailsview with a RadComboBox.  The RadComboBox has autopostback set to true.  This is all wrapped up in a control and when placed in a form the OnSelectedIndexChanged fires when I select an item in the RadComboBox. 
Here's a snippet from the ascx file:

        <asp:DetailsView ID="dvNSN" DataKeyNames="NSNID" runat="server"   utoGenerateRows="False" 
            DataSourceID="NSNData" Height="50px" Width="125px"   
            OnItemCommand="dvNSN_ItemCommand"   
            OnItemCreated="dvNSN_ItemCreated"   
            OnDataBound="dvNSN_DataBound"   
            OnItemUpdating="dvNSN_ItemUpdating"   
            OnItemInserting="dvNSN_ItemInserting" 
            OnItemInserted="OnItemInserted" 
            OnItemUpdated="OnItemUpdated" onmodechanged="dvNSN_ModeChanged"   
                onmodechanging="dvNSN_ModeChanging">  
            <Fields> 
                <asp:BoundField DataField="NSNId" HeaderText="NSNId" SortExpression="NSNId" ReadOnly="true" Visible="false" /> 
                <asp:TemplateField HeaderText="NSN" > 
                    <ItemTemplate> 
                        <telerik:RadComboBox ID="rcbNSN" runat="server" EnableLoadOnDemand="true"   
                                 Enabled="true" OnItemsRequested="rcb_ItemsRequested"   
                                OnSelectedIndexChanged="rcb_SelectedIndexChanged" AutoPostBack="true" ShowMoreResultsBox="true"  /> 
                    </ItemTemplate> 
                    <EditItemTemplate  > 
                        <telerik:RadMaskedTextBox ID="tbNSN" runat="server" Mask="aaaa-aa-aaa-aaaa" PromptChar="#" DisplayPromptChar="#" Text='<%#Bind("NSN")%>' /> 
                        </><asp:Label ID="lblPseudo" Text="Leave blank for a system assigned pseudo NSN" runat="server" />                          
                        <asp:RequiredFieldValidator ID="reqvNSN" runat="server" Text="Please enter an NSN number" ControlToValidate="tbNSN" ErrorMessage="*" Enabled="false" /> 
                        </><asp:RegularExpressionValidator ID="rexpNSN" runat="server" ErrorMessage="*" Text="NSNs must be in the format of 9999-99-999-9999, or the system supplied pseudo format of MIDI-YY-000-0000" ControlToValidate="tbNSN" ValidationExpression="^((MIDI[-]{1}[0-9]{2}[-]{1}[0-9]{3}[-]{1}[0-9]{4})|([0-9]{4}[-]{1}[0-9]{2}[-]{1}[0-9]{3}[-]{1}[0-9]{4})|([0-9]{4}[-]{1}[0-9]{2}[-]{1}MIS[-]{1}[0-9]{4}))$"></asp:RegularExpressionValidator> 
                    </EditItemTemplate> 
                </asp:TemplateField>                  
                <asp:TemplateField HeaderText="Type">  
                    <ItemTemplate> 
                        <asp:Label ID="lblType" runat="server" Text='<%#Bind("TypeDescription")%>' /> 
                    </ItemTemplate> 
                    <EditItemTemplate  > 
                        <asp:DropDownList ID="ddType" runat="server" DataSourceID="ObjectDataSourceType" DataTextField="TypeDescription" SelectedValue='<%#Bind("TypeId")%>' DataValueField="TypeId" /> 
                    </EditItemTemplate> 
                </asp:TemplateField> 
                <asp:BoundField DataField="Size" HeaderText="Size" SortExpression="Size" /> 
                <asp:TemplateField HeaderText="Noun">  
                    <ItemTemplate> 
                        <asp:Label ID="lblNoun" runat="server" Text='<%#Bind("Noun")%>' /> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <asp:DropDownList ID="ddNoun" runat="server" DataSourceID="ObjectDataSourceNoun" DataTextField="Noun" SelectedValue='<%#Bind("NounId")%>' DataValueField="NounId" /> 
                    </EditItemTemplate> 
                </asp:TemplateField> 
                <asp:TemplateField HeaderText="Form">  
                    <ItemTemplate> 
                        <asp:Label ID="lblForm" runat="server" Text='<%#Bind("Form")%>' /> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <asp:DropDownList ID="ddForm" runat="server" DataSourceID="ObjectDataSourceForm" DataTextField="Form" SelectedValue='<%#Bind("FormId")%>' DataValueField="FormId" /> 
                    </EditItemTemplate> 
                </asp:TemplateField> 
                <asp:BoundField DataField="Grade" HeaderText="Grade" SortExpression="Grade" /> 
                <asp:BoundField DataField="Misc" HeaderText="Misc Info" SortExpression="Misc" /> 
                <asp:TemplateField HeaderText="Create Date">  
                    <ItemTemplate> 
                        <asp:Label ID="lblCreateDate" runat="server" Text='<%#Bind("CreateDate")%>' /> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <telerik:RadDatePicker ID="RadCreateDate" MinDate="12/31/1732" runat="server" SelectedDate='<%#Bind("CreateDate")%>' > 
                            <DateInput ID="CreateDate" runat="server" Skin=""></DateInput> 
                        </telerik:RadDatePicker> 
                        <asp:RequiredFieldValidator ID="reqvCreateDate" runat="server" Text="Please enter a valid date" ControlToValidate="RadCreateDate" ErrorMessage="*" /> 
                    </EditItemTemplate> 
                </asp:TemplateField> 
                <asp:TemplateField HeaderText="Kit Flg?">  
                    <ItemTemplate> 
                        <asp:DropDownList ID="ddKitFlg" runat="server" SelectedValue='<%#Bind("kitFlg")%>' Enabled="false">  
                            <asp:ListItem Text="No" Value="False" /> 
                            <asp:ListItem Text="Yes" Value="True" /> 
                        </asp:DropDownList> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <asp:DropDownList ID="ddKitFlg" runat="server" SelectedValue='<%#Bind("kitFlg")%>' > 
                            <asp:ListItem Text="No" Value="False" /> 
                            <asp:ListItem Text="Yes" Value="True" /> 
                        </asp:DropDownList> 
                    </EditItemTemplate> 
                </asp:TemplateField> 
                <asp:CommandField ShowEditButton="True" /> 
                <asp:CommandField ShowInsertButton="True" /> 
            </Fields> 
        </asp:DetailsView> 
 


I use this control in another web form embedded within a second control.  So I can place this control, along with others in a RadPanel.  Code is here:

    <telerik:RadPanelbar ID="rpbProduct" runat="server" Skin="Outlook" Width="100%" > 
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Product ID - ">  
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="NSN" Expanded="True">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Expanded="True" Value="itemNSN">  
                        <ItemTemplate> 
                            <uc1:NSN ID="NSNdetail" runat="server" /> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
    </telerik:RadPanelbar> 
 

When I use this control in a web form, the RadComboBox in the control NSNdetail does not fire when the selection is changed.  Thanks in advance.
Gary
Gary
Top achievements
Rank 1
 answered on 21 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?