Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
102 views
I am adding custom attributes server side and then using them for some basic client side logic. 

I am then accessing them on post-back on the server as well. Is there a way to prevent client side setAttribute? Attributes be accessed via setAttribute and be over written, right? Can I prevent this?

Thanks, Marty
Kalina
Telerik team
 answered on 12 Nov 2012
20 answers
1.2K+ views
Hi,
I am using a Rad combo box with properties
EnableLoadOnDemand ="true"  
OnItemsRequested="ddlCode_ItemsRequested" 
OnSelectedIndexChanged ="ddlCode_SelectedIndexChanged"
MarkFirstMatch="false"
But if I enter a text which is existing in the combo list and press on enter it will not go to selectedIndexChanged event. 

My requirement is if i enter the text and perss on enter key it should go to the selected indexchaned event. and the entered text item should get selected in the combo box.

In the below url i have seen a example when on client key press if "enter Key" is found they invoke serverside button postback event.
  http://www.telerik.com/community/forums/aspnet-ajax/combobox/keypress-event-of-radcombo-box.aspx

How we can achieve this for dropdown enter Key press event. to invoke selectedIndex changed event?

thanks
Siva Kumar KB
Kalina
Telerik team
 answered on 12 Nov 2012
2 answers
117 views

Hi all,

I'm having a problem with PageViewCreated either not firing at all or firing too often.  My markup is this:

<telerik:RadTabStrip ID="rtsReturns" runat="server" MultiPageID="rmpReturns" OnTabClick="rtsReturns_TabClick">
     <Tabs>
         <telerik:RadTab runat="server" Text="Current Returns" Value="Current"></telerik:RadTab>
     </Tabs>
 </telerik:RadTabStrip>
  <telerik:RadMultiPage id="rmpReturns" runat="server" SelectedIndex="0" Width="400">
   <telerik:RadPageView id="pgvwCurrent" runat="server">
       <h1>This is where the current returns will go</h1>
   </telerik:RadPageView>
 </telerik:RadMultiPage>

And my codebehind is:

protected void Page_PreRender(object sender, EventArgs e)
{
  if (!IsPostBack)
  {
    foreach (TrustTaxReturnGroup ttrg in Ctl.FormerTTRGs)
    {
      RadTab tab1 = new RadTab(ttrg.StartDate.ToString());
      tab1.Value = ttrg.StartDate.ToString();
      rtsReturns.Tabs.Add(tab1);
 
      RadPageView pg1 = new RadPageView();
      pg1.ID = ttrg.StartDate.ToString();
      rmpReturns.PageViews.Add(pg1);
    }
  }
}

and

protected void rmpReturns_PageViewCreated(object sender, RadMultiPageEventArgs e)
{
  RadTextBox tb = new RadTextBox();
  tb.Text = "This should be on the page just created";
  tb.ID = e.PageView.ID + "_textbox";
  e.PageView.Controls.Add(tb);
}

If I modify the markup to include

OnPageViewCreated="rmpReturns_PageViewCreated"

the PageViewCreated method fires three times every time I click a tab (since there are three tabs being created programatically).  But if I don't have that in my markup it never enters that routine at all.  I thought maybe it had something to do with the pageviews being created in the PreRender but I moved it to the Page_OnLoad and the results are the same. 

I'm sure it's something I'm just not seeing, but I'm just not seeing it.  Can anyone out there set me straight?  I'd greatly appreciate it.

Nencho
Telerik team
 answered on 12 Nov 2012
1 answer
76 views
I am dynamically creating one panel.  I am adding multiple comboboxs to it and each should have it's own tooltip.

Only the tooltip for the panel displays. If I remove the panel tooltip the item tooltips display but only after an odd delay.

I can post some code if you like, it this an issue I should be aware of?

Marty
Kate
Telerik team
 answered on 12 Nov 2012
2 answers
74 views
I have a bar chart with multiple series. When I have only one series, the bar shows up on the correct X Point. When I add a second series, the bar will no longer sit on its proper x point.

The images below graphandline.png and 2graphandline.png show the bar chart before and after the second series is added. You will notice that the first graph shows a point after 10/24. When a second series is added, that 10/24 point moves to the left of the 10/23 mark on the x axis. The third chart 3graphandline.png shows the graphs after manually setting the range and steps. As you can see, the x points are sitting between days. This graph is databound with the following code

chartResults.DataManager.ValuesXColumn = "iDate"

chartResults.DataGroupColumn = "sType"

chartResults.PlotArea.XAxis.Appearance.ValueFormat = Styles.ChartValueFormat.ShortDate

chartResults.DataSource = dt

 
The snippet below is a sample of data being added to the data table. It converts the date to an object, as suggested in the online documentation.

fValue = rdr("sValue").ToString

Dim dDate As DateTime = rdr("dStartDateTime")
Dim oDate As Date = New Date(dDate.Year, dDate.Month, dDate.Day)

Dim oRow As DataRow = dt.NewRow
oRow("fValue") = fValue
oRow("iDate") = oDate.ToOADate()     
oRow("sDate") = rdr("dStartDateTime").ToString
oRow("sType") = sDrug
dt.Rows.Add(oRow)

Is there something I am missing, or doing wrong. The goal is to have the x points from series 1 remain on the correct x point when another series is added. Any advice, or suggestions are appreciated.

Many thanks in advance!

 

 

 

 

John Willey
Top achievements
Rank 1
 answered on 12 Nov 2012
1 answer
39 views
Hi,

I have drastically simplified my code and cannot figure out a bug that is now happening.

I have a combobox and once values have been selected it goes away and the child gets populated.  I have 100s of these and they work fine.  Now that I've upgraded to Q3 2012 I am finding that when the child combo box has checkboxes I run into issues.

The combo still works and gets populated with the data but when I click on one of the checkboxes the text doesn't appear in the combo box line

BTW your support page is showing a 403 error...

Basic code is as follows: 

<telerik:RadAjaxManager ID="uxRadAjaxManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="uxClient">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="uxPortfolio" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadComboBox ID="uxClient" Runat="server" AllowCustomText="true" CssClass="halfWidthComboBox"
onclientselectedindexchanging="LoadClientChildren" onitemsrequested="uxClient_ItemsRequested" MarkFirstMatch="True"></telerik:RadComboBox>
<br />
<telerik:RadComboBox ID="uxPortfolio" Runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true"
onitemsrequested="uxPortfolio_ItemsRequested" MarkFirstMatch="True"
></telerik:RadComboBox>
Kalina
Telerik team
 answered on 12 Nov 2012
3 answers
118 views

I am working an Asp.net project, I am loading two user controls into another ascx control which uses RadSplitter to divide them. First, I am loading the control1.ascx and then the control2. After loading both of them inside control2.ascx I want to access a function that reloads some data of control1. I am doing it with the following code:

 private ASP.control1_ascx tree; 
 tree = (ASP.control1_ascx)LoadControl("control1.ascx");
 tree.aload();

When I debug the code, it seems that it calls the aload() function and updates the RadTreeView. But the problem is that I cannot see them after the function is called, instead I can see the correct data after a postback event. Why is this happens?. Is there a solution to see them when I call the function ?

Vessy
Telerik team
 answered on 12 Nov 2012
2 answers
191 views
Hello,

I have a problem with the group collaspe/expand. My grid is not grouping by default. If I drag a column to group it, it works. When I collapse it, it also works but when I want to expand the collapsed columns, it won't works. I don't have any error (javascript or server-side).

There's my code :
<%@ Page Language="C#" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GetVersionMapping._Default" %>
 
<%@ 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">
 
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                </telerik:RadScriptManager>
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="RadGrid1">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
                 
                <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" ShowGroupPanel="True"  >
             
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
 
                    <MasterTableView HierarchyDefaultExpanded="True" >
                        <Columns>
                            <telerik:GridBoundColumn DataField="Platform" HeaderText="Platform" UniqueName="Platform">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Client" HeaderText="Client" UniqueName="Client">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Application" HeaderText="Application" UniqueName="Application">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Version" HeaderText="Version" UniqueName="Version">
                            </telerik:GridBoundColumn>
                            <telerik:GridDateTimeColumn DataField="Date" HeaderText="Publication Date" UniqueName="Date">
                            </telerik:GridDateTimeColumn>
                        </Columns>
                    </MasterTableView>
 
                    <ClientSettings AllowDragToGroup="True" >
                    </ClientSettings>
 
                </telerik:RadGrid>
                 
            </div>
        </form>
    </body>
</html>

Can you see a problem in my code ?

Thanks by advance.
Pierre-Antoine DOUCHET
Top achievements
Rank 1
 answered on 12 Nov 2012
2 answers
94 views
I need to be able to access other fields on the same record that was just selected through the combo box - in the code behind is where I want to access the other fields.  I have a record - an employee record, the fields are first name, last name, phone number, address, dob, and email address.  The combo box displays and I selected the record by last name - after selecting the record by last name, i want to display the address on the screen.  ( I am using C# mostly, an explanation in either C# or VB would be great).

Thanks in advance.

Donnie


wow.
Don
Top achievements
Rank 1
 answered on 12 Nov 2012
10 answers
343 views
Hi,

I have telerik rad datepicker  in my page, I have set width to this controls, and when using telerik version 2009, it works fine, I have changed telerik version to Q1 2012 and now when rendering page in IE (8.0) it shows width less than the width specified, but when focusing on this controls, the width change to the specified width. In other browsers it rendering correctly,
How can i solve this issue.
The attached images shows the details
the first image (image1) is when page loads and the second image (image2) is when focused on the control.

thanks in advance
Jiju
Galin
Telerik team
 answered on 12 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?