Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
I have a RadWindow overlay that opens up with some textboxes in it. The overlay pops up over an Flash video normally, but on the iPad, we have an HTML5 video there instead.

When it's on the iPad with this HTML5 video, whenever I try to click on a textbox to enter information, the click is registered on the HTML5 video behind the overlay instead. Only the left half of the overlay is over the html5 video, so if I click on the far right of the textbox, it will register the click correctly inside the textbox and bring a cursor up. 

I am calling the SetActive() function on the window, so it should be the active window. Any ideas? Has anyone else run into this problem? It works fine on a desktop when a flash player is involved.

var oManager = radopen('/testfile.aspx', null);
 
oManager.setSize(450, 400);
oManager.center();
oManager.SetActive();

Marin Bratanov
Telerik team
 answered on 25 Dec 2012
1 answer
114 views
i am creating a rad chart control in codebehind and adding it to the page. i now need to add tooltip to the points.
I assign the data ycolumn to the chart series. so i dont have active regions defined hence no tool tip.
can anyone point me in the right direction. any help is appreciated. thank you.

Murali.
Petar Marchev
Telerik team
 answered on 25 Dec 2012
1 answer
105 views
Hi,

I have built in a RadComboBox in a .net-Controltemplate with the following code:

<telerik:RadODataDataSource runat="server" ID="RadODataDataSource1" >
    <Transport>
        <Read Url="http://sharepoint/_vti_bin/ListData.svc/" DataType="XML" />
    </Transport>
    <Schema>
        <telerik:DataModel ModelID="Steuerkennzeichen" Set="Steuerkennzeichen">
            <telerik:DataModelField FieldName="Titel"  />
            <telerik:DataModelField FieldName="Display_Text" />                               
        </telerik:DataModel>
    </Schema>
</telerik:RadODataDataSource>
 
<telerik:RadComboBox
    ID="RadComboBox1"
    runat="server"
    EnableLoadOnDemand="true"
    ODataDataSourceID="RadODataDataSource1"
    DataModelID="Steuerkennzeichen"
    DataTextField="Display_Text"
    DataValueField="Titel"
    ShowMoreResultsBox="true"
    ItemsPerRequest="4">
</telerik:RadComboBox>

I found the following thread: http://www.telerik.com/community/forums/aspnet-ajax/odata-datasource/no-data-from-odata.aspx
but this did not help.

My Result (Fiddler) looks like this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
  <title type="text">Steuerkennzeichen</title>
  <updated>2012-12-20T08:34:35Z</updated>
  <link rel="self" title="Steuerkennzeichen" href="Steuerkennzeichen" />
  <entry m:etag="W/"1"">
    <title type="text">19%</title>
    <updated>2012-11-07T16:45:48+01:00</updated>
    <author>
      <name />
    </author>
    <link rel="edit" title="SteuerkennzeichenItem" href="Steuerkennzeichen(1)" />
    <category term="Microsoft.SharePoint.DataService.SteuerkennzeichenItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <content type="application/xml">
      <m:properties>
        <d:Steuerkennzeichen>50</d:Steuerkennzeichen>
        <d:Display_Text>50 / 19%</d:Display_Text>
      </m:properties>
    </content>
  </entry>
  <entry m:etag="W/"1"">
    <title type="text">7%</title>
    <updated>2012-11-07T16:45:57+01:00</updated>
    <author>
      <name />
    </author>
    <link rel="edit" title="SteuerkennzeichenItem" href="Steuerkennzeichen(2)" />
    <category term="Microsoft.SharePoint.DataService.SteuerkennzeichenItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <content type="application/xml">
      <m:properties>
        <d:Steuerkennzeichen>51</d:Steuerkennzeichen>
        <d:Display_Text>51 / 7%</d:Display_Text>
      </m:properties>
    </content>
  </entry>
  <entry m:etag="W/"1"">
    <title type="text">0</title>
    <updated>2012-11-07T16:46:07+01:00</updated>
    <author>
      <name />
    </author>
    <link rel="edit" title="SteuerkennzeichenItem" href="Steuerkennzeichen(3)" />
    <category term="Microsoft.SharePoint.DataService.SteuerkennzeichenItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <content type="application/xml">
      <m:properties>
        <d:Steuerkennzeichen>0</d:Steuerkennzeichen>
        <d:Display_Text>0 / 0</d:Display_Text>
      </m:properties>
    </content>
  </entry>
</feed>


Does anybody know, why my Combobox does not show any values to choose?

Kind Regards,
Markus


Cat Cheshire
Top achievements
Rank 1
 answered on 24 Dec 2012
10 answers
340 views
Hi, I have a radGrid that uses a user control to handle Insert/Edit. The user control is a popup (EditMode="PopUp") and it all appears to work fine. The only problem is that in the Form Load event of my popup, IsPostBack is always true. I guess this is because it has loaded in an Ajax Panel?

Any thoughts how I can get round this?

Thanks!
Eyup
Telerik team
 answered on 24 Dec 2012
4 answers
225 views
I have a grid with a template form for editing. I initially load my controls on the item data bound event but would like to also postback and update a series of dropdowns before the final insert or update.  My problem is that when I postback from the RadComboBox I can not seem to get access to the container to update the other dropdown. If I, as an option, create a custom command and use ItemCommand I am unable to see the GridDataItem.IsInEditMode as true nor cast to a GridEditFormItem to access these other fields.  BTW if the command is one of the core CRUD commands like update or insert I have no problem with accessing these fields.

Ideally I'd like to just autopost the dropdowns to update but I can live with a button if I can get that to work. 

Hope all that makes sense. Any ideas? Thanks.

Sample code
aspx:

 

 
<EditFormSettings EditFormType="Template" >   
 <FormTemplate>   
 <asp:Panel ID="Panel1" runat="server" DefaultButton="btnUpdate">   
 ...  
   <asp:Button ID="btnTest" Text="Test" runat="server" CausesValidation="False" CommandName="InterimUpdate"></asp:Button>   
 
 </asp:Panel>   
 
</FormTemplate>   
 
</EditFormSettings>   
 
  

 

 

protected void rg_ItemCommand(object source, Telerik.WebControls.GridCommandEventArgs e)   
{  
    if (e.CommandName == "InterimUpdate")        <== simple embeded command button see above   
 
    {  
          if (e.Item is GridEditFormItem && e.Item.IsInEditMode)            <== Never gets past this on custom command    
           {   
 
                string s = ((RadComboBox)e.Item.FindControl("rcb1")).SelectedValue; 
                RadComboBox rcb = new RadComboBox();
                rcb = e.Item.FindControl("rcb2"as RadComboBox;   
                rcb.DataTextField = "Name";   
                rcb.DataValueField = "ID";   
                rcb.DataSource = getAllXXX(s);   
 
                rcb.DataBind();  
            }  
 
    }  
 

 

 

 

 

 

 



Thanks in advance.
Eyup
Telerik team
 answered on 24 Dec 2012
2 answers
136 views
Hi,

i want to develop a hierarchy grid with pragmatically Binding using DetailTableDataBind Event in this i have different tables and based on id i may get different structured tables with different columns how can i bind these tables to  GridTableView  in Telerik please help in this aspect 


am using this code for  DetailTableDataBind Event
protected void Rgrid_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
            GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
            int PNameID = Convert.ToInt16(dataItem.GetDataKeyValue("PNameID"));
             
                try
                {
                    Common ObjCommon = new Common();
 
                    DataSet ds = ObjCommon.DocumentsWithFields(PNameID);
                       
                          
                  
                    if (ds.Tables.Count > 0)
                    {
                        if (ds.Tables[0].Rows.Count > 0)
                        {
                            
 
                            e.DetailTableView.Columns.Clear();
                           e.DetailTableView.DataSource= ds.Tables[0];
                            
                           
                        }
                    }
                    else
                    {
                        var PropertyDocs = (ObjCommon .DocumentsWithoutFields(PNameID)).ToList();
                        e.DetailTableView.DataSource = PropertyDocs;
                        
                    }
                    
                }
               
                catch (Exception ex)
                {
            Response.Write(ex.Message);
                }
             
        }

above code return correct table structure but not binding to Gridtable view
Eyup
Telerik team
 answered on 24 Dec 2012
7 answers
776 views
I have 2 RadNumericTextBoxs and what I want to do is change the value of the second text box based on the value the user enters into the first.  For example I want the 2nd text box to always show the square of the value of the first and I want this to happen client side.  How do I do this?

I tried the following:

 

<telerik:RadNumericTextBox ID="originalNumber" runat="server" Label="Number"

 

 

Type="Number" DataType="long" NumberFormat-DecimalDigits="0" Width="250px" >

 

 

<ClientEvents OnValueChanged="squareValue" />

 

 

<NumberFormat DecimalDigits="0"></NumberFormat>

 

 

</telerik:RadNumericTextBox>

 

 

<telerik:RadNumericTextBox ID="squaredNumber" runat="server" Label="number Squared"

 

 

Type="Number" DataType="long" NumberFormat-DecimalDigits="0" Width="250px">

 

 

<NumberFormat DecimalDigits="0"></NumberFormat>

 

 

</telerik:RadNumericTextBox><br />

 

<

 

script type="text/javascript">

 

 

function squareValue(sender, eventArgs) {

 

originalValue = parseInt(document.getElementById(

"originalNumber").value);

 

document.getElementById(

"squaredNumber").value = originalValue * originalValue;

 

}

 

 

</

 

script>

 

 

 


The value changes, but it never changes on screen.

 

 

Eyup
Telerik team
 answered on 24 Dec 2012
3 answers
120 views
I have a unique situation. We are developing a Timecard Entry system with "Time In" and "Time Out" pickers for each day of the week. I have attached a screenshot for reference. When a blank timecard initially loads, the time pickers should have an empty message of "Time In" and "Time Out" accordingly. I do this by settings the DateInput.EmptyMessage property. When a user selects the Time In/Out values, the DATE portion of the time picker needs to be the date corresponding to the day of the week. Instead, each time picker's date is always defaulted to TODAY's date. The only way I know to change this default behavior is to manually set the "SelectedDate" property on each time picker for each day of the week but then I lose my EmptyMessage of "Time In" or "Time Out".  My question is, is there a way to set the SelectedDate property but not have it actually be visually "selected" per se? I need the time pickers to display the EmptyMessage when the page loads. But I still need to have full control over which date the control uses when something is selected.
Vasil
Telerik team
 answered on 24 Dec 2012
2 answers
84 views
Hi,

Could you, please, suggest how to change the original code from this article:

Grid's context menu

in case we have multiple grids?

Thank you in advance.

Goran
Eyup
Telerik team
 answered on 24 Dec 2012
1 answer
82 views

Bullet list and chrome problem.

Screen shots proccess:
1.

http://i48.tinypic.com/zivms1.jpg
2.
http://i46.tinypic.com/9htavd.jpg
3.
http://i47.tinypic.com/2ezjsed.jpg
4.
http://i46.tinypic.com/a5lxf.jpg


How to prevent editor to add "font-size:0px" ?

Misho
Telerik team
 answered on 24 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?