Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
113 views
Hi,
My grid width is greater than the page width.
When i scoll right using the ie scrollbar, there is a line down the grid where the edge of the page used to be, and the group panel does not extend to the full width of the grid, just the page.
This is dificult to explain, so i have attached some screen shots to show what i mean.

I have tried setting the borderstyle = none, which works , but.. i want the grid to have borders as it looks odd within a DIV with a margin of 10px. This does not solve the group panel issue though.

Attached..
1.jpg shows grid before scrolling to right.
2.jpg shows grid after scrolling to right. (highlighted issue in red)

Any ideas please ?
Thanks
Mark
Mark
Top achievements
Rank 1
 answered on 18 Nov 2009
3 answers
169 views
I've got a web.sitemap that links several other sitemap files for various modules within the application using siteMapFile, or by provider.

As a quick test for this new control, I pointed the datasource at the web.sitemap and everything compiled and ran.  The only thing is that all the linked sitemaps overlay each other graphically.  I can see why this might happen given the node levels created by linking files, but does anyone know an easy way to solve this problem?

Or is there a plan in the future to have the telerik sitemap control figure out the appropriate node levels when using a single sitemap with multiple links?


Simon
Telerik team
 answered on 18 Nov 2009
1 answer
79 views
I'm trying to hightlight the RadComboItems with the following code:
(It is simplified to point out my problem; multiple strings "country" will be fetched from the database based on e.Text, obviously).

protected void cbxCountry_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e) 
{ 
    RadComboBox combo = (RadComboBox)o; 
    combo.Items.Clear(); 
    RadComboBoxItem item = new RadComboBoxItem(); 
    HtmlGenericControl span = new HtmlGenericControl(); 
    string country = "Spain"; 
    span.InnerHtml = System.Text.RegularExpressions.Regex.Replace(country, e.Text, "<em>" + e.Text + "</em>"); 
    item.Controls.Add(span); 
    item.Text = country; 
    combo.Items.Add(item); 
} 
 

It seems to work; I'm totally free in what content to put in an item, even images.
Unfortunately, it does not highlight when the mouse hovers over the item or when keydown is pressed.
Do I have to <class> attribute somewhere?
Simon
Telerik team
 answered on 18 Nov 2009
1 answer
79 views
When I try to freeze a column in a RadGrid from the second radpageview just not working, only when this first.
How can I fix this?
following the example below

<telerik:RadScriptManager ID="RadScriptManager" runat="server">
        </telerik:RadScriptManager>
   
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Web20" MultiPageID="RadMultiPage1"
                SelectedIndex="0" Align="Justify" ReorderTabsOnSelect="true" Width="347px"   >
                <Tabs>
                    <telerik:RadTab Text="1">
                    </telerik:RadTab>
                    <telerik:RadTab Text="2">
                    </telerik:RadTab>
                                      
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"
                Width="345px">
                <telerik:RadPageView ID="RadPageView1" runat="server">
               <telerik:RadGrid ID="RadGrid3" Width="750px" DataSourceID="SqlDataSource1" GridLines="None"
                 runat="server">
                <ClientSettings>
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1">
                    </Scrolling>
                </ClientSettings>
                <SortingSettings SortedBackColor="BurlyWood" />
                <MasterTableView TableLayout="Auto" />
                <HeaderStyle Width="200px" />

            </telerik:RadGrid>
                   
                </telerik:RadPageView>
               <telerik:RadPageView ID="RadPageView2" runat="server">
                   <telerik:RadGrid ID="RadGrid2" Width="750px" DataSourceID="SqlDataSource1" GridLines="None"
                     runat="server">
                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1">
                        </Scrolling>
                    </ClientSettings>
                    <SortingSettings SortedBackColor="BurlyWood" />
                    <MasterTableView TableLayout="Auto" />
                    <HeaderStyle Width="200px" />

                </telerik:RadGrid>
                  
               </telerik:RadPageView>
                
            </telerik:RadMultiPage>
   
           <asp:SqlDataSource ID="SqlDataSource1"
            runat="server"
            ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString_Teste %>"
            SelectCommand="SELECT * FROM Customers"></asp:SqlDataSource>



Flavio Lepka

Pavlina
Telerik team
 answered on 18 Nov 2009
2 answers
88 views
q2 2009
vs2008

Hi,

When I add the radDecorator to my asp.net login control, There's a vertical line in my button.
This happens in both firefox and IE 8.

I assume that it's an issue with the skin, it happens with both web20 and outlook2007

Pease help.

Chris
Chris Yoker
Top achievements
Rank 1
 answered on 18 Nov 2009
2 answers
184 views
Hi All,

I am using rad combo in user control. This user control is being called as edit control in rad grid.
I successfully showing data from database in rad combo box on click of edit icon in grid.
But,
When i m updating, the data/text/value contained in the combo is not there and m unable to find value/test in it . Hence its passing NULL to stored procedure as parameter.

if (e.CommandArgument.ToString() == "Edit")  
                { 
                    UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID); 
                    RadTextBox txtOrderValue = userControl.FindControl("txtOrderValue") as RadTextBox; 
                    RadTextBox txtCostOfSale = userControl.FindControl("txtCostOfSale") as RadTextBox; 
                    RadComboBox ddlCurrency = userControl.FindControl("ddlCurrency") as RadComboBox; 
                    RadComboBox ddlReason = userControl.FindControl("ddlForReason") as RadComboBox; 
                     
 
                    //Prepare new row to add it into DataSource 
                    DataSet dsValidate = new DataSet(); 
                    int userID = Convert.ToInt16(hidUserId.Value); 
                  
                    Convert.ToSingle(txtOrderValue.Text); 
                    _Order.CostOfSale = Convert.ToSingle(txtCostOfSale.Text); 
                    _Order.Creator = Convert.ToInt16(hidUserId.Value); 
                     
                    _Order.CurrencyCode = ddlCurrency.SelectedValue.ToString(); 
                    _Order.Reason = ddlReason.SelectedValue.ToString(); 


Can anybody tell why this is happening? I am getting this problem with ddlCurrency and ddlReason both.


Thanks,
Awadh
Awadh .
Top achievements
Rank 1
 answered on 18 Nov 2009
2 answers
175 views
I can't seem to get the Automatic Updates to fire when I move an item from 1 listbox to another.  When I move an item from 1 listbox to another I need to insert that moved record into a table in my db.  Is this functionality even possible?

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShipmentForwardingVendorCrews.aspx.cs"

 

 

Inherits="Graebel.RITS.Web.Relocations.ShipmentForwardingVendorCrews" %>

 

<%

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

 

<%

@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

 

 

Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>

 

<!

 

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>Shipment Forwarding Vendor Crews</title>

 

 

<link href="../Graebel.css" rel="stylesheet" />

 

</

 

head>

 

<

 

body>

 

 

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

 

 

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

 

 

</asp:ScriptManager>

 

 

<asp:Panel ID="PageContent" runat="server">

 

 

<h1>

 

Shipment Forwarding Vendor Crews

</h1>

 

 

<br />

 

 

<asp:DropDownList ID="ddlODAgent" runat="server" OnSelectedIndexChanged="ddlODAgent_SelectedIndexChanged"

 

 

AutoPostBack="True">

 

 

</asp:DropDownList>

 

 

<br />

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">

 

 

<telerik:RadListBox ID="rlbIsNotCrewLeads" runat="server" Width="200px" Height="200px"

 

 

SelectionMode="Single" AllowTransfer="True" TransferToID="rlbAssignCrewLeads" AutoPostBackOnReorder="True"

 

 

EnableDragAndDrop="True" DataSourceID="UnassignedCrewLeadsDataSource" DataKeyField="VendorCrewId"

 

 

DataTextField="FirstName" DataValueField="VendorCrewId" Skin="Telerik" BorderColor="Black"

 

 

BorderStyle="Solid" BorderWidth="2px">

 

 

</telerik:RadListBox>

 

 

<telerik:RadListBox ID="rlbAssignCrewLeads" runat="server"

 

 

DataSourceID="AssignedCrewLeads" DataKeyField="VendorCrewId" DataTextField="FirstName"

 

 

DataValueField="VendorCrewId" Skin="Telerik" AllowAutomaticUpdates="True" Width="200px" Height="200px"

 

 

BorderColor="Black" BorderStyle="Solid" BorderWidth="2px">

 

 

</telerik:RadListBox>

 

 

<br />

 

 

</telerik:RadAjaxPanel>

 

 

<asp:EntityDataSource ID="UnassignedCrewLeadsDataSource" runat="server" AutoGenerateWhereClause="True"

 

 

CommandText="SELECT value crew

 

FROM VendorCrew AS crew

WHERE NOT EXISTS(SELECT sfvc.VendorCrew.VendorCrewId

FROM ShipmentForwardingVendorCrew AS sfvc

WHERE sfvc.Shipments.ShipmentId = @ShipmentId)

AND crew.CompanyEntities.CompanyEntityId = @VendorId

AND crew.IsActive = true

AND crew.IsCrewLead = true"

 

ConnectionString="name=RITSNetEntities"

 

 

DefaultContainerName="RITSNetEntities" Include="ShipmentForwardingVendorCrew,CompanyEntities">

 

 

<CommandParameters>

 

 

<asp:QueryStringParameter Name="ShipmentId" QueryStringField="10" Type="Int32" />

 

 

<asp:ControlParameter ControlID="ddlODAgent" Name="VendorId" PropertyName="SelectedValue"

 

 

Type="Int32" />

 

 

</CommandParameters>

 

 

</asp:EntityDataSource>

 

 

<asp:EntityDataSource ID="AssignedCrewLeads" runat="server" ConnectionString="name=RITSNetEntities"

 

 

DefaultContainerName="RITSNetEntities" EnableDelete="True" EnableInsert="True"

 

 

EnableUpdate="True" Include="VendorCrew" AutoGenerateWhereClause="True" EntitySetName="ShipmentForwardingVendorCrew"

 

 

Where="">

 

 

<InsertParameters>

 

 

<asp:SessionParameter Name="shipmentId" SessionField="10" DbType="Int32" />

 

 

<asp:SessionParameter DbType="Boolean" Name="IsOriginServicesVendor" SessionField="IsOrigin" />

 

 

<asp:ControlParameter ControlID="rlbAssignCrewLeads" DefaultValue="true" Name="IsCrewLead"

 

 

PropertyName="SelectedValue" DbType="Boolean" />

 

 

</InsertParameters>

 

 

<UpdateParameters>

 

 

<asp:SessionParameter Name="shipmentId" SessionField="10" DbType="Int32" />

 

 

<asp:SessionParameter DbType="Boolean" Name="IsOriginServicesVendor" SessionField="IsOrigin" />

 

 

<asp:ControlParameter ControlID="rlbAssignCrewLeads" DefaultValue="true" Name="IsCrewLead"

 

 

PropertyName="SelectedValue" DbType="Boolean" />

 

 

</UpdateParameters>

 

 

<WhereParameters>

 

 

<asp:SessionParameter Name="shipmentId" SessionField="10" DbType="Int32" />

 

 

<asp:SessionParameter DbType="Boolean" Name="IsOriginServicesVendor" SessionField="IsOrigin" />

 

 

</WhereParameters>

 

 

</asp:EntityDataSource>

 

<%

--<asp:EntityDataSource ID="UnassignedCrewDataSource" runat="server" AutoGenerateWhereClause="True"

 

CommandText="SELECT value crew

FROM VendorCrew AS crew

WHERE NOT EXISTS(SELECT sfvc.VendorCrew.VendorCrewId

FROM ShipmentForwardingVendorCrew AS sfvc

WHERE sfvc.Shipments.ShipmentId = @ShipmentId)

AND crew.CompanyEntities.CompanyEntityId = @VendorId

AND crew.IsActive = true" ConnectionString="name=RITSNetEntities"

DefaultContainerName="RITSNetEntities" Include="ShipmentForwardingVendorCrew,CompanyEntities">

<CommandParameters>

<asp:QueryStringParameter Name="ShipmentId" QueryStringField="10" Type="Int32" />

<asp:ControlParameter ControlID="ddlODAgent" Name="VendorId" PropertyName="SelectedValue"

Type="Int32" />

</CommandParameters>

</asp:EntityDataSource>--

 

%>

 

<%

-- <asp:EntityDataSource ID="AssignedCrewDataSource" runat="server"

 

AutoGenerateWhereClause="True"

CommandText="SELECT value crew

FROM VendorCrew AS crew

WHERE EXISTS(SELECT sfvc.VendorCrew.VendorCrewId

FROM ShipmentForwardingVendorCrew AS sfvc

WHERE sfvc.Shipments.ShipmentId = @ShipmentId)

AND crew.CompanyEntities.CompanyEntityId = @VendorId

AND crew.IsActive = true"

ConnectionString="name=RITSNetEntities"

DefaultContainerName="RITSNetEntities"

Include="ShipmentForwardingVendorCrew,CompanyEntities">

<CommandParameters>

<asp:QueryStringParameter Name="ShipmentId" QueryStringField="10" Type="Int32" />

<asp:ControlParameter ControlID="ddlODAgent" Name="VendorId"

PropertyName="SelectedValue" Type="Int32" />

</CommandParameters>

</asp:EntityDataSource>--

 

%>

 

 

</asp:Panel>

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Mark Galbreath
Top achievements
Rank 2
 answered on 18 Nov 2009
1 answer
95 views
Dear telerik,

We're trying to add RTL support to our application that uses the Q3/2009 RadSplitter control, but we're getting an error in the javascript embedded resource file as follows:
a.RadSplitter._preInitialize=function(b){a.RadSplitterController.getInstance()._addSplitter(b);  
 
…  
 
}},_ensureItemsOrder:function(g,t){this._fixItemsIndeces(g);  
if(t){var o=this._splitters[g];  
var l=this._panes;  
var q=o.panes;  
var e=q?q.length:0;  
var r=o.splitbars;  
var p=r?r.length:0;  
var c=e+p;  
var f=[];  
for(var h=e-1;  
h>=0;  
h--){var d=q[h];  
f[f.length]=d;  
var n=l[d];  
n.indexInPanes=e-1-n.indexInPanes;  
n.index=(c-1-n.index);  
n.isLastPane=false;  
var j=n.prevSplitBarId;  
n.prevSplitBarId=n.nextSplitBarId;  
n.nextSplitBarId=j;  
}o.panes=f;  
var m=this._splitBars; //_splitBars is null, but _splitbars in not null  
var k=[];  
for(var h=p-1;  
h>=0;  
h--){var s=r[h];  
k[k.length]=s;  
var b=m[s]; //since m is null, m[s] is a problem  
…  
 
I added the above comments for clarity. Note that the error seems to be in the line var b=m[s] but m is null because it was assigned above as m=this._splitBars instead of _splitbars.

Can you please suggest a solution?

Salah A. Malaeb
TeknoBuild
Tsvetie
Telerik team
 answered on 18 Nov 2009
1 answer
253 views
I'm using a Telerik RadDatePicker and it gives me the attached (GUI Warning message) if I put in a date 30 years ago or more. If I put in November 1980 everything saves fine without any warning. If I put in November 1979 or later it gives me this warning message and doesn't save. I have attached my code. I've tried setting the MinDate property to 1900-01-01 and it made no difference. Any ideas? Am I missing a key property on my control? The reason I'm using the RadDatePicker is I need the month year format.


<table cellpadding="0" cellspacing="0" border="0">  
    <tr> 
        <td style="padding-right:10px;">  
           Date of diagnosis for this condition?  
        </td> 
        <td> 
           <telerik:RadDatePicker ID="txtDiagnosisDate" runat="server" SelectedDate='<%# Bind("DiagnosisDate") %>'>  
             <DateInput ID="DateInput1" DateFormat="MMMM yyyy" runat="server">  
             </DateInput> 
             <Calendar ID="Calendar1" runat="server">  
               <FastNavigationSettings TodayButtonCaption="current date" /> 
             </Calendar> 
           </telerik:RadDatePicker> 
        </td>                                         
    </tr> 
</table> 
Martin
Telerik team
 answered on 18 Nov 2009
1 answer
115 views

Is there a way to create a multi-column dropdown list in a comboBox using a webservice as a source?

Thanks so much for the help.
JC
(dangelesjc@yahoo.com)
Simon
Telerik team
 answered on 18 Nov 2009
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?