Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
120 views
I noticed that when I added the RadWindowManager to my login page, the AutoComplete Password feature in IE stopped functioning.  Microsoft, in its infinite wisdom, setup this feature so that it only works when there are exactly two text input controls on the page.  When reviewing the generated html, it looks like when the RadWindowManager is added, another text input control is generated.

Look for the line: <input title="Enter Value" onkeydown="return RadWindowprompt_detectenter('{0}', event, this);" type="text" class="rwDialogInput" value="{2}" />

<div id="ctl00_windowManager" style="z-index:9500;display:none;">
    <!-- 2011.2.915.40 --><div id="ctl00_windowManager_alerttemplate" style="display:none;">
        <div class="rwDialogPopup radalert">            
            <div class="rwDialogText">
            {1}             
            </div>
              
            <div>
                <a  onclick="$find('{0}').close(true);"
                class="rwPopupButton" href="javascript:void(0);">
                    <span class="rwOuterSpan">
                        <span class="rwInnerSpan">##LOC[OK]##</span>
                    </span>
                </a>                
            </div>
        </div>
        </div><div id="ctl00_windowManager_prompttemplate" style="display:none;">
         <div class="rwDialogPopup radprompt">          
                <div class="rwDialogText">
                {1}             
                </div>      
                <div>
                    <script type="text/javascript">
                    function RadWindowprompt_detectenter(id, ev, input)
                    {                           
                        if (!ev) ev = window.event;                
                        if (ev.keyCode == 13)
                        {                                                                   
                            var but = input.parentNode.parentNode.getElementsByTagName("A")[0];                         
                            if (but)
                            {                           
                                if (but.click) but.click();
                                else if (but.onclick)
                                {
                                    but.focus(); var click = but.onclick; but.onclick = null; if (click) click.call(but);                            
                                }
                            }
                           return false;
                        
                        else return true;
                    }    
                    </script>
                    <input title="Enter Value" onkeydown="return RadWindowprompt_detectenter('{0}', event, this);" type="text"  class="rwDialogInput" value="{2}" />
                </div>
                <div>
                    <a onclick="$find('{0}').close(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"             
                        class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a>
                    <a onclick="$find('{0}').close(null);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a>
                </div>
            </div>                     
        </div><div id="ctl00_windowManager_confirmtemplate" style="display:none;">
        <div class="rwDialogPopup radconfirm">          
            <div class="rwDialogText">
            {1}             
            </div>                      
            <div>
                <a onclick="$find('{0}').close(true);"  class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a>
                <a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a>
            </div>
        </div>      
        </div><input id="ctl00_windowManager_ClientState" name="ctl00_windowManager_ClientState" type="hidden" />
</div>

As much as I dislike the notion of users using the AutoComplete for passwords from a security stand point, it is a requirement that this page support it.  Is there a simple work around so I can keep the RadWindowManager on this page?

I am using IE8 and version 2011.2.915 of the Telerik controls.  Thanks.
James
Top achievements
Rank 1
 answered on 20 Oct 2011
2 answers
140 views
Hi,

I have customized implementation of Scheduler and there are some tables in the back end I need to update after appointment dragged and dropped by the user. To have that custom tables update done I need to have newly added ID of exception appointment. To get that ID I handle this event in following way:

  Private Sub RadScheduler1_RecurrenceExceptionCreated(sender As Object, e As Telerik.Web.UI.RecurrenceExceptionCreatedEventArgsHandles RadScheduler1.RecurrenceExceptionCreated
 
        RadScheduler1.DataBind()
        Dim NewAppID As Integer = GetLastAddedAppointmentID(RadScheduler1) 'my own function
 
    End Sub

This is my workaround of what might be a much more straightforward process. 
Moreover, with that approach there can be some issues with concurrency when more than one user are working
on the same scheduler.

So the question is what would be better way to extract that newly added ID of exception appointment?
Please advise.

Thanks!




Peter
Telerik team
 answered on 20 Oct 2011
2 answers
66 views
Hi :-)

Is it possible to get the AdvancedInsertTemplate or AdvancedEditTemplate to "pop up" when dropping an item from a treeview on to the scheduler?

BR
Mads
Mads
Top achievements
Rank 1
 answered on 20 Oct 2011
1 answer
232 views
I am trying to use an Appointment Template for a RadScheduler with WebService data binding. However, the template is not display. How could that happen?

Peter
Telerik team
 answered on 20 Oct 2011
1 answer
64 views
Hello,
I wants to change image in radscheduler appointmnet template at runtime.
Means in my data there are one column status which contains data like active, new, pending etc.
Now i wants to display image as per status in above column.

Or how to find image control in event RadScheduler_AppointmentDataBound(object sender, SchedulerEventArgs e) .


Thanks
Plamen
Telerik team
 answered on 20 Oct 2011
1 answer
85 views
Hello,
I wants to change image in radscheduler appointmnet template at runtime.
Means in my data there are one column status which contains data like active, new, pending etc.
Now i wants to display image as per status in above column.

Or how to find image control in event RadScheduler_AppointmentDataBound(object sender, SchedulerEventArgs e) .


Thanks
Plamen
Telerik team
 answered on 20 Oct 2011
2 answers
130 views
Hi.

I'm trying to build a dynamic 3 level tabstrip. Every tabstrip has data read from a DataSource and every tab in every tabstrip level has a tabstrip associated. Depending on the 1st level tab selected, the tabstrip's at second level might be different and depending on the 1st level tab selected, and 2nd level tab selected, a different tabstrip should be loaded.
the first 2 levels only have the tabstrip on the pageview associated to his tabs and only on the 3rd level it has some content ( some checkboxlist with some values obtained from 1st,2nd and 3rd level tabs selected.
The problem is that only 1st and 2nd level tabstrips show, the 3rd level tabstrip doesn't show at all
Here's what i have done :
- On the form design i only have the 1st level tabstrip and multipage
- on the code behind, on pageload (or init, i have tried both options) i have something like this:

the 3 subs here do the following steps:
bindTabStrip ( do the databind of the tabstrip)
bindMultiPage( read datatable and create n pageviews and add them to multipage)
bindViewid( set tab.pageview id = pageview.id)

BindTabStrip(level1TabsStrip, Level1DataTable)
      
        For rootTabIndex = 0 To level1TabsStrip.Tabs.Count - 1
            BindMultiPage(getLevel1Data, level1MultiPage)
            BindViewIDs(level1TabsStrip, level1MultiPage)
.

            For Each PV As PageView In level1MultiPage.PageViews

                level2Multipage = New RadMultiPage
                level2TabStrip = New RadTabStrip
                level2TabStrip.MultiPageID = level2Multipage.ID

                BindTabStrip(level2TabStrip, getLevel2Data)
                BindMultiPage(getLevel2Data, level2Multipage)
                BindViewIDs(level2TabStrip, level2Multipage)
                PV.Controls.Add(level2TabStrip)

 
                For Each PV2 As PageView In level2Multipage.PageViews
                    level3Multipage = New RadMultiPage
                    level3TabStrip = New RadTabStrip
                    level3TabStrip.MultiPageID = level3Multipage.ID
                 
                    BindTabStrip(level3TabStrip, getLevel3Data)
                    BindMultiPage(getLevel3Data, level3Multipage)
                    BindViewIDs(level3TabStrip, level3Multipage)
                    PV2.Controls.Add(level3TabStrip)

                Next

            Next

        Next
        level1TabsStrip.SelectedIndex = 0



Dimitar Terziev
Telerik team
 answered on 20 Oct 2011
11 answers
258 views
Hi,

I'm using version 5.6.2 in a WCM scenario, and am having problems adding an iframe into the HTML.

In my page layout I have the editor specified like this:

<telerik:RadHtmlField runat="server" DisplayWidth="100%" ID="docAbstract" FieldName="ACAbstract" InputFieldLabel="Article content" AllowSpecialTags="True" AllowScripts="True"/>

I have also made AllowScripts True in the ConfigFile.xml, but it's still stripping out the tag on saving the page.  Is there something I'm missing? 

Thanks,

Richard
Richard Earle
Top achievements
Rank 1
 answered on 20 Oct 2011
3 answers
80 views
Hi there,

All the sudden, the RadComboBox acts very strange in IE browser even if I do not change any code and it just started a week ago. I am not sure if this is due to Microsoft update or what else could cause it.

Here is the code.

Case: 1
                        <telerik:RadComboBox ID="rcbCompany" runat="server" DataSourceID="SQLDS_CompanyList"
                            Skin="Gray" AutoPostBack="True" Height="200px" Width="390px" MarkFirstMatch="True" 
                            DataValueField="companyGuid" DataTextField="company" OnSelectedIndexChanged="rcbCompany_SelectedIndexChanged" />

Say one of the company is "My Company".

When I typed "My" it does not show the company. However, if I type "ym", it will show. It will not happen to FireFox and Chrome.

Case: 2

                                <telerik:RadComboBox ID="rcbModel" runat="server" DataSourceID="SQLDS_Model" Skin="Gray"
                                    AutoPostBack="False" Height="200px" Width="200px" MarkFirstMatch="True" DataValueField="model"
                                    DataTextField="model" AllowCustomText="true" ToolTip="Enter or select model" />

Say one of the model is "PT-9500".

When I typed "pt-", the first letter that I type will be the end of the word that I typed. In this case, it will change from "pt-" to "t-p" and it will not find what I would like to.

I have not updated the code for at least two weeks and it just happened for IE only. Please let me know how do I solve this problem.

Thank you,

Sompop





Dimitar Terziev
Telerik team
 answered on 20 Oct 2011
2 answers
128 views
;Hello,

I need to get a rtf text from a SQL field and convert it to a normal string.

after this i will convert it again to xml and send it by a soap service.

i'm using the rad editor control to convert from rtf to string using the  following code:

var entity= _container.someting.First();
 
          Telerik.Web.UI.RadEditor editor = new Telerik.Web.UI.RadEditor();
 
          editor.LoadRtfContent(entity.rtfText);
 
          var text = editor.Content.ToString();

But the variable text have html values.... i was expecting pure text content.

Is there a way to convert rtf to normal text?

Best Regards,
Marco



Marco Teodoro
Top achievements
Rank 1
 answered on 20 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?