Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
250 views
I'm using the RadScheduler on a DotNetNuke module and for the month of November, the scheduler is binding 3140 appointments. Yes, over 3000 appointments.

I'm using the logic to filter by the viewable ranges, and administrators need to see all of the appointments for that range. This has led to a massive ViewState size (2.64MB) and that's after gzip compression as well set on IIS.

With a ViewState that large, it creates a problem for administrators that want to work on their iPad or on their phone over 3G networks, and in some cases even on their PCs. I tried setting EnableViewState = false for the Scheduler, and it almost entirely works.

There is a scenario where a dropdown on the AdvancedForm user control causes a page postback and effectively breaks the control when the ViewState for the Scheduler is off. If there is any code you can point me to that would potentially let me use jQuery or the Telerik cleint-side methods and wire up to a RadComboBox on the AdvancedForm. I have a cascading dropdown scenario where selecting a value in one box needs to set availability of resources in the dropdown right underneath it.

As an example, they pick Client A, it makes a roundtrip to the database and says they have secondary resources A,B,C available (postback). If they pick Client B, they may have resources B, D, and E. The availability of these secondary resources needs to be controlled so simple making them all available is also not an option.

Is there anything else you can recommend in order to minimize the Viewstate size for the Scheduler? Using RadCompression is not an option as we are working with a DotNetNuke instance and it uses a custom provider for compression handling. An acceptable option would be having GetAppointments not return any appointments for an administrator until a filtering option is selected. If there is an example for binding appointments based on a filter without first pulling back all appointments, that would work as well (example: no appointments shown at first, but when Client C is picked, will fetch their appointments using the custom scheduler provider and bind those)

Thanks in advance

Cat Cheshire
Top achievements
Rank 1
 answered on 25 Dec 2012
4 answers
76 views
hi, guys,
i created a pageweb compatibility with chrome and IE9 but when i open this page with IE8 the graphic is not compatibility. Please look at the attached picture.....

I wrote this code but nothing result.

<meta http-equiv="X-UA-Compatible" content="IE=8" />

How can I solve the problem how can I adjust the graphics to IE8, Chrome and Firefox .... 9 and also have different sizes radwindos.


Marin Bratanov
Telerik team
 answered on 25 Dec 2012
1 answer
75 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
109 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
100 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
332 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
222 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
130 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
765 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
115 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?