Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
I have a scenario where I will have fixed options for an AutoCompleteBox that users will select from. Each option is broken up into a few different groups. Users will be allowed to pick as many options as they would like but I would like to visually present them with the list broken up by group. Basically, we are trying to enforce a standard set of tags that a user can select from. These tags will later be used in searching and filtering. In the attached image,I mocked up what I am looking to do. Is this possible? If not, are they recommended alternatives for handling this type of thing? Thanks in advance for any help you can provide.
Peter Milchev
Telerik team
 answered on 08 Nov 2019
7 answers
584 views
I'm using the RadListView in my project which is setup like so:
<telerik:RadListView ID="lvCalendars" runat="server" AllowPaging="True" DataKeyNames="Listing_ID" 
            DataSourceID="dsListing" OnItemDataBound="lvCalendars_ItemDataBound"
            <LayoutTemplate> 
                <telerik:RadDataPager ID="dpTopPager" runat="server" PagedControlID="lvCalendars" 
                    PageSize="7" Skin="Office2007"
                    <Fields> 
                        <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="10" /> 
                    </Fields> 
                </telerik:RadDataPager> 
                <table cellpadding="0" cellspacing="0" width="100%" class="bgStandardMedium"
                    <tr id="itemPlaceholder" runat="server"
                    </tr> 
                </table> 
                <telerik:RadDataPager ID="dpBottomPager" runat="server" PagedControlID="lvCalendars" 
                    PageSize="7" Skin="Office2007"
                    <Fields> 
                        <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="10" /> 
                    </Fields> 
                </telerik:RadDataPager> 
            </LayoutTemplate> 
            <ItemTemplate> 
                <tr> 
                    <td class="bgStandardDark propertySection"
                        <asp:Image ID="imgProperty" runat="server" Width="130px" Height="90px" AlternateText='<%#Eval("Name") %>' 
                            ToolTip='<%#Eval("Name") %>' /> 
                        <span class="propertyName"
                            <%#DataBinder.Eval(Container, "DataItem.Name").ToString() %> 
                        </span> 
                        <asp:HyperLink ID="lnkBookProperty" runat="server" CssClass="buttonStandard" Text="<span>Book Property</span>" 
                            Width="170px"></asp:HyperLink> 
                        <br /> 
                        <br /> 
                        <asp:LinkButton ID="lnkPrintCalendar" runat="server" CssClass="buttonStandard" Width="170px" 
                            Text="<span>Print Reservation List</span>"></asp:LinkButton> 
                    </td> 
                    <td class="calendarSection"
                        <telerik:RadAjaxPanel ID="apBookingCalendar" runat="server" LoadingPanelID="LoadingPanel1"
                            <telerik:RadCalendar ID="calBooking" runat="server" MultiViewColumns="4" MultiViewRows="1" 
                                EnableMultiSelect="false" ShowRowHeaders="False" ShowOtherMonthsDays="False" 
                                AutoPostBack="True" CssClass="bookingCalendar" OnDefaultViewChanged="calBooking_DefaultViewChanged"
                                <CalendarTableStyle Width="175px" Height="196px" /> 
                            </telerik:RadCalendar> 
                            <div class="button-row" style="text-align: center;"
                                <asp:LinkButton ID="lnkbtnViewFullYear" runat="server" CssClass="buttonStandard" 
                                    Text="<span>View Full Year</span>" Width="150px" /> 
                            </div> 
                        </telerik:RadAjaxPanel> 
                        </li> 
                    </td> 
            </ItemTemplate> 
        </telerik:RadListView> 

Now in my calendar's OnDefaultViewChanged event I attempt to retrieve the RadListViewDataItem it's contained in like so:

protected void calBooking_DefaultViewChanged(Object sender, Telerik.Web.UI.Calendar.DefaultViewChangedEventArgs e) 
    { 
        try 
        { 
            // get calendar 
            RadCalendar calBooking = (RadCalendar)sender; 
            // get RadListViewDataItem 
            RadListViewDataItem dtItem = (RadListViewDataItem)calBooking.Parent.Parent; 
 
            // hold Sub Listing 
            SubListing subListing = new SubListing(); 
 
            // hold Listing 
            Listing listing; 
 
            // check if data item is a listing 
            if (dtItem.DataItem is Listing) 
            { 
                // get listing 
                listing = (Listing)dtItem.DataItem; 
            } 
            else 
            { 
                // get sub listing 
                subListing = (SubListing)dtItem.DataItem; 
                // get listing 
                listing = subListing.Listing; 
            } 
 
            //...calendar setup code follows
 
        } 
        catch (Exception ex) 
        { 
        } 
    } 

Now apparently DataItem does not exist, I get a null value. I was able to retrieve the DataItem object in the ItemDataBound event of the RadListView control but not in the calendar event. 

Is there a reason for this or is it some bug in the RadListView control?

I am using the latest version of the controls 3.1105 (.NET 3.5).
Rumen
Telerik team
 answered on 07 Nov 2019
3 answers
92 views

Hi,

I have found a issue when a user opens a link by rightclick in the editor and then "Open Link" due to our customformated links with $* characters. 
I am trying to find a way to replace this characters before the link is opened.

Successfully catched the event in OnClientCommandExecuting but I guess it is to late there..

function OnClientCommandExecuting(editor, args) {
                 if (args.get_name() == "OpenLink") {
 
                 }
}
Rumen
Telerik team
 answered on 07 Nov 2019
5 answers
1.4K+ views

Hi, I'm trying to pass a parameter in the GridButtonColumn's CommandArgument and CommandName field.  From what I can see in the examples, I should be able to just put in the field, like this....  CommandArgument="Part_id", however, it does not seem to pass the param back to the code behind.  I'm using the RadGrid1.ItemCommand event handler and it kicks off that event just fine.  Here is the button and the code behind and the error....

 

<telerik:GridButtonColumn ButtonType="LinkButton" HeaderText="Additional<br />Process" CommandArgument="Part_id" CommandName="Part_id" Text="View" UniqueName="lnkPartID" DataType="System.Int32"></telerik:GridButtonColumn>                

 

Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles RadGrid1.ItemCommand
        Dim partID As Integer = CInt(e.CommandArgument)
        code....code.... .code....
End Sub

Error...

Input string was not in a correct format...

The value is an integer.

Many thanks,

-Erich Neubert

 

Marcos
Top achievements
Rank 1
 answered on 07 Nov 2019
4 answers
149 views

Hi,

I have a control (PDFViewer) that make callbacks on save, download, etc.., and i manage this events in server side.

The control in isolation works well, I receive the events on the server. But when I place it inside a RadWindow or a RadSplitter I stop receiving the events on the server.

Any idea what the problem might be? Thanks!

Vessy
Telerik team
 answered on 07 Nov 2019
3 answers
307 views

I would like users to land on a particular step based on a parameter passed to the page. I would like to hide all previous steps when this occurs. I am able to loop through the existing steps in the wizard, determine if the step is before the "LandingStep", and hide the previous step. I then set the "LandingStep"... StepType to "Start".

This all works, however setting the previous step's visible property to "False" does not hide them. I would think if a step has Visible="False" set it would not render. But the steps still show up. I have tried to hide the steps in Page Load as well as Wizard_PreRender.

Rumen
Telerik team
 answered on 07 Nov 2019
3 answers
111 views

I have created a custom button to set/change a file tags (this would be a DB column I will handle). I am trying to call/open the new folder dialog and use it's textbox to set or modify a file tags, my code is:

 

<telerik:RadFileExplorer runat="server" ID="telerikFileExplorer" RenderMode="Lightweight" Width="650px" Height="480px"
    OnExplorerPopulated="telerikFileExplorer_ExplorerPopulated" OnClientLoad="fileExplorerInit" OnClientItemSelected="fileExplorerItemSelected" OnClientFolderChange="fileExplorerFolderChanged">
    <Configuration AllowFileExtensionRename="false" AllowMultipleSelection="true" />
</telerik:RadFileExplorer>

<script type="text/javascript">
    function fileExplorerInit(fileExplorer, args) {
        var toolbar = fileExplorer.get_toolbar();
        toolbar.add_buttonClicked(toolbarClicked);
        setButtonEnableState(fileExplorer, '', 'ChangeTags');
    }
    function toolbarClicked(toolbar, args) {
        var buttonValue = args.get_item().get_value();
        if (buttonValue == 'ChangeTags') {
            //Call open NewFolder dialog and post to update new value;
        }
    }
    function fileExplorerItemSelected(fileExplorer, args) {
        setButtonEnableState(fileExplorer, args.get_item().get_extension(), 'ChangeTags');
    }
    function fileExplorerFolderChanged(fileExplorer, args) {
        setButtonEnableState(fileExplorer, args.get_item().get_extension(), 'ChangeTags');
    }
    function setButtonEnableState(fileExplorer, extension, command) {
        var button = fileExplorer.get_toolbar().findItemByValue(command);
        button.set_enabled(!(typeof (extension) == 'undefined' || extension == null || extension == ''));
    }
</script>

Vessy
Telerik team
 answered on 07 Nov 2019
9 answers
2.4K+ views
Hi. I have erorr "404 Not Found" at the WebResource.axd. Link in background parameter is generates this error (UI for ASP.NET AJAX Q3 2014)
.RadSiteMap.RadSiteMap_rtl .rsmLevel .rsmNodeLines .rsmItem {
padding-right:.83333em;
padding-left:0;
background:url(WebResource.axd?d=f48wGjvl_0dfjPmNr9tLOFvnMRB1CLi8n-kjtv2310YCqz9WudUCfxBHSq03EKuBio5VhswoV9GN6Msark-MNoNqaK7fwka8kcEAy9exFY5jI8t7WdZDzHk_lf7RbccUA8wjhaQPz1iF6FN7gH24LNwpnC6TMkNoLUu3voY_UExZqI460&t=635496800280000000) right -2px no-repeat;}
if i set EnableEmbeddedBaseStylesheet="false" then error does not appear, but sitemap displayed incorrectly.
How i can correct this error ?
Thanks in advance.
Vessy
Telerik team
 answered on 06 Nov 2019
1 answer
123 views

RadMenu inside a ListView Item changes popup position after deleting or adding a new ListView Item. It seems as if RadMenu save its old x,y before ListView update.

It works fine only after page refresh but I can't do this not to lose Current Item and Current Page position and layout,

I there any method to let RadMenu recognize Page Length / ListView length changes?

Thanks

Rumen
Telerik team
 answered on 06 Nov 2019
1 answer
98 views

I am implementing the sitemap. When you add a child node, within the parent node it adds an unordered list with the class="rsmList rsmLevel1". I want to edit the unordered list that gets created to hold the child node to append a class to it like:

<ul class="rsmList rsmLevel1 newClass"></ul>

 

However, it seems like I can only edit the class of either the parent <li> or the child <li> node. Is there a way to edit the class of the <ul> that gets grouped with the child node?

Rumen
Telerik team
 answered on 06 Nov 2019
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?