Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
70 views
Hi,

I'm trying to use the rotator in a few sites but the one common feedback I get back is that the users do not like how the scrolling with the mouse wheel sticks and stops their ability to continue scrolling down the page.

I know that the mouse wheel is trying to scroll through images, but I couldn't find anything that would simply stop the sticking.  I don't need the mouse wheel scrolling the images, I would like the mouse wheel to operate as normal and continue scrolling down the page.

You can see an example here: http://www.entertheworshipcircle.com

Your feedback would be appreciated!

Thanks,
Chris
Slav
Telerik team
 answered on 20 Jan 2012
2 answers
102 views
Hello 

    I want my scheduler to appear similar to the image attached.  (i.e Room ID's in top)

How should I implement it ?



Abhishek           

     
Abhsiehek
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
181 views
Hi,

I have Telerik grid control where the columns and rows are added in the code behind.

Everything works great - except the sorting.  I need to have currency fields sort by currency/number fields sort properly instead of using string sort.  

Any idea the best way to go about this is for the approach below is?

Thanks,
Chris

DataTable dt = new DataTable();
 
dt.Columns.Add("Column1");
dt.Columns.Add("Cost");
 
string[] info = new string[2];
info[0] = "Row1_cell1";
info[1] = "23.00";
 
Session["DataTable"] = dt;
RadGrid1.DataSource = dt;
RadGrid1.DataBind();
Shinu
Top achievements
Rank 2
 answered on 20 Jan 2012
5 answers
112 views
Hello

I have a slider where i can select a number from 0-5. If I disable one of these items it is still possible to select it. Even If I set the element to visible=false it is still selecteble just that the layout get mixed upp.

I just want it grayed out and non selecteble. If I try to select it or drag it to that number it will just go back to its previous position.
Is this possible?
Slav
Telerik team
 answered on 20 Jan 2012
15 answers
283 views
  • CASE SCENARIO : 
I have a rad panel bar as you can see it in the code below,a MultiPage and 2 usercontrols..

  • WHAT I WANT:
  1. Whenever we click on any item in the panel , new pageview gets created from code-behind , the ID of pageview is same as value of item getting clicked, the pageview dynamically loads an usercontrol (refer C# code) 
  2. The Panel clicking also fires a javascript event in which if the pageview is already loaded it simply displays that pageview without any server-side event or postback occuring(refer javascript code)
WHAT IS THE PROBLEM IN MY CODE? WHY AIN'T IT WORKING THE WAY IT IS EXPECTED TO ? Thanks

ASPX CODE:
<telerik:RadPanelBar  style="margin-left:8px;" ID="RadPanelBar1" Runat="server" Skin="Office2007"
    Width="210px" onitemclick="RadPanelBar1_ItemClick" OnClientItemClicked="onitemclick">
    <Items>
        <telerik:RadPanelItem runat="server"
            Owner="RadPanelBar1" Text="Speak & Listen.." Expanded="True">
            <Items>
                <telerik:RadPanelItem runat="server" Owner=""
                    Selected="True" Text="Friends News Feed" Value="nfeed">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server"
                     Owner=""
                    Text="Following Public Profiles" Value="try">
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
</telerik:RadPanelBar>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" OnPageViewCreated="RadMultiPage1_PageViewCreated">
   </telerik:RadMultiPage>
C# CODE
protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
   {
          
   }
   protected void RadPanelBar1_ItemClick(object sender, RadPanelBarEventArgs e)
   {
         
           RadPageView pager = new RadPageView();
           pager.ID = e.Item.Value.ToString();
           Control userControl = Page.LoadControl("Newsfeed/" + e.Item.Value.ToString() + ".ascx");
           userControl.ID = e.Item.Value.ToString() + "usercontrol";
           pager.Selected = true;
           pager.Controls.Add(userControl);
           RadMultiPage1.Controls.Add(pager);
   
          
   }

JAVASCRIPT CODE
function onitemclick(sender, args) {
             var multiPage = $find("<%=RadMultiPage1.ClientID%>");
             var item = args.get_item();
             var itemt = item.get_value();
             if (multiPage.get_pageViews().get_count() > 2) {
                 for (var i = 0; i < multiPage.get_pageViews().get_count(); i++) {
                     if (multiPage.get_pageViews().getPageView(i).get_id() == itemt) {
 
                         var pageView = multiPage.findPageViewByID(itemit);
                         pageView.set_Selceted(true);
                         pageView.show();
                         item.set_postBack(false);
                     }
                 }
             }
             
         }
dotnetrockerzzz
Top achievements
Rank 2
 answered on 20 Jan 2012
1 answer
110 views
Hello,

I have a radgrid for which scrolling occurs when the item count is beyond 15.

The grid has been availed with the feature to drag and drop  the items with in the grid.

Now when the scrolling occurs, I feel uneasy to drop the rows at the position where it needs scrolling.

Can auto-scrolling be achieved while drag and drop of rows in the radgrid?

If so, please help me for doing the same.


Thanks in advance!

Prasad.
Shinu
Top achievements
Rank 2
 answered on 20 Jan 2012
3 answers
195 views
How do I add hours to the current time on the RadTimePicker control?

Currently my 'End' RadTimePicker automatically defaults to the 'Start' time RadTimePicker when the user selects the Start time. My desired output is for the End RadTimePicker to automatically default the the Start time RadTimePicker, plus one hour, when the user selects the Start time.

Thanks for any help :)
Vasil
Telerik team
 answered on 20 Jan 2012
2 answers
54 views
Hi,

Currently am working on the GridAttachment Column ,I placed the Rad Grid inside the Update Panel, On the Item Command event am d,i have written the download attachment code.But after clicking on Attachment item link in the Rad Grid amd getting Javascript Parser exception.

Please cgo thtough the below code,suggest me if am doing wrong

Aspx

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

 

</asp:ScriptManager>

 

 


<

 

 

asp:UpdatePanel ID="upd" runat="server">

 

 

 

 

<ContentTemplate>

 


<

 

 

telerik:RadGrid ID="RadGrid2" AllowPaging="True"

 

 

 

ShowFooter="true" runat="server" AutoGenerateColumns="False" AllowSorting="True"

 

 

 

PageSize="3" GridLines="None" OnItemCommand="RadGrid2_ItemCommand" CellPadding="0" AllowAutomaticInserts="true"

 

 

 

AllowAutomaticUpdates="true">

 

 

 

<ClientSettings AllowRowsDragDrop="true"></ClientSettings>

 

 

 

<MasterTableView DataKeyNames="Id" AutoGenerateColumns="false" CommandItemDisplay="Top">

 

 

 

 

<Columns>

 

 

 

 

<telerik:GridAttachmentColumn DataSourceID="Id"

 

 

 

MaxFileSize="1048576"

 

 

 

EditFormHeaderTextFormat="Upload File:"

 

 

 

HeaderText="Download"

 

 

 

AttachmentDataField="BinaryData"

 

 

 

AttachmentKeyFields="Id"

 

 

 

FileNameTextField="AttachmentFile"

 

 

 

DataTextField="AttachmentFile"

 

 

 

UniqueName="AttachmentFile">

 

 

 

</telerik:GridAttachmentColumn >

 

 

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

 

</telerik:RadGrid>

 

 

 

</ContentTemplate>

 

 

 

</asp:UpdatePanel>

 


CS

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

 

if (!IsPostBack)

 

{

 

RadGrid2.DataSource =

 

TestData.GetEmployeeData();

 

RadGrid2.DataBind();

}

}


 

 

protected void RadGrid2_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

 

//upd.Update();

 

 

 

if (e.CommandName == "DownloadAttachment")

 

{

 

 

LinkButton btn = e.CommandSource as LinkButton;

 

 

 

 

 

string fileName1 = "images\\about.png";

 

 

 

/*

 

For testing purpose we took only a test image

* you can look at the e.CommandSource to know which row was clicked by

* checking the linkbutton.Text property(LinkButton btn = e.CommandSource as LinkButton;)

*/

 

 

FileInfo file = new FileInfo(Server.MapPath(fileName1));

 

 

 

NameValueCollection imageExtensions = new NameValueCollection();

 

imageExtensions.Add(

 

".jpg", "image/jpeg");

 

imageExtensions.Add(

 

".gif", "image/gif");

 

imageExtensions.Add(

 

".png", "image/png");

 

 

 

MemoryStream ms = new MemoryStream();

 

 

 

 

if (imageExtensions.AllKeys.Contains(file.Extension))

 

{

Response.Clear();

Response.ContentType = imageExtensions.Get(file.Extension);

Response.AppendHeader(

 

"Content-Disposition", "attachment; filename=" + file.Name);

 

Response.TransmitFile(file.FullName);

Response.End();

}

}

}

Sreekanth
Top achievements
Rank 1
 answered on 20 Jan 2012
5 answers
387 views
I have a radtreeview inside radpageview to give outlook style. The problem is, when there are lots of items inside the radtreeview, the user looses focus navigating down, as there are not scrollbars visible for the treeview. The only scrollbars visible is for the radpageview so it is not able to understand which node item to set focus to.

Code for RadTreeView is :

This radTreeView is placed inside

<telerik:RadSplitter runat="server" Height="100%" Width="100%" Orientation="Horizontal">
        <telerik:RadPane runat="server" Scrolling="X" Width="100%" >
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" BackColor="White">
                <telerik:RadPageView ID="RadPageView1" runat="server" Style="border-style: none;">
                    <telerik:RadTreeView Width="100%"
    PersistLoadOnDemandNodes="false" ClientIDMode="Static" EnableViewState="false"
    ID="archiveTree" runat="server" OnClientNodeClicked="NodeClick" AccessKey="T"
    TabIndex="1" EnableEmbeddedSkins="false" Skin="Default">
    <WebServiceSettings Path="~/Test.svc" Method="GetNodesData" />
</telerik:RadTreeView> 
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </telerik:RadPane>
        <telerik:RadSplitBar runat="server" CollapseMode="Backward" EnableResize="false" ID="navigationPaneSplitBar">
        </telerik:RadSplitBar>
        <telerik:RadPane ID="RadPane1" runat="server" Height="125px" Scrolling="None">
            <telerik:RadPanelBar OnClientItemClicking="OnClientItemClicking"
                ID="NavigationItems" runat="server" ExpandMode="FullExpandedItem" Visible="true"
                AccessKey="N" Height="100%" Width="100%" EnableEmbeddedSkins="false" Skin="Default" TabIndex="2">
            </telerik:RadPanelBar>
        </telerik:RadPane>
    </telerik:RadSplitter>

Is there any way to allow navigaiting of items inside radtreeview without loosing focus of that item ?
mirang
Top achievements
Rank 1
 answered on 20 Jan 2012
2 answers
98 views
hi i have WebBlue RadGrid Control, everything is ok but whem viewing it in mozilla firefox there is a little space at the rgHeader at left, i've tried to style it in CSS using this snippet:

.RadGrid_WebBlue .rgHeader:first-child
{
    border-left-width: 1px;
}

but my style wasn't set and overrided by this CSS Style:
border-left-width: 0;

can any one help me please ?
Rasheed
Top achievements
Rank 1
 answered on 20 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?