Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
138 views
The latest controls build seems to break the old solution to the 100% height update panel issue (that of finding the update panel id server-side and setting its height explicitly cliient-side). This breakage is no big deal since I'd like to switch to using the relatively new UpdatePanelHeight property instead of the old hack. However, I have run into an issue. I have a MasterPAge and Contentpage and the latter has two Content Areas. Various controls in each Content are need to ajaxify eachother.

1) I'd like to place an AjaxManagerProxy declaration on the ContentPage so I can make use of the UpdatePanelHeight property, however, I'm not sure how to reference controls in the two contentAreas in the AjaxSettings.
 
2) OR, I can also set the ajaxSettings server-side, but then I don't know how to set the UpdatePanelHeight property.

Can someone let me know how to do either of these.. though #1 is preferrable.

P.S., it would be nice if you could extend the AddAjaxSetting Method to include a parameter for the UpdatePanelHeight.
Tsvetina
Telerik team
 answered on 20 May 2011
2 answers
123 views
Hi,

Can anyone please help me with an example to bind a chart in the runtime using code behind?
I have stored procedures and .Net class files, with Datatable as output, ready with me.

I need a simple example to bind the chart with these classes' objects in the c# file.

Thanks...
Simon
Top achievements
Rank 1
 answered on 20 May 2011
3 answers
121 views
Simple situation.

In the web page:

<telerik:RadWindowManager ID="RWMan" runat="server">

 

   <Windows>

 

    <telerik:RadWindow ID="RWITaskView" runat="server" Width="400" Height="200" BorderColor="Blue"

 

      DestroyOnClose="true" VisibleTitlebar="true" VisibleStatusbar="false"
 
     NavigateUrl ="MemberITaskView.aspx"

 

      VisibleOnPageLoad="false" AutoSize="true" AutoSizeBehaviors="Height, Width"
      KeepInScreenBounds
="false" Behaviors ="Close,Move"

 

      EnableShadow="true" EnableEmbeddedSkins ="false">

 

    </telerik:RadWindow >

 

    <telerik:RadWindow ID="RWITaskEdit" runat="server" Width="400" Height ="200"

 

      DestroyOnClose="true" VisibleTitlebar="true" VisibleStatusbar="false"
      NavigateUrl
="MemberITaskEdit.aspx"

 

      VisibleOnPageLoad="false" AutoSize="true" AutoSizeBehaviors="Height, Width"
      KeepInScreenBounds
="false" Behaviors ="Close,Move"

 

      EnableShadow="true" EnableEmbeddedSkins ="false">

 

    </telerik:RadWindow >

 

  </Windows >

 

</telerik:RadWindowManager >


In databind event for a grid:

 

 

(e.Item.Cells[ViewPos].Controls[1]

 

as HyperLink).Attributes["onclick"] = "ShowITaskView('" + ky + "');" ;

 

 

 

 

 
In webpage script:

 

 

function ShowITaskView(id) {  

 

var Wnd = radopen("MemberITaskView.aspx?itid=" + id, "RWITaskView" );

 

 

 

 

 return false  

 

 

}

 

 

PROBLEM:
1. On the first click on a hyperlink in the RadGrid control,
    The autosize and everything works fine EXCEPT that the title bar and boundaries have opacity 0 somehow
2. On subsequent clicks on hyperlinks in same or other rows,
    Autosize and everything does NOT work, AND the title bar and boundaries are normal.

See the two screen shots.

Any ideas?

Thanks.

Svetlina Anati
Telerik team
 answered on 20 May 2011
5 answers
120 views
Hi,

     i am using rad scheduler in my application. i want to increase the appointment size based on number of appointment.
if only one appointment is available for a day that appoint ment region should be big. 
please refer my screen shot which i attached.
Peter
Telerik team
 answered on 20 May 2011
2 answers
73 views
Is there a way to define a hierarchy grid, but when I expand a particular row (too see its nested item) to hide all the cells in that row?

Something like here: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx
But when the first row is expanded and I see the inner grid, I want to have the cells that contain: "ALFKI", "Maria Anders" and "Alfreds Futterkiste" hidden. And when I collapse the first row to have that cells displayed.

If there is no way to do that feel free to offer another solution.

Thanks,
Kamen
Kamen
Top achievements
Rank 1
 answered on 20 May 2011
3 answers
142 views
hi,
iam using radscheduler with Entity DataSource iam encountered with following errors.

1).Item has already been added. Key in dictionary: 'Reminder' Key being added
this error is only getting  when iam using Entity Data source 

2).when using Customized Advance Form Template(given Example) iam able to get  the given user control values i.e boolean attribute.ascx,ResourceControl.ascx,MultipleResourcevalues.ascx   values but unable to set them ...when trying to set them....iam getting :"object referrence  not set to an instance "Error ...
iam not using provider using entity datasource  and SQldatasource... 
 iam annoying with these problems from so many days... 
Hope i will get  solution for those problems as soon as possible ....


thanking you 
Rajesh 
Veronica
Telerik team
 answered on 20 May 2011
3 answers
132 views
I've got a radgrid in a dnn module/user control and I want to add exporting to pdf. The module is ajax enable via dnn and I'm pretty sure my problem is related to not doing a full postback. Nothing happens when you click the export to pdf button. I'm trying to register the export to pdf button to postback on the page load with no luck. For some reason I can't find the control.

Any help is appreciated, thanks.
protected void Page_Load(System.Object sender, System.EventArgs e)
{
    RadGrid InventoryGrid = (RadGrid)InventoryRadGrid;
    Control pdfExportButton = (Control)InventoryRadGrid.MasterTableView.FindControl("ExportToPdfButton");
    if (pdfExportButton != null)
        ScriptManager.GetCurrent(Page).RegisterPostBackControl(pdfExportButton);
    else messageLabel.Text = "Export to PDF Control Not Found";
    if (!IsPostBack)
    {
    }
}

Daniel
Telerik team
 answered on 20 May 2011
1 answer
146 views
I am new to the company, and new to Telerik controls.  In addition, I THINK we are using an older version right now.

What I need to do is have ALL of the following Tabs text values return true from the FindTabByValue if I pass in 'Notes' as the value.

Notes
Notes(0)
Notes(3)

Will this work with this method?  Is there a way to do this?

Thanks!

Rich
Veronica
Telerik team
 answered on 20 May 2011
4 answers
146 views
When I place a RadGrid in InsertMode with EditFormType="AutoGenerated", the Insert form template is too tall.  When the same grid is in Edit Mode it works fine, the section containing all the controls does not extend the grids overall height. 

Any suggestions would be grand.

Thanks,
Reid
Reid
Top achievements
Rank 2
 answered on 20 May 2011
2 answers
96 views
hi my dear friends :
i have a radcombobox that is in relationship with RadListViw (with RadDataPager Inside)...
when i change the item of rad combobox , so RadListView is Updated... -> selectedIndexxhanged()  server-side event...
-------------------------------------------------------------------------------------------------------------------------------------------------------------
my selectedIndexChanged() is like this :
protected void RadcbImagesGroup_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
    rlvImages.DataBind();
    var raddatapager = (rlvImages).FindControl("RadDataPager1") as RadDataPager;
    if (raddatapager != null)
    {
        raddatapager.FireCommand("Page","First");
    }
 
}

my radComboBox Item values is like : 1,2,3...

in mode 1 we have 25 pages...
in mode 2 we have 5 pages...
in mode 3 we have 5 pages...

my problem is when we are in mode 1 and put the pageNumber to more than 5 and when  i change the combobox Item to mode 2 so
var raddatapager = (rlvImages).FindControl(
"RadDataPager1") as RadDataPager;
is null...

but if we put the page# (we are in mode 1) to lower than 5 or equal 5 , and change the radcb item to another everything works fine...

where is the null problem?

thanks for advance
Veli
Telerik team
 answered on 20 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?