Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
159 views
I read through your caching example and I just have a couple quick questions. Can I set the amount of time that the cache refreshes, or is it static, or based on the session timeout or something. Also, does this cache it so if I had a grid on page 1, then went to page 2, then back to page 1, it still pulls the cached version?

Here's my problem. I have a gird with a large amount of data that is relatively statice. I want the page to be able to load super fast (I get it'll have to pull the data once) so I'm trying to do everything I can to make this page load as fast as I can.
Princy
Top achievements
Rank 2
 answered on 23 Aug 2013
1 answer
171 views

My name is Albert Cepeda, and I’m a developer at Deloitte

We upgrade Telerik’s controls to 2013 version, but we found a new issue/feature in the RadGrid's  GridTemplateColumn, when I set the Visible attribute To false, then

in code-behind the value hold by this column is turn to   I tried with the Display attribute obtaining successful results, but in this moment all our sites use the Visible atttribute in many

Radgrids in many Forms.

 

There is any way to fix this behavior in our sites in a rapid way?

 

Best Regards,

Princy
Top achievements
Rank 2
 answered on 23 Aug 2013
8 answers
386 views
I have an <asp:Panel that I am enabling and disabling. I have a combobox in that panel.

The combobox does not look disabled. It seems to work fine but looks enabled regardless.

I am using the Telerik theme. See attached.

Thanks, Marty
Kate
Telerik team
 answered on 23 Aug 2013
2 answers
112 views
Hi!

I have a case where I want to disable Drag and Drop based on whether the user is accessing my site from a laptop or mobile device.  If it's Mobile, I want to disable it.

I thought that the OnInit event would be the right place to do this.  Could someone point me in the right direction for this?

TIA!
protected void ItemTree_Init(object sender, EventArgs e)
{
    var browsersniff = Request.Browser;
        if (browsersniff.IsMobileDevice == true)
        {
            this.ItemTree.EnableDragAndDrop = false;
            this.ItemTree.EnableDragAndDropBetweenNodes = false;
        }
}

       

 (Edit: I should add that the code above does get hit when I run on the debugger.  It just isn't disabling Drag/Drop)

 

Richard
Top achievements
Rank 1
 answered on 23 Aug 2013
3 answers
168 views

Telerik Experts,

We have created some
SharePoint Visual Web Parts containing Telerik Rad Control ( RadGrid for ASP .Net Ajax) using Visual Studio 2013. These are simple webparts that consume sharepoint lists as datasource. We sucessfully deployed the Web Parts to SharePoint 2013 and are able to add these WebParts in SharePoint pages.

The solution works fine as long as we are using default SharePoint MasterPage. There is a feature in SharePoint which lets you create
custommasterpages for the site from an html file. The details as how it works can be found here:
http://preachingsharepoint.blogspot.com/2012/09/sharepoint-2013-how-to-add-html-master.html

When we use these converted masterpages for the site pages, webparts developed using Telerik Controls for ASP .Net AJAX no longer works and pages start erroring out. Here's the error message the we get
"The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. "

We tried creating a webpart with standard ASP .Net controls and use them with these custom masterpages. These WebParts works fine, so the problem is isolated to using WebParts containing Telerik controls and using the custom masterpages that are converted from html. We were able to reproduce this issue on multiple SharePoint farms, so its not an one off issue.

Tsvetoslav
Telerik team
 answered on 23 Aug 2013
2 answers
115 views
I have a panel and dropdown like so
<telerik:RadAjaxPanel runat="server" ID="panel" LoadingPanelID="loadingPanel">
<asp:DropDownList ID="itemDrop" runat="server"></asp:DropDownList>
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxLoadingPanel ID="loadingPanel" BackgroundPosition="Center" runat="server">
        <img id="Img1" alt="Loading..." src="~/images/loading.gif" runat="server" style="border: 0px;" />
    </telerik:RadAjaxLoadingPanel>

In the code behind I attach a JS function to the onchange event of the dropdown. Here is the JS function
function showFields(id) {
    var dd = document.getElementById(id);
    var itemArr = (dd.options[dd.selectedIndex].value).split(";;;");
     
    var perDiv = document.getElementById("percentDiv");
    var quantDiv = document.getElementById("quantityDiv");
     
    var disValue = itemArr[1];
    var item = itemArr[0];
     
    if (item == "-1") {
        perDiv.style.display = "none";
        quantDiv.style.display = "none";
    }
    else {
         
        //see if we show quantity as well
        if (disValue > 0) {
            perDiv.style.display = "block";
            quantDiv.style.display = "block";
        }
        else {
            perDiv.style.display = "none";
            quantDiv.style.display = "block";
        }//if disValue > 0
 
         
    }//if item == -1
}

Basically, I pass in the client id of the drop down. It then reads the value and decides whether or not to show some text boxes. They are set to display none by default. The problem I have is, when I do a post back with the ajax panel, the text boxes go back to being hidden. I am also calling this javascript function in the page load. When I remove the ajax panel, it sees the dd and keeps the text boxes visible. However, when I add the ajaxpanel back in, the textboxes go back to hidden on the postback. Any ideas why?






Eyup
Telerik team
 answered on 23 Aug 2013
0 answers
74 views
Hi pals,

     I have a database with these fields: id, title, description, date. This table is named "project". I want to display the details of each project in a separate tab. I bound the table to the TabStrip via SqlDataSource and it creates a new tab for each project (the "title" of project is the title of each tab). Now I want to show the fields "description" and "date" of every project in MultiPage, but I don't know how to do so. I was wondering if you'd mind helping me with this problem.

<telerik:RadTabStrip ID="RadTabStrip1" runat="server"
            MultiPageID="RadMultiPage1" SelectedIndex="1" Skin="BlackMetroTouch"
            DataSourceID="SqlDataSource1" DataFieldID="id" DataTextField="title">
        </telerik:RadTabStrip>
I know the following code is wrong, but help me to correct it
<telerik:RadMultiPage ID="RadMultiPage1" runat="server">
            <telerik:RadPageView ID="<%#Eval("title") %>" runat="server">
            </telerik:RadPageView>
        </telerik:RadMultiPage>
Benglish
Top achievements
Rank 1
 asked on 23 Aug 2013
2 answers
85 views

This is a bit of a weird one!

We have an MVC application that, at certain points (when the user opts to edit a paragraph), adds an iframe to the DOM. The src of this iframe points at an aspx page that contains the RADEditor. Once content has been edited and the user clicks the save button, we suck out the content, dump the iframe and replace a whole bunch of client HTML from a server call.

Once the HTML has been reloaded in the DOM after the RAD editor has done its business, we’re currently seeing what looks like a massive flashing cursor on the screen (a huge black rectangle). It blinks on and off, uses up maybe 75% of the screen (vertically) and reverses all the colours behind it (white becomes black, black becomes white etc)!

I know this is a bit of a random one, but .. any ideas? Has anyone seen anything similar?

Matt
Top achievements
Rank 1
 answered on 23 Aug 2013
1 answer
256 views

Is it somehow possible to make a orderby with more then one attribute ? I dont want to to something in the code behind if this is possible I would like to do it in the EntityDataSource

What I have tried :

<asp:EntityDataSource ID="dsDossier" runat="server" ConnectionString="name=zevtestEntities" Include="BU,LBU,ZevUser" DefaultContainerName="zevtestEntities" EnableFlattening="False" EntitySetName="Dossier" OrderBy="it.BU.Code  , it.LBU.Code DESC "></asp:EntityDataSource>

But somehow this is not working why so ever

Thanks for help and fast answer

Antonio Stoilkov
Telerik team
 answered on 23 Aug 2013
1 answer
102 views
Hi All,

I have placed RadAsyncUpload control inside EditTemplate. While editing control is showing. It is happening only when Ajax is enabled in RadAjaxManager. Is there any specific setting for Ajax? The same issue is also coming in RadGrid.
Eyup
Telerik team
 answered on 23 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?