Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Hello. 
I have noticed that when I pass:
<pre>
&#60;a&#62;test&#60;/a&#62;
</pre>

or

<pre>
&lt;a&&gt;test&lt;/a&gt;
</pre>

into the editor it automatically converts it to the following when I look in the HTML view:

<pre>
<a>test</a>
</pre>

Is there a way that I can configure the editor to not automatically decode my < and > symbols?

I am currently using the 2010.2.929.35 release.

thanks.
Rumen
Telerik team
 answered on 24 Mar 2011
1 answer
253 views
Hi,

For my reporting purpose I am using telerik grid, however, I am blocked in one area.

My requirement is:

Suppose I have grid for Employee list with individual details like, Name, designation, joining date which contains single value. Now I have some columns which contains more than 1 value. I have created relational table to  store those values against employeeID.
For this we'll take an example of Languages:
For employee I have added 3 languages with each proficiency level
Language Proficiency Level
------------   ---------------------
English  Fluent
Portugal  Conversational
Hindi   Native 

so in employee table there is one record and in relational table record as like above
Now when I will show record into grid, client is expecting like this
Employee Name  Designation                    Languages
ABC                        Software Engineer           English-Fluent; Portugal-Conversational; Hindi-Native

Is it possible to do this. There are other work around for this like cursor, temp table or in C# code. But I want to do this single query if possible.

Please help me out.

Regards,
Avinash
                                               


Pavlina
Telerik team
 answered on 24 Mar 2011
4 answers
194 views

.Net 3.5
Telerik 2010.3.1317.35

I have a datagrid that has defined columns, and autogenerated columns are set to false,
The dataseource is a datatable and all my databindings are set on datatextfields.

on itemdatabound i compare two of the fields ((int)maxRead and (int)maxNote) and depending on the result i set the row font to bold (to show unread posts)

but as soon as i group any of the columns i get,
"maxRead is neither a DataColumn nor a DataRelation for table GroupedTable0."

I tried adding the maxRead as a defined column in the grid but that gave the same result.

heres my code,
i get the error on the "if ((int)drw["maxRead"] != (int)drw["maxNote"

])'" row below.

 

 

 

 

 

 

protected void grCaseList_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item.DataItem is DataRowView)
        {
            DataRowView drw = (DataRowView)e.Item.DataItem;
            if ((int)drw["maxRead"] != (int)drw["maxNote"])
            {
                e.Item.Font.Bold = true;
            }
        }
    }


<telerik:RadGrid ID="grCaseList" runat="server" Skin="Windows7" 
    AllowPaging="True" AllowSorting="True" GridLines="None" ShowGroupPanel="True" 
        Width="100%" AutoGenerateColumns="False" 
        onitemdatabound="grCaseList_ItemDataBound">
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Windows7"></HeaderContextMenu>
  
    <MasterTableView EnableColumnsViewState="false">
        <CommandItemSettings ExportToPdfText="Export to Pdf">
        </CommandItemSettings>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridHyperLinkColumn DataTextField="cs_id" DataType="System.Int32" 
                FilterControlAltText="Filter cs_id column" HeaderText="ID" 
                UniqueName="cs_id" DataNavigateUrlFields="caseUrl">
            </telerik:GridHyperLinkColumn>
            <telerik:GridHyperLinkColumn DataTextField="cs_header" 
                FilterControlAltText="Filter cs_header column" HeaderText="Rubrik" 
                UniqueName="cs_header" DataNavigateUrlFields="caseUrl">
            </telerik:GridHyperLinkColumn>
            <telerik:GridHyperLinkColumn DataTextField="nt_us_name" 
                FilterControlAltText="Filter nt_us_name column" HeaderText="Senast ändrad av" 
                UniqueName="nt_us_name">
            </telerik:GridHyperLinkColumn>
            <telerik:GridDateTimeColumn DataField="cs_timePosted" 
                FilterControlAltText="Filter cs_timePosted column" HeaderText="Inlagt" 
                UniqueName="cs_timePosted" DataFormatString="{0:yy-MM-dd hh:mm}">
            </telerik:GridDateTimeColumn>
            <telerik:GridDateTimeColumn DataField="cs_timePlanned" 
                DataType="System.DateTime" FilterControlAltText="Filter cs_timePlanned column" 
                HeaderText="Planerat" UniqueName="cs_timePlanned" DataFormatString="{0:yy-MM-dd hh:mm}">
            </telerik:GridDateTimeColumn>
            <telerik:GridDateTimeColumn DataField="cs_timeClosed" 
                FilterControlAltText="Filter cs_timeClosed column" HeaderText="Avslutat" 
                UniqueName="cs_timeClosed" DataFormatString="{0:yy-MM-dd hh:mm}">
            </telerik:GridDateTimeColumn>
            <telerik:GridBoundColumn DataField="cs_fromIP" 
                FilterControlAltText="Filter cs_fromIP column" HeaderText="IP" 
                UniqueName="cs_fromIP">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="cs_fritext" 
                FilterControlAltText="Filter cs_fritext column" HeaderText="Fritext" 
                UniqueName="cs_fritext">
            </telerik:GridBoundColumn>
            <telerik:GridHyperLinkColumn DataTextField="cs_fromComputerName" 
                FilterControlAltText="Filter cs_fromComputerName column" HeaderText="Dator" 
                UniqueName="cs_fromComputerName">
            </telerik:GridHyperLinkColumn>
            <telerik:GridBoundColumn DataField="st_name" 
                FilterControlAltText="Filter st_name column" HeaderText="Status" 
                UniqueName="st_name">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ty_name" 
                FilterControlAltText="Filter ty_name column" HeaderText="Typ" 
                UniqueName="ty_name">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="prio" 
                FilterControlAltText="Filter prio column" HeaderText="Prio" UniqueName="prio">
            </telerik:GridBoundColumn>
            <telerik:GridDateTimeColumn DataField="nt_timePosted" 
                FilterControlAltText="Filter nt_timePosted column" HeaderText="Uppdaterad" 
                UniqueName="nt_timePosted" DataFormatString="{0:yy-MM-dd hh:mm}">
            </telerik:GridDateTimeColumn>
            <telerik:GridHyperLinkColumn DataTextField="cs_us_name" 
                FilterControlAltText="Filter cs_us_name column" HeaderText="Inlagt av" 
                UniqueName="cs_us_name">
            </telerik:GridHyperLinkColumn>
            <telerik:GridHyperLinkColumn DataTextField="adm_ad_username" 
                FilterControlAltText="Filter adm_ad_username column" HeaderText="Ansvarig" 
                UniqueName="adm_ad_username">
            </telerik:GridHyperLinkColumn>
            <telerik:GridBoundColumn DataField="maxRead" 
                FilterControlAltText="Filter maxRead column" HeaderText="maxRead" 
                UniqueName="maxRead" Visible="False">
            </telerik:GridBoundColumn>
        </Columns>
  
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
    </MasterTableView>
    <ClientSettings AllowDragToGroup="True">
    </ClientSettings>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>


Page load,
dsHelpdeskG2.caseListDataTable dtCases = null;
  
if (((AdManager.UserInfo)Session[Common.userSession]).Status == AdManager.LoginStatus.User)
{
    dsHelpdeskG2TableAdapters.caseListTableAdapter taCases = new dsHelpdeskG2TableAdapters.caseListTableAdapter();
dtCases = taCases.caseListUser(((AdManager.UserInfo)Session[Common.userSession]).AnstId);
}
grCaseList.DataSource = dtCases;
grCaseList.DataBind();
Christian
Top achievements
Rank 1
 answered on 24 Mar 2011
3 answers
213 views
Well, that's basically what I want to do. I want to programmatically create PageViews on the server side, along with tabs. Couldn't find an example for the views. Any help?
Helen
Telerik team
 answered on 24 Mar 2011
5 answers
84 views
Take the following code and paste it into the editor in HTML mode...
<html>
    <head>
        <title></title>
        <style type="text/css">
            OL LI {LIST-STYLE-TYPE: upper-roman;}
            OL LI OL LI {LIST-STYLE-TYPE: upper-alpha;}
            OL LI OL LI OL LI {LIST-STYLE-TYPE: decimal;}
        </style>
    </head>
    <body>
        <ol>
            <li>Test...
            <ol>
                <li>add sub bullet after this item...
                </li>
                <li>it most likely got formatted with an "A" and not a "1"<br />
                <ol>
                    <li>It should have been a 1 like this line</li>
                </ol>
                </li>
            </ol>
            </li>
        </ol>
    </body>
</html>
Flip back to design view and it looks great. Then in design view add a sub bullet to bullet A. It will be formatted with an "A" instead of a "1" that the css style defines. But, if you switch back to HTML view and then back to Design view the formatting is correct. Am I doing something wrong or is this a known issue?
Rumen
Telerik team
 answered on 24 Mar 2011
3 answers
98 views
Hello

I installed the new 2011 Q1 telerik dll and now radfileexplorer dosent work. If I build a webpage only containing radscriptmanager and the fileexplorer like this:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
  <Scripts>
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
  </Scripts>
</telerik:RadScriptManager>
<div>
<telerik:RadFileExplorer ID="fileexplorer1" runat="server" Width="500" Height="500"></telerik:RadFileExplorer>
</div>

I get this error:

No property or field 'error' exists in type 'DataRowView'


What could be the reason for this?
Dobromir
Telerik team
 answered on 24 Mar 2011
2 answers
421 views
V Q1/2011

I could not find in the documentation an explanation for the callbackFnName parameter of RadWindowManager.RadAlert.
It works for me when I have null there, but I am just guessing.


Svetlina Anati
Telerik team
 answered on 24 Mar 2011
1 answer
65 views
hi

i want to get loading panel on radgrid selected index changed event how to do it
Shinu
Top achievements
Rank 2
 answered on 24 Mar 2011
1 answer
213 views
I have several RadNumericTextBoxes with Skin="", using the RadFormDecorator to apply the "Telerik" skin.  That is working fine.  However, when I try to show spin buttons - they are there, but invisible.  I can click to the right of the numeric text box and the numbers change up and down, but I can't see the arrows.  If I change the Skin to ="Telerik", the spin icons show up but the textbox does not skin, it goes back to standard textbox format.  Can anyone help me figure out how to get the spin boxes to show?  Thanks.

<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server"
           DecoratedControls="All" Skin="Telerik" />
 
                 <table id="FormTable" cellspacing="2" cellpadding="1" width="100%" border="2" rules="none"                      
                       style="border-collapse: collapse;"  frame="border" bgcolor="#EBEBEB">
                       <tr class="EditFormHeader">
                           <td style="font-size: small">
                               <b>Group Details</b>
                           </td>
                       </tr>    
                           <tr>
                           <td>
                               <table id="Table5" border="0" cellpadding="1" cellspacing="1" class="module"
                                           width="100%">
                                           <tr>
                                               <td>
                                               </td>
                                               <td>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td>
                                                   Meter Group:
                                               </td>
                                               <td>
                                                   <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("GroupName") %>'>
 
                                           </asp:TextBox>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td>
                                                   Number of Meters in this Group:
                                               </td>
                                               <td>
                                               <telerik:RadNumericTextBox ID="rntbNbrUpgrade" Type="Number" runat="server"
                                                   DbValue='<%# Bind("NbrUpgrade") %>' Width="70px" 
                                                       NumberFormat-DecimalDigits="0" Skin="" Class="grideditcol1input" ShowSpinButtons="true">
                                               </telerik:RadNumericTextBox>
                                               </td>
                                           </tr>
                                       </table>
                                      
                                   </td>
                               </tr>
Martin
Telerik team
 answered on 24 Mar 2011
3 answers
173 views

I am trying to setup a datagrid inside a RadPanelItem template.
my setup is as follows (code is abreviated up to the grid)

<telerik:RadPanelBar> 
<Items> 
<telerik:RadPanelItem> 
<Items> 
<telerik:RadPanelItem> 
<ItemTemplate> 
<telerik:RadGrid ID="rgrdNBDetail" runat="server" GridLines="None" AutoGenerateColumns="false" PageSize="10">  
<ClientSettings> 
  <Scrolling AllowScroll="false" /> 
  <ClientEvents OnRowClick="rGrid_RowClick"/>  
</ClientSettings> 
<MasterTableView ClientDataKeyNames="ID">  
<Columns> 
<telerik:GridBoundColumn DataField="ID" Visible="false"</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="SPCX" Visible="false">
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="SPCY" Visible="false">  
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="Name" DataField="SiteName"/>  
<telerik:GridBoundColumn HeaderText="Distance" DataField="Distance"/>  
</Columns> 
</MasterTableView> 
<PagerStyle AlwaysVisible="false" /> 
</telerik:RadGrid> 
</ItemTemplate> 
</telerik:RadPanelItem> 
</Items> 
</telerik:RadPanelItem> 
... 

Notice I am not declaring a datasource as I will be binding this grid through a webservice on the client side.  After the webservice is called and I attempt to databind the grid, var tableView = datagrid.get_masterTableView();  it is not returning a tableView (value is null).
...   
var item = panelbar.findItemByValue('NBDetail');  
var datagrid = item.findControl('rgrdNBDetail');  
var tableView = datagrid.get_masterTableView();  
tableView.set_dataSource(data);  
tableView.dataBind();  
tableView.set_virtualItemCount(data.count);  
... 

What do I need to do to enable clientside databinding on the grid object inside the radPanelItem template?  It's appears that the TableView is not being created server side when it is located inside the template so I can not get a reference to it. (I moved the grid outside the panel and it works fine)  Is this the correct way to go about accomplishing this task?

Nikolay Rusev
Telerik team
 answered on 24 Mar 2011
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?