Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
135 views
Hello,

I have been working with the RadGrid and binding it to output I receive from PowerShell commands with no issues.  However, when i want to perform operations such as filtering and sorting, I cannot seem to get this to work.  Following is my HTML and my code behind where I am using the NeedDataSource event:

<telerik:RadGrid ID="HealthCheckStatus" runat="server"
    AllowPaging="false"
    AllowFilteringByColumn="true"
    AllowSorting="true"
    ViewStateMode="Enabled">
    <MasterTableView CommandItemDisplay="Top">
        <NoRecordsTemplate>
            <div class="no-records">
                No records to display.
            </div>
        </NoRecordsTemplate>
        <Columns>
            <telerik:GridBoundColumn DataField="Name" HeaderText="Database Name" />
            <telerik:GridBoundColumn DataField="Status" HeaderText="Status" />
            <telerik:GridBoundColumn DataField="CopyQueueLength" HeaderText="Copy Queue Length" />
            <telerik:GridBoundColumn DataField="ReplayQueueLength" HeaderText="Replay Queue Length" />
            <telerik:GridDateTimeColumn DataField="LastInspectionLogTime" HeaderText="Last Inspection Log Time" />
            <telerik:GridBoundColumn DataField="ContentIndexState" HeaderText="Content Index State" />
        </Columns>
        <CommandItemSettings
            ShowAddNewRecordButton="false"
            ShowExportToExcelButton="true"
            ShowExportToCsvButton="true"
            ShowRefreshButton="false"
            />
    </MasterTableView>
    <ExportSettings Excel-Format="ExcelML"
        HideStructureColumns="true"
        ExportOnlyData="true"
        IgnorePaging="true"
        OpenInNewWindow="true"
        />
</telerik:RadGrid>



Protected Sub HealthCheckStatus_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles HealthCheckStatus.NeedDataSource
 
    Dim queues As Collection(Of PSObject) = PSExchange( _
            "get-mailboxdatabasecopystatus * | sort CopyQueueLength -descending | sort Name")
    HealthCheckStatus.DataSource = queues
 
End Sub

As a note, I have tried modifying the PoweShell command to not have a default sort order and just utilize the primary cmdlet of get-mailboxdatabasecopystatus * and still cannot get it to work.  All that I get back is the same table unsorted and unfiltered every time.

Any help in understanding how I can get this to work would be greatly appreciated!

Thanks,
Ron
Daniel
Telerik team
 answered on 08 Oct 2013
6 answers
283 views
Hi,

I am using a RadListBox with CheckBoxes="True" within a RadGrid, meaning that it is replicated a number of times. Due to the size of the list, and the amount of times it is shown on the page, I donot want each item to be included in the tab order.

I have tried setting the RadListBox tabindex to -1, as well as each item's tabindex to -1 in ItemDataBound, but navigating using tab still traverses the list for each row. What I can only assume is that each checkbox populated in the list when CheckBoxes is set to true, is given a number in the tab order. Is there a way to set the checkboxes tabindex so that this is no longer an issue?

Regards

Troy
Nencho
Telerik team
 answered on 08 Oct 2013
1 answer
210 views
I have created a simple function to add a scheduler appointment to the user's Outlook calendar from a link in the appointment template. It works great for single appointments.
I would also like to do this for recurring appointments and would appreciate any resources, samples or suggestions to point me in the right direction.

Thanks!
Nencho
Telerik team
 answered on 08 Oct 2013
1 answer
150 views
This question is related to the color picker inside the RadEditor.  We are loading the tool from an xml file like this:

<tools name="MainToolbar" dockable="true" enabled="true">
     <tool name="ForeColor" />
</tools>

And later are loading colors like this: 
<colors>
    <color value="#0079c3" />
 </colors>

How do we load the default preset colors along with our custom color?
<colors>
    <color value="#0079c3" />
    <color value="presets" />
</colors>

Thanks much!
Slav
Telerik team
 answered on 08 Oct 2013
1 answer
107 views

Team,

 

I am trying to implement search functionality by using one radsearchbox and radorgchart.on the client side method i want to do the search functionality happened nd correspondign node drilldown should happen.am successful in getting the serch text from UI and finding the same by using rocBCItem.But from there how to get hierrchicl index to call orgchart.drilldownnode method?

Peter Filipov
Telerik team
 answered on 08 Oct 2013
1 answer
71 views
Hello.

Somebody can tell me what is going on with my radeditor? After the "end" of the control, strange lines are appearing (like the picture shows).

Regards.
Marin Bratanov
Telerik team
 answered on 08 Oct 2013
1 answer
89 views
HI , Telerik Support Team

I need to add PeekTemplate  (<img src="../../Img/Wide/img_edit.png" alt="" />)
to RadIconTile on Server-side
Below is my code :
RadIconTile rIcon = new RadIconTile();
rIcon.Target = "_blank";
rIcon.NavigateUrl = "http://google.com";
rIcon.Shape = TileShape.Wide;
rIcon.ImageUrl = "img/menu/icon_editor.png";
rIcon.BackColor = System.Drawing.Color.Green;
rIcon.Title.Text = "editor";
rIcon.PeekTemplateSettings.Animation = PeekTemplateAnimation.Slide;
rIcon.PeekTemplateSettings.ShowInterval = 4000;
rIcon.PeekTemplateSettings.CloseDelay = 3000;
rIcon.PeekTemplateSettings.AnimationDuration = 800;
rIcon.PeekTemplateSettings.ShowPeekTemplateOnMouseOver = true;
rIcon.PeekTemplateSettings.HidePeekTemplateOnMouseOut = true;
rIcon.PeekTemplateSettings.Easing = "easeOutExpo";
 
rMenu.Groups[0].Tiles.Add(rIcon);

Thx. Nitisak
Marin Bratanov
Telerik team
 answered on 08 Oct 2013
1 answer
290 views
I have a RadWindow that scrolls vertically, since its content is rather long.

Is there a way to set the scroll position inside of the radwindow via javascript? Specifically I want to scroll to the top of the radwindow after a user clicks a button within it.
Marin Bratanov
Telerik team
 answered on 08 Oct 2013
11 answers
127 views
Hi.

We've recently updated our telerik version to 2013.1.417 and an usual issue has started to occur (using the same that worked fine prior to the update).

Basically, when I edit the html and have an element that covers multiple lines where the line break is within the setting of the property then it is interpreted as text when returning to the design tab.

An example of the html I have been using is :
<h1 style="display:block;
font-size:12px">Example</h1>

If anyone has had any similar issues, any information would be highly appreciated.

Thanks

Additional Details
To test whether I was definitely correct about the break occurring due to upgrading the telerik version, I downgraded to 2012.1.215 and the issue was eradicated.
Ianko
Telerik team
 answered on 08 Oct 2013
2 answers
277 views
I have a requirement where the exported pdf file has to have a totally different layout from the grid on the web page.
Therefore, in codebehind in the PdfExporting event i manually create the html that is used to generate the pdf file.
This works fine except for the border color. No matter what i do, i can't seem to change the color from its default black.
I tried many variations of export settings (BorderType, BorderStyle and BorderColor) and styles on the (nested) tables themselves.
Below is the generated html for one item.
<table style='background-color:#fff4d8;border:1pt solid #cccccc;padding:4px;font-family:Segoe UI;width:100%;margin:0px'><colgroup><col /></colgroup><tr><td><table style='width:100%;page-break-inside:avoid' cellpadding='0' cellspacing='0'><colgroup><col style='width:50px' /><col /><col style='width:40px' /><col style='width:6px' /><col style='width:150px' /></colgroup>
<
tr style='height:26px'><td style='font-size:0.8em;font-weight:bold;color:#92107b'>Risico:</td><td style='border-right:1pt solid #cccccc;font-weight:bold;font-size:0.8em;color:#92107b'>Schade door een slechte of onjuiste betonkwaliteit.</td><td style='background-color:#CCFF11;border-top:1pt solid #cccccc;border-right:1pt solid #cccccc;font-size:0.6em;text-align:center;vertical-align:middle'>prioriteit:<br /><b>4</b></td><td></td><td></td></tr>
<
tr style='height:10px'><td></td><td style='background-color:#fff;border-top:1pt solid #cccccc;border-left:1pt solid #cccccc;border-right:1pt solid #cccccc'></td><td style='background-color:#fff;border-top:1pt solid #cccccc;border-right:1pt solid #cccccc'></td><td></td><td rowspan='4' style='overflow:hidden'><img src='http://localhost:1545/ResultImages\7\314.png' style='width:150pxpx;height:150pxpx' /></td></tr>
<
tr style='height:24px'><td style='font-size:0.8em;font-weight:bold;color:#92107b'>Vraag:</td><td style='background-color:#fff;border-left:1pt solid #cccccc;border-right:1pt solid #cccccc;color:#000088;font-size:0.8em;font-weight:bold;padding-left:4px'>21 Het beton leveren met een KOMO-productcertificaat</td><td style='background-color:#008800;border-right:1pt solid #cccccc;border-top:1pt solid #cccccc;border-bottom:1pt solid #cccccc;font-size:0.7em;text-align:center;vertical-align:middle'>Goed</td><td></td></tr>
<
tr style='height:20px'><td style='font-size:0.8em;font-weight:bold;color:#92107b'>Antwoord:</td><td style='background-color:#fff;border-left:1pt solid #cccccc;border-right:1pt solid #cccccc;color:#000088;font-size:0.8em;font-weight:bold;padding-left:4px'>Er is een KOMO-pruductcertificaat afgegeven.</td><td style='background-color:#fff;border-right:1pt solid #cccccc'></td><td></td></tr>
<
tr><td></td><td style='background-color:#fff;border-bottom:1pt solid #cccccc;border-right:1pt solid #cccccc;border-left:1pt solid #cccccc;font-size:0.7em;padding-left:4px;padding-top:4px;padding-bottom:6px'>De kwaliteit van het beton ten behoeve van de druklaag / opstortlaag van de begane grond vloer voldoet aan de in het bestek gestelde voorwaarden en eisen. Conform het bestek is het beton geleverd met een KOMO-productcertificaat. Een kopie van het KOMO-productcertificaat is echter nog niet ter bevestiging afgegeven.</td><td style='background-color:#fff;border-right:1pt solid #cccccc;border-bottom:1pt solid #cccccc'></td><td></td></tr>
</
table>
All items are wrapped inside a table that also has the same borderstyle as the inner table.
Below are the exportsettings:
<Pdf BorderType="AllBorders" BorderStyle="Thin" BorderColor="#cccccc"

What am i doing wrong here?
Michael Bakker
Top achievements
Rank 2
 answered on 08 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?