Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
57 views
I have a very wide grid, which in Opera needs to have scrolling enabled

// Opera lops off Items grid
HttpBrowserCapabilities Lugs = Request.Browser;
if (Lugs.Type.StartsWith("Opera"))
{
    rgItems.ClientSettings.Scrolling.AllowScroll = true;
}

(all the other browsers are fine IE, Firefox, Chrome, Safari)
there is this huge whitespace in Opera which isn't in any of the other browsers above
Elliott
Top achievements
Rank 2
 answered on 18 Jan 2012
1 answer
75 views
Hi,
I am populating my scheduler at server side using a IEnumerable collection. I am binding all the appoinments on page load. Now when I navigate in between Views(Day, Week and Month), I want the navigation to happen at client side. i.e. no postbacks should happen.

Please let me know if this is possible.
Plamen
Telerik team
 answered on 18 Jan 2012
2 answers
120 views
I have a grid inside a user control.  The user control is recreated on postback.  After it is recreated the NeedDataSource always fires and the rebind reason is always "InitialLoad".  Also, none of my command handlers are called.  Am I not supposed to be recreating the control?

This is what I'm doing:

Creating the user control with the grid inside of it.
In the NeedDataSource, I bind it to the data (and I DON'T call DataBind or Rebind())
The grid shows up fine with all data in it.
Then when I press edit, it makes the fields editable.
Once I press update (which is next to "cancel"), it posts back, the user control (that contains the grid) is recreated by me in Page_Load, and NeedDataSource is called again.  The rebind reason is always "InitialLoad".

Notes:

No where am I turning off view state.
I'm using telerik version 2011.2.915.40.
The only place I'm bind to the grid is in NeedDataSource.

Any idea on what may be happening?  All I'm looking to do is having a grid that has items which I can edit.

Here is my grid definition:

<telerik:RadGrid ID="radGridEmails" runat="server" Skin="Transparent" AutoGenerateColumns="false">
                                  <MasterTableView EditMode="InPlace" >
                                           <Columns>
                                                                                <telerik:GridEditCommandColumn />
                                                                                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">
                                                                                    </telerik:GridBoundColumn>
                                                                                    <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="Email"  >
                                                                                    </telerik:GridBoundColumn>
                                                                                     
                                                                                </Columns>
                                                                            </MasterTableView>
                                                                             
                                                                        </telerik:RadGrid>

More markup in the user control:
<telerik:RadAjaxManagerProxy ID="RadAjaxManager2" runat="server"  >
            <AjaxSettings >
                <telerik:AjaxSetting AjaxControlID="radGridEmails"  >
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="radGridEmails"  />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
</telerik:RadAjaxManagerProxy>


Code in aspx Page_Load:

if (ViewState["currentlyLoadedSection"] != null)
                {
                    panelMain.Controls.Clear();
 
                    string ctrl = (string)ViewState["currentlyLoadedSection"];
                    UserControl uc = (UserControl) GetControlByType(ctrl);
                    uc.ID = ctrl;
 
                    panelMain.Controls.Add(uc);
                    Trace.Write("recreated section " + ctrl);
                }

Code in user control:

protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
 
            radGridEmails.UpdateCommand += new Telerik.Web.UI.GridCommandEventHandler(radGridEmails_UpdateCommand);
            radGridEmails.InsertCommand += new Telerik.Web.UI.GridCommandEventHandler(radGridEmails_InsertCommand);
            radGridEmails.DeleteCommand += new Telerik.Web.UI.GridCommandEventHandler(radGridEmails_DeleteCommand);
            radGridEmails.NeedDataSource += new Telerik.Web.UI.GridNeedDataSourceEventHandler(radGridEmails_NeedDataSource);
        }
 
protected void radGridEmails_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
 
                radGridEmails.DataSource = emailAddresses;
                Trace.Write(e.RebindReason.ToString());
 
        }
ryan
Top achievements
Rank 1
 answered on 18 Jan 2012
5 answers
95 views
Hi,

stupid question ... How can I get the list of arguments available in a named/non anonymous function?
For example, I'm calling onClientXXXX = "MyJS" on a Telerik Control and I'd like to know what is available in the eventArgs ?

Also, when i go in specific RadControls Documentation, sometimes I can get from the examples ... the methods on the eventArgs... eg : args..set_cancel(), args.get_checked()....etc but where do I get an exhaustive list of available methods/properties of those respective Args... I can't seem to find them.
Thanks
Dobromir
Telerik team
 answered on 18 Jan 2012
0 answers
99 views
On December 29 2011 a vulnerability was found in the .NET Framework (http://support.microsoft.com/kb/2638420) basically the vulnerability is related with the number of parameters that an ASP.NET application can receive, the problem is that if you have a RadGrid with more than 10 rows and 15 RadTextBox per row every request will exceed the maximum amount of parameters.

The error that I got was:
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

We can fix this issue using the information of the next link: http://support.microsoft.com/kb/2661403
To fix this issue we just need to set the maximum amount of parameters the page is allowed to get to something that we calculate covers our needs, in my case 3000:
<configuration>
  <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="3000" />
  </appSettings>
</configuration>

Regards
Raul
Top achievements
Rank 1
 asked on 18 Jan 2012
1 answer
49 views
Hi,
I am using SharePoint 2010, and i was learning how to incoorperate AJAX with RADLoadingPanel. The LoadingPanel did shows up but when i scroll, the loadingPanel stick at one location which it is not suppose to.

Anything i did is not right or AJAXPanel donot 100% compatible with SharePoint 2010?

Regards,
Galin
Telerik team
 answered on 18 Jan 2012
5 answers
78 views
When viewed on IE9; contents of all pageviews will be shown in selected index at once.
But when tab is click; corresponding pageview will behave normally..

Note: Tabstrip is within custom control used inside RadGrid.

---- Code below ----

<
telerik:RadTabStrip runat="server" ID="tabStripDetails" SelectedIndex="0" MultiPageID="radMultipage">
        <Tabs>
            <telerik:RadTab runat="server" id="tabPersonal" PageViewID="viewPersonal" Text="Personal Details">
            </telerik:RadTab>
            <telerik:RadTab runat="server" id="tabEducation"  PageViewID="viewEducation" Text="Educational Background">
            </telerik:RadTab>
            <telerik:RadTab runat="server" id="tabEmployment" PageViewID="viewEmployment" Text="Employment Details">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
 <telerik:RadMultiPage runat="server" ID="radMultipage" SelectedIndex="0">
        <telerik:RadPageView ID="viewPersonal" runat="server">
            <div style="border: 1px solid #828282; margin-top: -1px; display: block; background: #ffffff">
                Content #1 Goes Here
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView ID="viewEducation" runat="server">
            <div style="border: 1px solid #828282; margin-top: -1px; display: block; background: #ffffff">
                Content #2 Goes Here
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView ID="viewEmployment" runat="server">
            <div style="border: 1px solid #828282; margin-top: -1px; display: block; background: #ffffff">
                Content #3 Goes Here
            </div>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
Kaushal
Top achievements
Rank 1
 answered on 18 Jan 2012
12 answers
201 views
I have a panelbar that I am using on a masterpage.  I am saving state on it so it will pass the state to the next level.  My issue is, when users select the home page tab to return to the home page, I would like the panelbar to collapse.  I do not want the state to stay the same.  I think my goal can be accomplished by having a collapse on load for my Home masterpage.  I currently use a Javascript to collapse on selecting another level 1 page.  See script below. Can someone tell me how to add an additional javascript that will collapse the panelbar onload.

function collapseItem(panelbar, args)  
        {     
            if(args.get_item().get_items.length < 1)     
            {     
        for (var i=0; i < panelbar.get_items.length; i++)
        {
            panelbar.get_items[i].Collapse();
        }
        }
        }
        </script>
Kate
Telerik team
 answered on 18 Jan 2012
1 answer
93 views
I've got some controls that do ajax requests on the page, however, i've noticed that they're posting to the wrong page address.

myfirendlyurl/myunfriendlyurl.aspx

From a few searches it seems i've got to set the ajaxurl property of the rad ajax manager. Only thing is .. I can't find it. I've looked at the intellisense attributes in both aspx and the code behind file. Neither list an AjaxUrl property. what gives?

FYI i'm using this version of the controls

2011.2.712.40
Maria Ilieva
Telerik team
 answered on 18 Jan 2012
1 answer
52 views
in the 2011 Q3 documentation that is installed on my local computer during setup, I found what I am pretty sure is a typo for the RadAjaxManagerProxy.

The ASPX code has the following:

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function myUserControlClickHandler() {
            $find("<%= RadAjaxManager.GetCurrent(PageClientID %>").ajaxRequest("content");
        }
    </script>
</telerik:RadCodeBlock>

I believe that the code in the $find has an error, and should be the following instead:

$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("content");

The difference is that is should be ".GetCurrent(Page).ClientID" instead of ".GetCurrent(PageClientID".

At least that is what works for me.

Maria Ilieva
Telerik team
 answered on 18 Jan 2012
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?