Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
142 views
Hi,
    Recently I have implement RadScheduler in Desktop and its working fine but then when I try it in IPAD, I am facing a problem.

In Monthly view if I click on Timeslot I get redirected to DayView in IPAD[bug] but in Desktop, it stay in same View [working fine]. I even set  RenderMode="Classic" for Scheduler but its not working. 
. I have dynamically added a button in month view and on click I show a tooltip but due to 'Getting redirected to DayView' this functionality isn't working in IPAD. I even used stopPropogation, return false, cancel bubble etc on this button but no idea why its getting redirected to DayView.
. In addition I have set Allow EDIT, INSERT, DELETE to false, so I have my own popup.
. I click on context menu in MonthView and nothing happens? but in day view its working but sometime it doesn't.

Thanking you
Lakpa Sherpa
Vince
Top achievements
Rank 1
 answered on 29 Jul 2014
1 answer
138 views
Hi.

The dropdown of the RadComboBox open in the wrong place when the page is large and scrolled, according to the attached image.

I'm using IE9.

Ediclei
Top achievements
Rank 1
 answered on 29 Jul 2014
4 answers
107 views
Greetings,

I have several RadButtons in my application that are opening a RadWindow from the code-behind.  If I click on the embedded icon (Icon-PrimaryIconCssClass="rbEdit"), nothing happens.  If I click on the text, then it does a postback and opens the window.  This does not happen on any other buttons, only the ones that are opening a RadWindow.  Here is an example where btnEditUser in the GridTemplateColumn will only post back if you click the word "Edit".  It does not post back if you click the rbEdit icon.

<telerik:RadGrid ID="grdUsers" runat="server" AllowPaging="True" AllowSorting="True"
                  AutoGenerateColumns="False" CellSpacing="0" GridLines="None" ShowGroupPanel="True"
                  DataSourceID="objUsers" OnItemDataBound="grdUsers_ItemDataBound">
  <ClientSettings AllowDragToGroup="True">
  </ClientSettings>
  <ExportSettings ExportOnlyData="true" HideStructureColumns="true" IgnorePaging="true"
                  OpenInNewWindow="true" SuppressColumnDataFormatStrings="true">
  </ExportSettings>
  <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="UserID" DataSourceID="objUsers">
    <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToCsvButton="true" />
    <HeaderStyle Font-Bold="true" HorizontalAlign="Left" />
    <PagerStyle PageSizes="10,25,50,100,250" AlwaysVisible="true" />
    <Columns>
      <telerik:GridBoundColumn DataField="UserName" FilterControlAltText="Filter Name column"
                                HeaderText="Name" SortExpression="UserName" UniqueName="UserName">
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="UserLogin" FilterControlAltText="Filter Login column"
                                HeaderText="Login" SortExpression="UserLogin" UniqueName="UserLogin">
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="UserEmail" FilterControlAltText="Filter Email column"
                                HeaderText="Email" SortExpression="UserEmail" UniqueName="UserEmail">
      </telerik:GridBoundColumn>
      <telerik:GridTemplateColumn FilterControlAltText="Filter Phone column" HeaderText="Phone"
                                  SortExpression="UserPhone" UniqueName="UserPhone">
        <ItemTemplate>
          <asp:Label ID="lblUserPhone" runat="server" Text='<%# FormatPhone(Eval("UserPhone").ToString()) %>'>></asp:Label>
        </ItemTemplate>
      </telerik:GridTemplateColumn>
      <telerik:GridCheckBoxColumn DataField="UserActive" DataType="System.Boolean" FilterControlAltText="Filter Active column"
                                  HeaderText="Active" SortExpression="UserActive" UniqueName="UserActive" ItemStyle-HorizontalAlign="Center">
      </telerik:GridCheckBoxColumn>
      <telerik:GridTemplateColumn Groupable="false" AllowFiltering="false" ShowSortIcon="false"
                                  ItemStyle-HorizontalAlign="Center">
        <ItemTemplate>
          <telerik:RadButton ID="btnEditUser" runat="server" Font-Bold="True" Icon-PrimaryIconCssClass="rbEdit"
                              CommandArgument='<%# Eval("UserID") %>' Text="Edit" OnCommand="btnEditUser_Command">
          </telerik:RadButton>
        </ItemTemplate>
      </telerik:GridTemplateColumn>
    </Columns>
  </MasterTableView>
</telerik:RadGrid>

Code-Behind...

protected void btnEditUser_Command(object sender, CommandEventArgs e)
{
  string userID = e.CommandArgument.ToString();
  RadWindow newWindow = new RadWindow();
  newWindow.OnClientClose = "RefreshUsers";
  newWindow.VisibleOnPageLoad = true;
  newWindow.KeepInScreenBounds = true;
  newWindow.Height = Unit.Parse("790");
  newWindow.Width = Unit.Parse("750");
  newWindow.NavigateUrl = "~/UserWindow.aspx?userid=" +
                          userID;
  wndDetailsMgr.Windows.Add(newWindow);
}

Any ideas how to fix this?  Your help is appreciated.

Matt
Matt
Top achievements
Rank 1
 answered on 29 Jul 2014
3 answers
622 views
Hi,
I am using VS 2013, Telerik.Web.UI Version 2014.2.618.45, developing a website using UI for ASP.Net AJAX telerik Q2 2014 controls. 
I have radgrid and binding columns to radgrid. 

Now, the problem is while binding and retrieving value of column containing special characters. 
Lets say one of the column has value as "Test &nbsp; test <br /> test ' test " test <asp:Label  Test \n test \\n test". 
I made this value to test. I want to display this in grid and also, I need to fetch this in two events, ItemDataBound and ItemCommand.
I tried various methods like HTMLEncoding, replacing characters and also tried putting label control inside ItemTemplate but could not retrieve value as it is.

So what I am looking for is, 
To display and retrieve data value "Test &nbsp; test <br /> test ' test " test <asp:Label  Test \n test \\n test" and "Test line 1 \r\n test line 2 \r\n" which is stored using multiline textbox. 
1. Is it possible to handle both scenario together? like handle straight string and also handle multiline textbox value to display and retrieve as entered. 
2. How to display above value in grid perfectly as it is? Consider both the cases, first, its string as it is and second, possible that its stored using multiline textbox
3. How to display above value in telerik:GridBoundColumn and in <asp:Label control inside <telerik:GridTemplateColumn? 
4. How to retrieve above value from grid as it is, in ItemDataBound and ItemCommand events?

Thanks in advance, 

















Konstantin Dikov
Telerik team
 answered on 29 Jul 2014
2 answers
51 views
Hi,

I've been experimenting, trying to find a way to fix the jaggies that appear around each RadTab when using a non-default background colour.  In fact, I have specified no background colour for my RadTabStrip, so the background falls back to my page colour.  The jaggies I'm talking about can be seen in this screenshot:

https://www.dropbox.com/s/u6no6icd9ylib6s/TabStripJaggies.png

I've tried changing the background of the RadTabStrip itself via BackColor="xyz" and Style="background-color:xyz".  Both of those do work to change the background colour, but they don't ameliorate the jagged rendering around the rounded corners of the individual tabs.  It affects only the div container of the RadTabStrip itself.

Thank you in advance for your help,
~Jeff
Jeff
Top achievements
Rank 1
 answered on 29 Jul 2014
1 answer
237 views
Hello,
we are making a Web app with RadScheduler both for desktop and mobile devices. The problem is that we can not handle mobile events (like OnTapping, OnLongTouch) for showing, saving, deleting and inserting appointments like at this sample

http://demos.telerik.com/responsive-web-design-aspnet/samples/adaptive/scheduler.aspx?utm_source=AJAX+Demos&utm_medium=QRcode&utm_campaign=Ajax_responsive_demo_qrcode.

Could you please provide some information or hyperlinks with code samples handling these events?
Thank you.
Dimitar
Telerik team
 answered on 29 Jul 2014
5 answers
165 views
Hello community!

I am having issues in getting my RadListView to bind data from a selection in a RadGrid. I have debugged my solution and the get data process is working but the RadListView is not displaying the data. I have examined all relevant demos and searched the web for examples to no avail. Any directional support would be awesome! Here is my code.

My RadGrid
<telerik:RadGrid ID="stGrid" runat="server" GridLines="None" Skin="VLDSkin" EnableEmbeddedSkins="false"
AllowPaging="True" PageSize="15" AllowSorting="True" AutoGenerateColumns="False" OnItemCommand="stGrid_ItemCommand"
ShowFooter="false" ShowStatusBar="false" OnNeedDataSource="stGrid_NeedDataSource" OnSelectedIndexChanged="stGrid_SelectedIndexChanged">
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
<MasterTableView CommandItemDisplay="Top" DataKeyNames="StudentID" ClientDataKeyNames="StudentID">
<Columns>
<telerik:GridButtonColumn CommandName="Select" Text="Select" UniqueName="SelectColumn" />
<telerik:GridBoundColumn UniqueName="FirstName" HeaderText="FIRST NAME" DataField="FirstName" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="MiddleInitial" HeaderText="MID NAME" DataField="MiddleInitial" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="LastName" HeaderText="LAST NAME" DataField="LastName" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Address1" HeaderText="ADDRESS" DataField="Address1" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Address2" HeaderText="SUITE/APT" DataField="Address2" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="City" HeaderText="CITY" DataField="City" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="State" HeaderText="STATE" DataField="State" ItemStyle-Wrap="False" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="PostalCode" HeaderText="ZIP" DataField="PostalCode" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="PHONE" ItemStyle-Wrap="False">
<ItemTemplate>
<asp:Literal ID="PhoneLit" runat="server" Text='<%# string.Format("{0:(###) ###-####}", Int64.Parse(Eval("Phone").ToString())) %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn UniqueName="IdentForm" HeaderText="IDENTITY" DataField="IdentForm" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="IDNumber" HeaderText="NUMBER" DataField="IDNumber" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ExpirationDate" HeaderText="EXP DATE" DataField="ExpirationDate" DataFormatString="{0:d}" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="CourseType" HeaderText="COURSE" DataField="CourseType" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Delivery" HeaderText="DELIVERY" DataField="Delivery" ItemStyle-Wrap="False" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="CreditCardType" HeaderText="CARD TYPE" DataField="CreditCardType" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="CreditCardNumber" HeaderText="NUMBER" DataField="CreditCardNumber" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ExpirationMonth" HeaderText="EXP MO" DataField="ExpirationMonth" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ExpirationYear" HeaderText="EXP YR" DataField="ExpirationYear" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="SecurityCode" HeaderText="CVV" DataField="SecurityCode" ItemStyle-Wrap="False" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Email" HeaderText="EMAIL" DataField="Email" ItemStyle-Wrap="False">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
<Selecting AllowRowSelect="True"></Selecting>
</ClientSettings>
</telerik:RadGrid>

My RadListView
<telerik:RadListView ID="statRLV" runat="server" Skin="VLDSkin" EnableEmbeddedSkins="false" DataKeyNames="ID">
<ItemTemplate>
<asp:Table runat="server" Width="100%" CellSpacing="0">
<asp:TableRow>
<asp:TableCell>
<%# Eval("ID") %>
</asp:TableCell>
<asp:TableCell>
<%# Eval("ClientID") %>
</asp:TableCell>
<asp:TableCell>
<%# Eval("LoginStatus") %>
</asp:TableCell>
<asp:TableCell>
<%# Eval("IPAddress") %>
</asp:TableCell>
<asp:TableCell>
<%# Eval("dts") %>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</ItemTemplate>
</telerik:RadListView>

CodeBehind
protected void stGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
int _FID = Convert.ToInt32(Session["_FID"]);
StandardClass SC = new StandardClass();
{
if (!SC._IsError)
{
stGrid.DataSource = SC.ReturnStudentClients(_FID);
}
}
}

protected void stGrid_ItemCommand(object source, GridCommandEventArgs e)
{

if (e.CommandName == RadGrid.SelectCommandName)
{
statRLV.SelectedIndexes.Clear();

int _SID = Convert.ToInt32((e.Item as GridDataItem).GetDataKeyValue("StudentID").ToString());
Session["_SID"] = _SID;

StandardClass SC = new StandardClass();
if (!SC._IsError)
{
stRcb.DataSource = SC.ReturnStates();
stRcb.DataTextField = "name";
stRcb.DataValueField = "name";
stRcb.DataBind();

SC.ReturnStudent(_SID);
{
studentIDLbl.Text = Convert.ToString(SC._StudentID);
fnTxBx.Text = SC._FirstName;
miTxBx.Text = SC._MiddleInitial;
lnTxBx.Text = SC._LastName;
ad1TxBx.Text = SC._Address1;
ad2TxBx.Text = SC._Address2;
ciTxBx.Text = SC._City;
coTxBx.Text = SC._County;
stRcb.SelectedValue = SC._State;
pcTxBx.Text = SC._PostalCode;
cuTxBx.Text = SC._Country;
phTxBx.Text = SC._Phone;
foiTxBx.Text = SC._IdentForm;
idnTxBx.Text = SC._IDNumber;
dateTxBx.Text = Convert.ToString(SC._ExpirationDate);
tocTxBx.Text = SC._CourseType;
dmTxBx.Text = SC._Delivery;
toccTxBx.Text = SC._CreditCardType;
ccnTxBx.Text = SC._CreditCardNumber;
exmTxBx.Text = SC._ExpirationMonth;
exyTxBx.Text = SC._ExpirationYear;
scTxBx.Text = SC._SecurityCode;
}

statRLVGetData(_SID);

}

editPnl.Visible = true;
gridPnl.Visible = false;
}
}

protected void statRLVGetData(int _SID)
{
StandardClass SC = new StandardClass();
{
if (!SC._IsError)
{
statRLV.DataSource = SC.ReturnUserLoginStatus(_SID);
}
}
}

protected void stGrid_SelectedIndexChanged(object sender, System.EventArgs e)
{
int _SID = Convert.ToInt32((stGrid.SelectedItems[0] as GridDataItem).GetDataKeyValue("StudentID").ToString());

}



Konstantin Dikov
Telerik team
 answered on 29 Jul 2014
2 answers
142 views
Hi,
I am using VS 2013, Telerik.Web.UI Version 2014.2.618.45, developing a website using UI for ASP.Net AJAX telerik Q2 2014 controls. 
I have radgrid and binding columns to radgrid. 

Now, the problem is while binding and retrieving value of column containing special characters. 
Lets say one of the column has value as "Test &nbsp; test <br /> test ' test " test <asp:Label  Test \n test \\n test". 
I made this value to test. I want to display this in grid and also, I need to fetch this in two events, ItemDataBound and ItemCommand.
I tried various methods like HTMLEncoding, replacing characters and also tried putting label control inside ItemTemplate but could not retrieve value as it is.

So what I am looking for is, 
To display and retrieve data value "Test &nbsp; test <br /> test ' test " test <asp:Label  Test \n test \\n test" and "Test line 1 \r\n test line 2 \r\n" which is stored using multiline textbox. 
1. Is it possible to handle both scenario together? like handle straight string and also handle multiline textbox value to display and retrieve as entered. 
2. How to display above value in grid perfectly as it is? Consider both the cases, first, its string as it is and second, possible that its stored using multiline textbox
3. How to display above value in telerik:GridBoundColumn and in <asp:Label control inside <telerik:GridTemplateColumn? 
4. How to retrieve above value from grid as it is, in ItemDataBound and ItemCommand events?

Thanks in advance, 
















Nirav
Top achievements
Rank 1
 answered on 29 Jul 2014
2 answers
240 views
Is there any way to access a column using its index? I have a radgrid with AutoGenerated columns so I have no idea what the column name is but I can access the index.

Basically, I want to get the header of the column that's being updated. I could do this if i could use index but I don't see that as an option. 
Kate
Top achievements
Rank 1
 answered on 29 Jul 2014
3 answers
186 views
I tried to implement the RadToolbar by following the documentation http://www.telerik.com/help/aspnet-ajax/toolbar-appearance-css-file.html. However, it seems the dropdown toolbar is not working. Could anyone help make it work? I've spent four days on this file, but am still not able to make it work.

thanks

<html>
<head>
<title>Toolbar dropdown test</title>
 
<style type"text/css" media="screen">
    .RadToolBar_Green_Horizontal{ background: #90cc90;}
</style>
 
 
<link href="https://d35islomi5rx1v.cloudfront.net/ajaxz/2011.1.315/ToolBar.css" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />
<link href="https://d35islomi5rx1v.cloudfront.net/ajaxz/2011.1.315/Office2007/ToolBar.Office2007.css" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />
 
 
</head>
 
<body  leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" bgcolor=white>
 
<div id="RadToolBar1" class="RadToolBar RadToolBar_Horizontal RadToolBar_Green RadToolBar_Green_Horizontal "
    style="z-index: 90000;">
    <!-- content of toolbar -->
        <div class="rtbOuter">
            <div class="rtbMiddle">
                <div class="rtbInner">
                    <!-- Tool bar content goes here -->
                    <ul class="rtbUL">
                         
                        <li class="rtbItem rtbSplBtn">
                            <!-- Content of RadToolBarSplitButton goes here -->
                            <a class="rtbWrap" href="#">
                                <span class="rtbOut">
                                    <span class="rtbMid">
                                        <span class="rtbIn">
                                        <!-- button content goes here -->
                                            Dropdown here
                                            <div class="rtbSlide" style="display: none;">
                                                <div class="RadToolBarDropDown rtbDropDownExpanded RadToolBarDropDown_Green">
                                                    <ul class="rtbActive rtbGroup">
                                                        <li class="rtbItem">
                                                            <a href="#" class="rtbWrap">
                                                                <img alt="" src="Images/First.gif" class="rtbIcon" />
                                                                <span class="rtbText">First</span>
                                                             </a>
                                                        </li>
                                                        <li class="rtbItem">
                                                             <a href="#" class="rtbWrap">
                                                                <img alt="" src="Images/Last.gif" class="rtbIcon" />
                                                                <span class="rtbText">Last</span>
                                                             </a>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </span>
                                    </span>
                                </span>
                            </a>
 
                        </li>
                    </ul>
                </div>
            </div>
        </div>
     
</div>
 
 
</body>
</html>
Shinu
Top achievements
Rank 2
 answered on 29 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?