Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
107 views
Hi,

After selecting a node ,  how can i  navigate to the next node by pressing the tab key.Is there any way of navigating through the node(after selecting a node) by pressing the tab key.

Thanks and Regards,
Fabin Xavier.
Simon
Telerik team
 answered on 01 Aug 2008
2 answers
296 views
Is there anything in the works for a zoomify control? Something like this: http://www.dart.com/pwzm_overview.aspx. Basically a control that allows the user to zoom into an image.
bemara57
Top achievements
Rank 1
 answered on 01 Aug 2008
1 answer
137 views
Hi,

The rotator is inside a splitter.

I set the rotator width = "95%" and it come out with error.
But, if I set the rotator width with fix number ie. width = "400px", its fine.

any work around ?

Thanks.
Tsvetie
Telerik team
 answered on 01 Aug 2008
0 answers
80 views
I want to bind webmethod result set to menu control. I have tried the sample code what has given but are not able to bind child nodes to a particular menu item.
Meghna
Top achievements
Rank 1
 asked on 01 Aug 2008
5 answers
241 views
Hi...can any1 help...wat code will i use to open a radwindow from c# code behind?
Svetlina Anati
Telerik team
 answered on 01 Aug 2008
4 answers
202 views
How to use LoadDockLayout in place of LoadState()?
Sophy
Telerik team
 answered on 01 Aug 2008
1 answer
136 views
Hello,
I would like binding two radcombobox in a DetailView, for manage postcode(RadCboCodePostal) and twon(RadCboCommune).
But in one of the radcombobox when I bind the data from the DetailView, it's not find the item.
The error is 'RadCboCommune' has a SelectedValue which is invalid because it does not exist in the list of items
Because the data from the detailView (ADR_COM) it's 'NY' and in the radcombobox there is 'New York'
I have find some post with this problem but for the radgrid.
http://www.telerik.com/help/aspnet/grid/grderrormessages.html
I had test some solution in the detailView but it's don't work.
Do you know a solution for this problem?
Thank you
Regards

    <form id="form1" runat="server"
 
      <asp:ScriptManager ID="ScriptManager1" runat="server"
        </asp:ScriptManager> 
        <asp:DetailsView BorderWidth="0px" ID="DetailsView1" CssClass="DetailsView" runat="server" 
            GridLines="None" AutoGenerateRows="False" DataKeyNames="SOC_ID" DataSourceID="SqlDataSourceSociete" 
            Height="300px" Width="300px"  OnItemCommand="DetailsView1_ItemCommand" > 
            <Fields> 
                
                <asp:TemplateField HeaderText="Code postal"
                    <EditItemTemplate> 
                        <telerik:RadComboBox ID="RadCboCodePostal" DataValueField="RCO_CP" DataSourceID="SqlDataSourceCodePostal" 
                            Skin="Web20" HighlightTemplatedItems="true" AutoPostBack="true" OnSelectedIndexChanged="RadCboCodePostal_SelectedIndexChanged" 
                            DataTextField="RCO_CP" SelectedValue='<%#Bind("ADR_CP") %>' runat="server" AllowCustomText="True" 
                            Filter="Contains" ShowMoreResultsBox="True" EnableLoadOnDemand="True" MarkFirstMatch="True" 
                            OnItemsRequested="RadCboCodePostal_ItemsRequested" EnableVirtualScrolling="True"
                        </telerik:RadComboBox> 
                    </EditItemTemplate> 
                    <HeaderStyle CssClass="EditDetailsFormLabel" /> 
                </asp:TemplateField> 
                <asp:TemplateField HeaderText="Commune"
                    <EditItemTemplate> 
                        <asp:Label ID="lblCommune" runat="server" Text=""></asp:Label><br /> 
                        <telerik:RadComboBox ID="RadCboCommune" AppendDataBoundItems="True" DataValueField="RCO_COM" 
                            DataSourceID="SqlDataSourceCommune" Skin="Web20" HighlightTemplatedItems="true" 
                            Filter="Contains" DataTextField="RCO_COM" runat="server"  SelectedValue='<%# Bind("ADR_COM") %>' > 
                            <Items> 
                                <telerik:RadComboBoxItem runat="server" Selected="True" /> 
                            </Items> 
                        </telerik:RadComboBox> 
                    </EditItemTemplate> 
                    <HeaderStyle CssClass="EditDetailsFormLabel" /> 
                </asp:TemplateField>             
                <asp:CommandField ButtonType="Button" ShowEditButton="True"
                    <ControlStyle CssClass="EditFormActionButtons" /> 
                </asp:CommandField> 
                <asp:CommandField ButtonType="Button" ShowInsertButton="True"
                    <ControlStyle CssClass="EditFormActionButtons" /> 
                </asp:CommandField> 
            </Fields> 
        </asp:DetailsView> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        </telerik:RadAjaxManager> 
        <asp:SqlDataSource ID="SqlDataSourceCodePostal" runat="server" ConnectionString="<%$ ConnectionStrings:DB_DORY_ConnectionString %>" 
            SelectCommand="SELECT DISTINCT TR_COMMUNE_RCO.RCO_CP FROM T_ADRESSE_ADR INNER JOIN T_SOCIETE_SOC ON T_ADRESSE_ADR.ADR_ID = T_SOCIETE_SOC.SOC_ADR INNER JOIN TR_COMMUNE_RCO ON T_ADRESSE_ADR.ADR_CP = TR_COMMUNE_RCO.RCO_CP WHERE (T_SOCIETE_SOC.SOC_ID = @Society) ORDER BY TR_COMMUNE_RCO.RCO_CP"
            <SelectParameters> 
                <asp:QueryStringParameter DefaultValue="0" Name="Society" QueryStringField="society" 
                    Type="String" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> 
        <asp:SqlDataSource ID="SqlDataSourceCommune" runat="server" ConnectionString="<%$ ConnectionStrings:DB_DORY_ConnectionString %>" 
            SelectCommand="SELECT DISTINCT TR_COMMUNE_RCO.RCO_COM FROM T_ADRESSE_ADR INNER JOIN T_SOCIETE_SOC ON T_ADRESSE_ADR.ADR_ID = T_SOCIETE_SOC.SOC_ADR INNER JOIN TR_COMMUNE_RCO ON T_ADRESSE_ADR.ADR_CP = TR_COMMUNE_RCO.RCO_CP WHERE (T_SOCIETE_SOC.SOC_ID = @Society) ORDER BY TR_COMMUNE_RCO.RCO_COM"
            <SelectParameters> 
                <asp:QueryStringParameter DefaultValue="0" Name="Society" QueryStringField="society" 
                    Type="String" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 
   
        <asp:SqlDataSource ID="SqlDataSourceSociete" runat="server" ConnectionString="<%$ ConnectionStrings:DB_DORY_ConnectionString %>" 
            InsertCommand="XTU_AddBaseSocieteSociete" InsertCommandType="StoredProcedure" 
            SelectCommand="SELECT T_SOCIETE_SOC.SOC_ID, T_ADRESSE_ADR.ADR_CP, T_ADRESSE_ADR.ADR_COM FROM T_SOCIETE_SOC INNER JOIN T_ADRESSE_ADR ON T_SOCIETE_SOC.SOC_ADR = T_ADRESSE_ADR.ADR_ID WHERE (T_SOCIETE_SOC.SOC_ID = @Society)" 
            UpdateCommand="XTU_UpBaseSocieteSociete" UpdateCommandType="StoredProcedure"
            <UpdateParameters> 
                <asp:Parameter Name="SOC_ID" Type="Int32" /> 
                <asp:Parameter Name="ADR_CP" Type="String" /> 
                <asp:Parameter Name="ADR_COM" Type="String" /> 
            </UpdateParameters> 
            <InsertParameters> 
                <asp:Parameter Direction="InputOutput" Name="SOC_ID" Type="Int32" /> 
                <asp:Parameter Name="ADR_CP" Type="String" /> 
                <asp:Parameter Name="ADR_COM" Type="String" /> 
            </InsertParameters> 
            <SelectParameters> 
                <asp:QueryStringParameter DefaultValue="0" Name="Society" QueryStringField="Society" 
                    Type="String" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 
       
    </form> 
 

public partial class WebForm1 : System.Web.UI.Page 
    { 
        public static String ConnString = ConfigurationManager.ConnectionStrings["DB_DORY_ConnectionString"].ConnectionString; 
 
        protected void Page_Load(object sender, EventArgs e) 
        { 
               base.OnInit(e); 
               if (!this.IsPostBack) 
               { 
                   DetailsView1.DefaultMode = DetailsViewMode.Edit; 
               } 
        } 
 
        public static DataTable GetRelatedRecords(string query) 
        { 
            SqlConnection conn = new SqlConnection(ConnString); 
            SqlDataAdapter adapter = new SqlDataAdapter(); 
            adapter.SelectCommand = new SqlCommand(query, conn); 
 
            DataTable myDataTable = new DataTable(); 
 
            conn.Open(); 
 
            try 
            { 
                adapter.Fill(myDataTable); 
            } 
            finally 
            { 
                conn.Close(); 
            } 
            return myDataTable; 
        } 
 
        protected void DetailsView1_ItemCommand(object sender, DetailsViewCommandEventArgs e) 
        { 
             
 
        } 
 
        protected void RadCboCodePostal_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) 
        { 
            DataTable data = GetRelatedRecords("SELECT DISTINCT [RCO_CP] FROM [dbo].[TR_COMMUNE_RCO] WHERE [RCO_CP] LIKE '" + e.Text + "%'"); 
 
            RadComboBox List = (RadComboBox)sender; 
            List.AutoPostBack = true
            try 
            { 
                int itemsPerRequest = 10; 
                int itemOffset = e.NumberOfItems; 
                int endOffset = itemOffset + itemsPerRequest; 
                if (endOffset > data.Rows.Count) 
                { 
                    endOffset = data.Rows.Count; 
                } 
                if (endOffset == data.Rows.Count) 
                { 
                    e.EndOfItems = true
                } 
                else 
                { 
                    e.EndOfItems = false
                } 
                for (int i = itemOffset; i < endOffset; i++) 
                { 
                    List.Items.Add(new RadComboBoxItem(data.Rows[i]["RCO_CP"].ToString(), data.Rows[i]["RCO_CP"].ToString())); 
                } 
 
                if (data.Rows.Count > 0) 
                { 
                    e.Message = String.Format("Elément <b>1</b>-<b>{0}</b> sur <b>{1}</b>", endOffset.ToString(), data.Rows.Count.ToString()); 
                } 
                else 
                { 
                    e.Message = "Pas de correspondance"
                } 
            } 
            catch 
            { 
                e.Message = "Pas de correspondance"
            } 
        } 
 
        protected void RadCboCodePostal_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) 
        { 
            DetailsView editedItem = (sender as RadComboBox).NamingContainer as DetailsView; 
            if (((RadComboBox)editedItem.FindControl("RadCboCodePostal")).SelectedValue != ""
            { 
 
                RadComboBox ddList = (RadComboBox)editedItem.FindControl("RadCboCommune"); 
 
                DataTable table = GetRelatedRecords("SELECT DISTINCT [RCO_COM] FROM [dbo].[TR_COMMUNE_RCO] WHERE RCO_CP = '" + ((RadComboBox)editedItem.FindControl("RadCboCodePostal")).SelectedValue + "' ORDER BY [RCO_COM]"); 
 
                ddList.DataSourceID = ""
                ddList.DataSource = table; 
                ddList.DataValueField = "RCO_COM"
                ddList.DataTextField = "RCO_COM"
                ddList.DataBind(); 
            } 
        } 
    } 




Veselin Vasilev
Telerik team
 answered on 01 Aug 2008
1 answer
144 views

Using RadControls_for_ASP.NET_AJAX_2008_1_515_dev.exe

I have a RADGrid with several columns.  The final column is a GridDateTimeColumn.  I have filtering turned on and the column auto generates a DatePicker control to select the date to filter on. 

When I click the calendar icon to choose a date, the calendar is displayed off the edge of the screen.  There doesn't seem to be a setting to move the calendar to the visible area of the screen.

How can I get the calendar to display properly?

<telerik:GridDateTimeColumn HeaderText="Due Date" UniqueName="DueDate" DataField="DueDate" DataFormatString="{0:d}" DataType="System.DateTime"></telerik:GridDateTimeColumn>
Rosen
Telerik team
 answered on 01 Aug 2008
1 answer
150 views
i have a site.. http://uconnectit.com

you have to register and then hit edit to get to the tabstrip.

I just upgraded to the q2 version of the control..

I lost the original skin from q1 which was working perfectly.. and now, in firefox 3, the tabs are all different sizes.. depending on the amount of text in them. It doesn't mess up for ie or safari...

Please advise....

Also, just out of curiosity... when i upgraded to version 2.. I had to edit all the public keys... and as i mentioned above... the skin I was using for the tabstrip was non existent... what is the best way to upgrade a project that was utilizing the q1?

Thanks,

Jeff
Alex Gyoshev
Telerik team
 answered on 01 Aug 2008
6 answers
271 views
Hello,

I have a problem with the header and the datacolumn width in RadScheduler.

My Scheduler has grouping resource and is grouped by room. I have 18 rooms, and in the header, the automatic width set to the room name is "5.6%", but for the datacolumns, the width set is "6%".
So there is an issue with the width, and just 17 of my datacolumns are displayed, moreover everything is offbeat.

I don't know if it's obvious what I say, so I made a screenshot :
http://img156.imageshack.us/my.php?image=20080624125813ej0.gif

I have a dropdown which filters the scheduler to display only rooms in a particular building, and so, when there is 8 or less rooms, there's no problem.


So that said, is there a way to have a minimum width for a column, and having horizontal scroll, because my columns are very tiny ! Or, a way to correct the previous behaviour ?

Thanks
Alex Gyoshev
Telerik team
 answered on 01 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?