Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 views

Hi,

 

I'm using EntityDataSource on RadScheduler and it works fine.

I've added a new resource type "Paciente" (Patient) associated with edsPacientes EntityDataSource as shown on the code bellow.

It works fine for appointment creation: populates Paciente combo box with values from Pacientes table and save the consult with the correct patient.id value (I've checked the database record).

But when I try to edit the newly created appointment the value on "Paciente" combo box is not set. See attached picture.

<asp:EntityDataSource ID="edsConsultas" runat="server"   
    ConnectionString="name=jaruche1Entities"   
    DefaultContainerName="jaruche1Entities" EnableDelete="True" EnableInsert="True"   
    EnableUpdate="True" EntitySetName="Consultas" EntityTypeFilter="Consulta">  
</asp:EntityDataSource> 
<asp:EntityDataSource ID="edsPacientes" runat="server"   
    ConnectionString="name=jaruche1Entities"   
    DefaultContainerName="jaruche1Entities" EnableDelete="True" EnableInsert="True"   
    EnableUpdate="True" EntitySetName="Pacientes" EntityTypeFilter="Paciente">  
</asp:EntityDataSource> 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="300px" RenderMode="Inline" 
    Width="100%">  
    <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="Termino" DataKeyField="Id" 
        DataSourceID="edsConsultas" DataStartField="Inicio" DataSubjectField="Observacoes" 
        Skin="Office2007" StartInsertingInAdvancedForm="True" SelectedView="WeekView">  
        <ResourceTypes> 
            <telerik:ResourceType DataSourceID="edsPacientes" ForeignKeyField="Paciente.Id" 
                KeyField="Id" Name="Paciente" TextField="Nome" /> 
        </ResourceTypes> 
    </telerik:RadScheduler> 
</telerik:RadAjaxPanel> 
 

Am I doing something wrong or this is a bug on RadScheduler?

I'm using Q1-2010 release.

Thanks!
Fernando
Peter
Telerik team
 answered on 14 Apr 2010
1 answer
113 views
Hi,
I've an issue using the Radeditor inside an iframe.

In an older version I used the ContextMenu of the Editor was shown outside the Iframe.
Now the ContextMenu is shown inside the Iframe.

Is there a way to show the ContextMenu outside an IFrame

Regards
Rumen
Telerik team
 answered on 14 Apr 2010
7 answers
238 views
Hello,

I an new to RadGrid and run in to a issue when using Client-Side Insert - In my grid, I have one buttoncolumn and two boundcolumn. What I want to do is to add a new row into my grid by clicking a button out of the grid, pretty simple, right? However, when using Client-Side insert by calling a javascript function, the new row is added and two boundcolumns are populated properly, but leaves buttoncolumn blank. Here is the ASPX code:
 

 

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type ="text/javascript" >
        var custodian =
        {
            CustodianID:null,
            EmailAddressID: null,
            EmailAddress: null,

            create: function() {
                var obj = new Object;
                obj.CustodianID = 0;
                obj.EmailAddressId = "";
                obj.EmailAddress = "";
            }
        };

        function updateChanges() {
            PageMethods.AddCustodian("asd", updateGrid);
            //MyWebService.UpdateEmployeeByEmployee(getValues(), updateGrid);
        }
        function updateGrid(result) {
            var tableView = $find("<%= rgCustodians.ClientID %>").get_masterTableView();
            tableView.set_dataSource(result);
            tableView.dataBind();

            //var grid = $find("<%= rgCustodians.ClientID %>");
            //grid.repaint();
        }
    </script>
</telerik:RadCodeBlock>
<span><telerik:RadTextBox ID="tbCustomdian" runat="server" Width ="200px">
</telerik:RadTextBox></span>
<span style ="margin-left:5px; vertical-align:middle" >
<asp:Button ID="btnAddCustodian" runat="server"
    Text="<%$Resources:Labels, add %>" Width ="100px"
    OnClientClick="updateChanges(); return false;"  /></span>
<telerik:RadGrid ID="rgCustodians" runat="server" AutoGenerateColumns="False"
    AutoGenerateDeleteColumn="False" GridLines="None"
    ondeletecommand="rgCustodians_DeleteCommand"
    onneeddatasource="rgCustodians_NeedDataSource" Width="100%">
   
<MasterTableView  Width="100%" TableLayout="Fixed" >
    <Columns>
        <telerik:GridBoundColumn  HeaderText="EmailAddressId" Visible ="False" DataField="EmailAddressId" UniqueName="EmailAddressId" ></telerik:GridBoundColumn>
        <telerik:GridBoundColumn HeaderText="Cutodians" UniqueName="EmailAddress" DataField="EmailAddress"></telerik:GridBoundColumn>
        <telerik:GridButtonColumn  Display ="true" Visible ="true" Text="deleee" />
    </Columns>
    <NoRecordsTemplate>
     <div> <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:Labels, norecords%>" /> </div>
   </NoRecordsTemplate>
</MasterTableView>
</telerik:RadGrid>


Did I do something wrong?
Thanks in advance
Wei

 

 

 

 

 

Iana Tsolova
Telerik team
 answered on 14 Apr 2010
1 answer
139 views
Hello,

I'm trying to disable the combo box on the client, and having it look disabled (using the italicized font, which I have been able to setup).  I manually invoke the requesting of items from the web service, and on the itemsrequested client-side event, I do this:

function

 

itemsRequested(sender, e) {

 

 

  if (sender.get_items().get_count() == 0) {

 

       sender.set_enabled(

false);

 

 

        return;

 

  }

}

This actually runs, but the UI of the combo doesn't change to the new style...  do I have to programmably do it?

Thanks.

Kalina
Telerik team
 answered on 14 Apr 2010
1 answer
84 views
I can't get custom css-styles to work, so that I can add a cssfile and then use the styles from that stylesheet.

I have tried to follow the example on the website but still it doesnt work.

I have the following code:

 

<telerik:RadEditor ID="RDHtmlEditor" EditModes="All" runat="server" Width="750px"

 

 

Height="700px" EnableResize="False">

 

 

<ImageManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor" DeletePaths="~/Attachment/Editor"

 

 

MaxUploadFileSize="104857600" />

 

 

<DocumentManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor"

 

 

DeletePaths="~/Attachment/Editor" MaxUploadFileSize="104857600" />

 

 

<FlashManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor" DeletePaths="~/Attachment/Editor"

 

 

MaxUploadFileSize="104857600" />

 

 

<MediaManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor" DeletePaths="~/Attachment/Editor"

 

 

MaxUploadFileSize="104857600" />

 

 

<TemplateManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor"

 

 

DeletePaths="~/Attachment/Editor" MaxUploadFileSize="104857600" />

 

 

<CssFiles>

 

 

<telerik:EditorCssFile Value="~/App_Themes/RabatstedetPublicTheme/StyleSheetPublic.css" />

 

 

</CssFiles>

 

 

<Content>

 

 

 

</

 

Content>

 

 

</telerik:RadEditor>

 

Rumen
Telerik team
 answered on 14 Apr 2010
3 answers
144 views
We have been using grid column filtering with the RadGrid control for some time. We have been requested to change the date format throughout the application to  dd/MMM/yy

Setting the DataFormatString="{0:d}" (shown below) breaks the filtering with version 2009.3.1208.35. No filtering occurs. When a date with this format is entered and "Equal To" is selected for the filter, the results are an empty grid. The system date format has been set to "dd MMM yy".



<telerik:GridBoundColumn UniqueName="DateAdded" DataField="DateAdded" SortExpression="DateAdded"
                                HeaderText="Created" DataFormatString="{0:d}" Groupable="false"
                                ItemStyle-HorizontalAlign="Right" FilterControlWidth="65px">
                                <HeaderStyle Width="85px" />
                            </telerik:GridBoundColumn>

How do we get the grid filters to work with this date format?

Thanks in advance,

Keith E.
Yavor
Telerik team
 answered on 14 Apr 2010
1 answer
59 views
When I'm editing a tree node (renaming it) and the edit textbox streches beyond the width of the tree view, it will automatically end the editing.  This only happens in IE8 for me.  I've tried it in FF and I get a horizontal scroll bar in the tree view and the textbox stays as is (which is expected).  I've set the width of my Tree View to 220px so that I do get a horizontal scroll bar when I have folder names or child folders that extend beyond the 220px.

Here is the interesting thing.  If I add enough child folders so that I do get the horizontal scroll bar in IE8, then when I rename a folder that extends beyond the scroll width, it just adjusts to that and works as it should.  I'm thinking that his is an issue with IE8 and was wondering if there was way to make the horizontal scroll bar always visible for the Tree View, in hopes that by doing so would solve this issue.

- Kai Thao
Dimitar Milushev
Telerik team
 answered on 14 Apr 2010
1 answer
110 views
Hi,

I am facing a strange situation in my application. I have a rad text box in ajax update panel. When an event is fired say button click(Button is within the panel), the text in the rad text box completely vanishes.But if i replace this text box with the asp: text box ,it works fine. This happens only for one particular text box among 5 other text boxes



Regards,
Saravanan
Maria Ilieva
Telerik team
 answered on 14 Apr 2010
1 answer
93 views

Hi,

My Page has 3 RadTab and each tab page has a user conttol in it. This page was working fine with 2009 Q3. But we have updated to 2010 Q1 and now this page is giving javascript error on postbac calls.
It gives error document.getelementbyid() is not an object in some resource file and line number is in billions and when i do click on debug the IE 8 shows message "Source Code is not available for this location".
This page is working fine in Mozila Firefox. Further more this page works fine when i remove AjaxManager and AjaxProxyManager from User Controls.
Is there some issue in RAD AJAX with RadAjaxManager, RadAjaxManagerProxy, RADTab, RadMultiPage, And RadSplitter?
Thanks & Regards
Imran Javed Zia

Lenny_shp
Top achievements
Rank 2
 answered on 14 Apr 2010
1 answer
104 views
I have a hierarchial grid with a single detail table. Allowautomaticupdates = True.   I click on the update link to put the grid in edit mode and change the values.  The stored procedure is called that is defined on the Sqldatasource and the values are passed to the stored proc.  But the values passed are the original values not the updated values.  How do I get the updated values from the grid?  I'm assuming there is a simple trick I am missing but not sure what it is.

Thanks
Pavlina
Telerik team
 answered on 14 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?