Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
171 views
Is there any way to alter RadInputManager's VALIDATION settings on the client side?

I am able to do so on the server side:

            radIM.GetSettingByBehaviorID("phone").Validation.IsRequired = False

using behavoir ID - where I can toggle the validation on and off.  But I'd like to do it on the client side - and the documentation for radInputManager client-side code seems somewhat liimited.

Thanks,
Bill


Eric
Top achievements
Rank 1
 answered on 20 Oct 2011
23 answers
551 views
hi,
i am using the scheduler in month view. I am just displaying the calendar and there is no interaction involved. i am looking to give the users print capability where they can click on a link, and are able to print the monthview. is this possible? if yes, can someone send me an example, or guide me?
I will really appreciate a quick response.

Thanks!
Saumin
Peter
Telerik team
 answered on 20 Oct 2011
2 answers
113 views
Hi All, I'm using the grid and this example

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultvb.aspx

I'm also allowing drag and drop. Items can be dragged above or below another item, but not on top of. My goal is to drag one item on top of another so that I can set the parent/child relationship. In the example above, I'd want to set EmployeeID=7 to be a child of EmployeeID=3. Can this be done?
Julian
Top achievements
Rank 1
 answered on 20 Oct 2011
2 answers
107 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
131 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
62 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
171 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
52 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
75 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
119 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?