Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
Hi All

I hope you are all doing well. I have a quick question related to Telerik Scheduler/ resources  control. I have a situation in web application, say I have a
project Task which my application user I would like assign it to Project Manager. This project task has start
and end date. But before assigning the task I would like to give my user a capability
to see what other task the current Project Manager has been working on during that period
by using Scheduler/ resource availability .So user has combo box with all the
Project Manager option and a button to see the scheduler/ resources availability using pop-up.
On top of that I would like to give him opportunity to see if any other Project Managera has free time slot during that period.
So in short I would like my user to give ability to see current assgnment of my selected Project manager or I can choose anyone from the combobox and it will display all the current assignment the slected project manager working on.

I will appreciate your help and look forward to hear from
you soon.

Many thanks

Syed
Plamen
Telerik team
 answered on 24 Feb 2014
1 answer
44 views
Hello Forum,

We have been using Rad Asycn Upload to upload the files to the server. The control is working with Chrome and FireFox and IE10. But as we switch to IE9 or Lower versions of Internet Explorer, the control no longer works. Please find the web site project created in reference to the problem that we are facing at our end. The website is also having "Telerik.Web.UI.dll" in the Library folder of the web application attached. Also the screen snaps have been attached with the problem when the file is uploaded to the server on IE9 or IE8. Can anyone please help or guide me through the issue?



Thanks
Bas
Hristo Valyavicharski
Telerik team
 answered on 24 Feb 2014
6 answers
605 views
I have a user whose permissions have recently changed on our SharePoint site collection.  She's editing a page using the Telerik RAD Editor Lite.  I have the Tools.xml file set to show the MOSSLinkManager button.  When she tries to add a new link, she clicks on the link manager icon on the toolbar and it works fine.  If she then clicks the "Browse" button next to the URL textbox, she gets a new popup window with just "403 Forbidden" in it. The same thing happens if she tries to edit an existing link - click the link button and it shows the curent URL in the textbox.  Click the "Browse" button and she gets a popup window with 403 Forbidden.

Can anyone thing why this might be or what causes this?  I have noticed that when you click the browse button, by default it tries to browse a URL that you last browsed to.  So possibly because this user's access permissions have changed, the popup window is trying to browse to a document library to which she no longer has access.  I don;t know how to reset that default location?  Could there be another cause of the problem?

It's only happening to this one user - could it be something on her PC?
Jon
Top achievements
Rank 1
 answered on 24 Feb 2014
1 answer
145 views
 I am trying to add a listview inside another listview itemtemplate. parent listview has openaccesslinqdatasource. inner listview has onneeddatasource. But i cant access any control custom attribute or parent GetDataKeyValue . There is old post here about it but no result avery time give me null. Thank you.
 basic structure.

***************---------------***************
<telerik:RadAjaxPanel ID="apCevapList" runat="server"
                                     ViewStateMode="Enabled"
                                     EnableViewState="true">

          <telerik:RadListView ID="lvParent" runat="server"
                                      DataKeyNames="CId"
                                      DataSourceID="OADLSParent"
                                      ViewStateMode="Enabled"
                                      EnableViewState="true"
                                      Skin="MetroTouch">
                                            <ItemTemplate>
                                                          <asp:HiddenField ID="hfCid2" runat="server" Value='<%# Eval("CId") %>' />
                                                          
                                                           <telerik:RadAjaxPanel ID="apCevapYorum" runat="server"
                                                                                ViewStateMode="Enabled" EnableViewState="true">
                                                    
                                                                        <telerik:RadListView ID="lvChild" runat="server"
                                                                                          DataKeyNames="Id"
                                                                                          EnableViewState="true"
                                                                                          ViewStateMode="Enabled"
                                                                                          InsertItemPosition="FirstItem"
                                                                                          AllowPaging="True"
                                                                                          PageSize="5"
                                                                                          Skin="Transparent"
                                                                                          OnNeedDataSource="lvChild_NeedDataSource"
                                                                                           OnItemCommand="lvChild_ItemCommand">
                                                                                         <ValidationSettings CommandsToValidate="PerformInsert"
                                                                                         ValidationGroup="insertGroup"
                                                                                         EnableValidation="true"></ValidationSettings>
                                                                       </telerik:RadListView>
                                                              </telerik:RadAjaxPanel>
                                                  </ItemTemplate>
                                 </telerik:RadListView>

</telerik:RadAjaxPanel>
***************---------------***************

Code behind something like that:

***************---------------***************
protected void lvChild_NeedDataSource(object sender, RadListViewNeedDataSourceEventArgs e)
{
RadListView lvChild = (RadListView)sender;
RadListViewDataItem parentItem = (RadListViewDataItem)lvChild.NamingContainer;

var parentDatakeyId = (int)parentItem.GetDataKeyValue("CId"); //This give me null exception
//OR
// this button is in itemtemplate of parent with custom attribute cId= '<%# Eval("CId") %>'
RadButton rb = (RadButton)parentItem.FindControl("btnShowChildLvInsertItem");
 int cId = Convert.ToInt32(rb.Attributes["cId"]);//null
//OR
 HiddenField hf = (HiddenField)parentItem.FindControl("hfCId");
string cId2 = hf.Value;//null
***************---------------***************

i can Access all cid value or other values in itemcommand event of child lv. but there is a problem  at needdatasource event of child listview. all cid null.
Thank you.
Daniel
Telerik team
 answered on 24 Feb 2014
5 answers
463 views
Hello everybody,

When I am trying to set the text of a Multiline RadTextBox from CodeBehind, Internet Explorer (tested with 9 & 11) does not render new lines.
The text is coming from our database and lines are separated by "\r\n" - which should work in a textarea according to various other pages. Firefox and Chrome display it perfectly fine, while IE doesn't work (see attachments).

The text coming from the database is:
"06.02.2014 10:57, LeonardTest: defg\r\n06.02.2014 10:57, LeonardTest: hijk\r\n06.02.2014 10:57, LeonardTest: abcd\r\n"

I also tried replacing "\r\n" by "&#10;" (html new line) as well as <br />, but neither of them work.

Does anyone know a solution for this problem? It would be greatly appreciated!

Thanks
Leonard
Venelin
Telerik team
 answered on 24 Feb 2014
1 answer
57 views
I have a problem with Internet Explorer 8.

I have a page that in some computers the page looks rare. You can look in the link below how it looks in IE8 and Chrome and you can see like the style is completely different.

https://dl.dropboxusercontent.com/u/24664581/bug.png

Other bug in IE8, When I try to get the value of a radtextbox, the value is empty

I have a custom skin,but if I don't use the skin the problem persist.


So, Is this a problem with IE8? or I'm doing something bad.
Venelin
Telerik team
 answered on 24 Feb 2014
4 answers
360 views
Hi,

I want the calendar to be displayed in Thai language with A.D. Year, so I set the RadDatepicker's culture to "Thai-Thailand" in aspx . The problem is that it shows calendar in B.E. (Buddhist Era) first time the calendar is poped up. Only after the user click on forward or backward navigation that the calendar year will be in A.D. format.
 
Is it possible to make it show calendar year in A.D. format since the first time the calendar is poped up ?

Any help would be much appreciated.

Thankyou,

Punthip
DEV24x7
Top achievements
Rank 1
 answered on 24 Feb 2014
3 answers
129 views
The columns in my grid don't seem to be resizing the way (I think) they should. The column I'm resizing will get bigger or smaller, but instead of the other columns adjusting their widths, they just "move" according to the column being resized. For instance, if I make a column (let's say column 2) smaller (i.e. dragging right to left), all of the columns to the right (let's say columns 3 and 4) will get smaller. It's almost like there is an invisible column 5 that's being resized along with column 2, instead of columns 3 and 4 adjusting themselves. Conversely, if I make column 2 bigger it will just push the other columns "out", causing the grid to render a horizontal scroll bar. Here is a sample of some relevant code:

<telerik:RadGrid runat="server" ID="RadGrid1" EnableEmbeddedSkins="False" Skin="Default"
 Width="100%" AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource"
 AllowMultiRowSelection="True" AllowFilteringByColumn="True">
   <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
   <ItemStyle HorizontalAlign="Left"></ItemStyle>
   <AlternatingItemStyle HorizontalAlign="Left"></AlternatingItemStyle>
   <ClientSettings AllowColumnsReorder="False" EnablePostBackOnRowClick="False">
      <Scrolling UseStaticHeaders="True" AllowScroll="True" ScrollHeight="500px"/>
      <Resizing AllowColumnResize="True" EnableRealTimeResize="False"
       ClipCellContentOnResize="True" />
      <Selecting AllowRowSelect="True"/>
   </ClientSettings>
   <MasterTableView AllowPaging="True" AllowSorting="True" PageSize="500" TableLayout="Fixed"
    Width="100%"
      <Columns>
         <telerik:GridClientSelectColumn UniqueName="cbColumn" HeaderStyle-Width="3%"
          HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"/>
         <telerik:GridBoundColumn UniqueName="ID" Visible="False" DataField="ID"/>
         <telerik:GridBoundColumn UniqueName="ConfNo" HeaderText="Conf No" DataField="ConfNo"
          HeaderStyle-Width="20%" FilterControlWidth="65%"/>
         <telerik:GridBoundColumn UniqueName="Set No" HeaderText="Set No" DataField="SetNo"
          HeaderStyle-Width="20%" FilterControlWidth="65%"/>
         <telerik:GridBoundColumn UniqueName="Name" HeaderText="Name" DataField="Name"
          HeaderStyle-Width="57%" FilterControlWidth="85%"/>
      </Columns>
   </MasterTableView>
</telerik:RadGrid>

Any help appreciated!
Venelin
Telerik team
 answered on 24 Feb 2014
1 answer
58 views
Hi,

I am trying to preserve the state of a RadGrid using the "Persistence Framework". I am following this demo.

http://demos.telerik.com/aspnet-ajax/persistence-framework/examples/custom-storage-provider/defaultcs.aspx

I am using client-side web service data binding in the RadGrid and unable to preserve the state of the grid. But it works fine if I use a SQLDataSource for example.

I just wanted to know whether "Persistence Framework" is not supported with client-side web service data binding.

Thank you.
Viktor Tachev
Telerik team
 answered on 24 Feb 2014
4 answers
1.4K+ views
Hi,
I am using NeedDataSource to populate a grid...  The following code (shown below) is used in my server control after the radGrid has been created.
I have followed the telerik examples, but had to add the "else" part of this statement as postbacks (eg from buttons unrelated to the grid) caused a blank grid.

Anyway assuming this is valid, I am getting strange behaviour when I sort the grid....
When I click the first column to sort, then click the second column to sort... the third column is actually sorted... If I click the second column again, the second column is then sorted as required...

eg..

My Grid - Unsorted
|  Col 1  |  Col 2  |  Col 3  |
     B            C           A
     C            A           D
     A            B           C
     D            D           B

Now I click Col 1 (All OK):
|  Col 1  |  Col 2  |  Col 3  |
     A            B           C
     B            C           A
     C            A           D
     D            D           B


But now I click Col 2 (But Col 3 sorts !)
|  Col 1  |  Col 2  |  Col 3  |
     B            C           A
     D            D           B
     A            B           C
     C            A           D

Only when I click Col 2 again does Col 2 actually sort correctly...

has anyone come across this issue beofre?

Here is my code 

            [radGrid1 is created here with all columns etc]
.
.
.
            radGrid1.NeedDataSource += new GridNeedDataSourceEventHandler(radGrid1_NeedDataSource);
            if (!Page.IsPostBack)
            {
                // A couple of lines for applying a default filter.
                radGrid1.MasterTableView.FilterExpression = "[Variation] = 'Committing'";
                GridColumn variationColumn = radGrid1.Columns.FindByUniqueName("Variation");
                variationColumn.CurrentFilterFunction = GridKnownFunction.EqualTo;
                variationColumn.CurrentFilterValue = "Committing";
                radGrid1.DataSource = GetData();
                radGrid1.DataBind();
            }
            else 
            {
                radGrid1.Rebind();
             }
.
.
.
        void radGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
                (sender as RadGrid).DataSource=GetData();  // Returns DataTable
        }


Thanks in advance!
Viktor Tachev
Telerik team
 answered on 24 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?