Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 views
I converted an ASP.NET 3.5 web site into ASP.NET 4.0 and have run into some problems.  When I don't put <location path="Telerik.Web.UI.WebResource.axd"> in the web.config, the Membership Provider works and I get the Microsoft JScript runtime error: 'Telerik' is undefined error.  When I put <location path="Telerik.Web.UI.WebResource.axd"> in the web.config, the I don't get the Telerik error, but the Membership Provider no longer works. 
Hristo Valyavicharski
Telerik team
 answered on 05 Aug 2014
2 answers
95 views
http://demos.telerik.com/aspnet-ajax/listview/examples/itemdragdrop/defaultcs.aspx

i fallowed that demo, but... I dont want that "X" thing in corner i want whole box to be dragable. Is it possible ? If yes how? My code is like this one in example so I dont need to post it, i just want drag box without that "X"
Maria Ilieva
Telerik team
 answered on 05 Aug 2014
4 answers
175 views
Hello,

I have a TabStrip with a RadMultiPage that is loaded dynamically based on a table in my database.  This TabStrip can consist of three levels of tabs (parent, middle-child, and bottom-child).  

Here's the code that generates the tabs:
if (!IsPostBack)
{
    rtabstripTabs.DataFieldID = "tabID";
    rtabstripTabs.DataFieldParentID = "parentTabId";
    rtabstripTabs.DataTextField = "tabLabel";
    rtabstripTabs.DataValueField = "filePath";
    rtabstripTabs.DataSource = tabs;
    rtabstripTabs.DataBind();
}

Here's the HTML for the TabStrip:
<telerik:RadTabStrip ID="rtabstripTabs" runat="server" OnTabClick="rtabstripTabs_TabClick"
    MultiPageID="rmultipageUserContol" EnableEmbeddedSkins="False">
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="rmultipageUserContol" runat="server">
    <telerik:RadPageView runat="server" ID="rpageviewUserControl">
    </telerik:RadPageView>
</telerik:RadMultiPage>


The "filePath" is a link to user control pages that will be displayed when the user clicks on a tab.

I'm trying to figure out how to load the user control content in these two scenarios:
1- When the tab (page) first loads I want the content of its user control be displayed automatically.  Since the TabStrip is dynamically created the name and value of this tab could be different.

2- When the user clicks on subsequent tabs I want to display the content (user control page) of the first child tab (this could either be a child on the 2nd level or a child on the 3rd level.  The tab levels are also dynamic, and depends of the content of the table in the database).  I know how to display the content when the user clicks on a tab that has no children.

Any help will be very much appreciated.  I am a new Telerik user, and I have not been able to figure out how to do this on my own.  Thanks.
Hristo Valyavicharski
Telerik team
 answered on 05 Aug 2014
4 answers
110 views
hi all,
when the mouse is moved over the scheduler in week or monthview, it seems 2 rows are highlighted by default (see screenshot).
I would like to set this to another number of rows, in particular: one row.
Is this possible?
regards,
Johan
Plamen
Telerik team
 answered on 05 Aug 2014
1 answer
250 views
Im trying to filter Grid with Javascript

<telerik:radgrid ID="RadGrid1" runat="server" AutoGenerateColumns="True"  AllowSorting="True" ShowGroupPanel="True" GroupingEnabled="True" DataSourceID="SqlDataSource1"                 OnExcelMLWorkBookCreated="RadGrid1_ExcelMLWorkBookCreated" OnGroupsChanging="RadGrid1_OnGroupsChanging"                  AllowFilteringByColumn="true">
                <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                <ClientSettings ReorderColumnsOnClient="false" AllowDragToGroup="True" AllowColumnsReorder="false">
                    <Selecting AllowRowSelect="false"></Selecting>
                    <Resizing AllowRowResize="False" AllowColumnResize="False" EnableRealTimeResize="True"
                        ResizeGridOnColumnResize="False"></Resizing>
                </ClientSettings>
                <GroupingSettings ShowUnGroupButton="true"></GroupingSettings>
</telerik:radgrid>

Here is Javascript
var grid  = $find('ctl00_MainContent_RadGrid1');
var master = $find('ctl00_MainContent_RadGrid1').get_masterTableView();
master.filter("Type", 'SWITCHED', "EqualTo");
master.filter("Resource", 'POWER', "EqualTo");

Only the second filter applies but not first.

Please suggest  how to apply both, and it would be better suggest n filters
Viktor Tachev
Telerik team
 answered on 05 Aug 2014
9 answers
316 views

I have a RadAjaxLoadingPanel specified as follows in my master page:
<telerik:RadAjaxLoadingPanel id="RadAjaxLoadingPanel1" Runat="server" IsSticky="true" skin="Silk" InitialDelayTime="250" Style="position: absolute; top: 0; left: 0; height: 100%; width: 100%;">             
     </telerik:RadAjaxLoadingPanel>

my understanding is that this code will center the panel on the screen. However, it appears it instead centers it in the context of the entire document. That is, if the page is two screens long, the panel will appear cut in half at the bottom of the screen. Is there a solution to make this work as expected?

Princy
Top achievements
Rank 2
 answered on 05 Aug 2014
1 answer
393 views
how to download files to a specified client folder from server without showing open/save promptin asp.net application?




if (e.CommandName == "download_file")        {            string filename=e.CommandArgument.ToString();            string path=MapPath("~/files/" + filename);            byte []bts=System.IO.File.ReadAllBytes(path);            Response.Clear();            Response.ClearHeaders();            Response.AddHeader("Content-Type", "Application/octet-stream");            Response.AddHeader("Content-Length",bts.Length.ToString());            Response.AddHeader("Content-Disposition","attachment; filename=" + filename);            Response.BinaryWrite(bts);            Response.Flush();            Response.End();        }




Angel Petrov
Telerik team
 answered on 05 Aug 2014
1 answer
454 views
I want to get the current edit mode(Html,Design) of a rad Editor control as an alert ,on button click control.And i want to set rad-editor control same mode even after the post back on button click.

i.e if the mode of a rad-editor control is (HTML),i want the rad-editor to be in same mode (HTML)even after  post-back (buttonclick)

Thanks
Sandeep 
Shinu
Top achievements
Rank 2
 answered on 05 Aug 2014
9 answers
454 views

Hello!  I’ve been using the RadAsyncUpload control and it’s been working great.  Provided is an image of what my screen looks like.  As you can see, I’m using RadAsyncUpload’s ruBrowse button to both upload the files clientside and then force a postback in order to upload the images to the database serverside (one button does all).

However, circled are other controls I’m using on my site.  The problem is that when the client clicks “Upload Pictures,” and the files get uploaded clientside (as you can see with the green dots), it takes a little time to insert them into the database (serverside).  Currently, without the implementation of a wait cursor, the client is able to click any of the other controls on the page:

       -  (RadTabStrip)  Click the Entry Content tab which stops the uploading from happening.

       -  (Asp Buttons)  Click Save/Cancel, which leaves the client in a bad state.

       -  (RadAsyncUpload)  Click the “Upload Pictures” button again to upload more pictures.

I was wondering if there was any way to be able to disable other controls while the uploading is still happening?

Princy
Top achievements
Rank 2
 answered on 05 Aug 2014
1 answer
379 views
I am using a RadGrid with a DataSourceID that of a stored procedure.  When the stored procedure returns no rows, the grid is not showing up with the no records text and no headers.  However, when I removed the configuration DataSourceID="SqlDataSource10", the headers and no records text shows up as expected. I can't seem to get this to work so any help would be appreciated.

<telerik:RadGrid ID="rgExternalSensors" HeaderStyle-BorderStyle="None" HeaderStyle-BackColor="WhiteSmoke"
    GridLines="None" DataSourceID="SqlDataSource10" AllowSorting="False" OnItemCreated="rgExternalSensors_ItemCreated"
    OnItemDataBound="rgExternalSensors_ItemDataBound" PageSize="5" AllowPaging="True" AutoGenerateColumns="False" runat="server"
    OnDeleteCommand="rgExternalSensors_DeleteCommand" OnInsertCommand="rgExternalSensors_InsertCommand"
    OnUpdateCommand="rgExternalSensors_UpdateCommand">                           
    <PagerStyle Mode="NextPrevAndNumeric" PageSizeControlType="None"></PagerStyle>
    <MasterTableView Width="100%" EditMode="InPlace" CommandItemDisplay="Top" AutoGenerateColumns="false"
        InsertItemDisplay="Bottom" InsertItemPageIndexAction="ShowItemOnLastPage">
        <Columns>
            <telerik:GridEditCommandColumn>
            </telerik:GridEditCommandColumn>
           <%-- <telerik:GridBoundColumn DataField="sensor_type_desc" UniqueName="SensorType" HeaderText="Type">
            </telerik:GridBoundColumn>--%>
            <telerik:GridDropDownColumn DataField="sensor_type_desc" UniqueName="ddlSensorType"
                DataSourceID="SqlDataSource11" ListTextField="sensor_type_desc" ListValueField="sensor_type_serial_num" HeaderText="Type">                                   
            </telerik:GridDropDownColumn>
            <telerik:GridBoundColumn DataField="sensor_make_and_model" UniqueName="SensorMake" HeaderText="Make and Model"
                MaxLength="50">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="sensor_serial_num" UniqueName="SensorSerial"
                HeaderText="Serial Number" MaxLength="50">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="sensor_location" UniqueName="SensorLoc" HeaderText="Location"
                MaxLength="50">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="external_sensors_serial_num" UniqueName="SerialNum" HeaderText="SerialNum" Display="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="sensor_type_serial_num" UniqueName="TypeSerialNum" HeaderText="TypeSerialNum" Display="false">
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
            </telerik:GridButtonColumn>
        </Columns>
        <CommandItemSettings AddNewRecordText="Add New" RefreshText="Refresh"></CommandItemSettings>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
    </ClientSettings>
</telerik:RadGrid>
Mark
Top achievements
Rank 1
 answered on 04 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?