Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
421 views
Hello,

When I switch to designer view in VS2008 with at radgrid on the page I am receiving following error. "Error Creating Template Groups. Reason:System.InvalidCastException"

I have attached the complete error for reference. As suggested in pervious posts, I cleared all the Project assemblies, temporary files in Microsoft.NET\Framework\v2.0.50727 folder and checked all the references.

Any help is appreciated.

Thanks,
Teja.
Pavlina
Telerik team
 answered on 12 Aug 2014
2 answers
219 views
In the header of my group by, I have the text and direction of sort of the column being grouped by.

http://i.imgur.com/VEUtVC9.png is an image of what I have now.

Instead of DateAdded I would like to be able to change it to something else.

Is there a way to do this? I have been googling around and haven't found much of anything at all.

Any help/guidance is appreciated!
Alexander
Top achievements
Rank 1
 answered on 12 Aug 2014
1 answer
203 views
How to have multiple VirtualItemCount in radgrid? In my radgrid table that have a hierarchy structure. It has a parent and child and child below child. I want paging in radgrid differ based on the level. I am already paging the parent, but the problem is the child paging also follow the parent page. Example:

Image below shows that POST contains 8 items and has 2 pages. It is correct, but the COMMENTS's paging also follow the post one. It is wrong. Actually the comments for that post only contain 2 items and the page for comment should have only one.'To calculate the total items of post by this code:
 protected void countData()
{
string sql = "SELECT * FROM VIEW_POST";
DataTable dtTotalData;
objDBInterface.strConn = mag.ConnStr();
dtTotalData = objDBInterface.getResults(sql);
totalDataIs = dtTotalData.Rows.Count.ToString();
VirtualItemCount = Convert.ToInt16(totalDataIs.ToString());
pageNeeded = Convert.ToInt16(totalDataIs) / FBGrid.PageSize;
return;
}
And set the radgrid VirtualItemCount by this code on page load:
FBGrid.VirtualItemCount = VirtualItemCount;

Please anybody help me how to handle this situation. Thanks in advance.
Konstantin Dikov
Telerik team
 answered on 12 Aug 2014
2 answers
205 views
Hi, I have a custom gridcolumn inherited from GridBoundColumn. All columns are sortable in my grid except this.
I couldn't find why. Could you help me?


Public Class GridActivePassiveColumn
        Inherits GridBoundColumn
   ...
End Class

<%--Sorting doesn't work--%>
<myCompany:GridActivePassiveColumn HeaderText="Free of Charge" DataField="FlFoc" SortExpression="FlFoc">
    <HeaderStyle Width="35px" />
    <ItemStyle HorizontalAlign="Center" />
</myCompany:GridActivePassiveColumn>
 
<%--Sorting works--%>
<telerik:GridBoundColumn HeaderText="Free of Charge" DataField="FlFoc" SortExpression="FlFoc">
    <HeaderStyle Width="35px" />
    <ItemStyle HorizontalAlign="Center" />
</telerik:GridBoundColumn>
Mustafa
Top achievements
Rank 1
 answered on 12 Aug 2014
5 answers
415 views
I am trying to add a checkbox list to an itemtemplate for the radmenu. It binds fine but when the page displays the menu item with the checkbox lists is displayed and does not expand collapse.


<telerik:RadMenuItem runat="server" Text="Marketing">  
            <ItemTemplate> 
                <div id="MarketingTemplate">  
                    <div> 
                        Species<asp:CheckBoxList ID="CheckBoxList1" runat="server" DataSourceID="odsSpecies" 
                            DataTextField="Name" DataValueField="Name">  
                        </asp:CheckBoxList> 
                        <asp:ObjectDataSource ID="odsSpecies" runat="server" OldValuesParameterFormatString="original_{0}" 
                            SelectMethod="GetSpeciesList" TypeName="Adisseo.Modules.DocumentManagement.KeywordManager">  
                        </asp:ObjectDataSource> 
                    </div> 
                    <div> 
                        Feed Type<asp:CheckBoxList ID="CheckBoxList2" runat="server" DataSourceID="odsFeedTypes" 
                            DataTextField="Name" DataValueField="Name">  
                        </asp:CheckBoxList> 
                        <asp:ObjectDataSource ID="odsFeedTypes" runat="server" OldValuesParameterFormatString="original_{0}" 
                            SelectMethod="GetFeedTypeList" TypeName="Adisseo.Modules.DocumentManagement.KeywordManager">  
                        </asp:ObjectDataSource> 
                    </div> 
                </div> 
            </ItemTemplate> 
        </telerik:RadMenuItem> 
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2014
6 answers
156 views
Hi,
I am getting design issue with EditorToolGroup on RadEditor  in IE browse.
As shown in bellow image getting some unnecessary space just bellow the tool group.


In chrome and safari its looks good.


Editor properties given,
<telerik:RadEditor ID="textRadEditor" EditModes="Design" runat="server" Width="100%"
                                                        StripFormattingOptions="AllExceptNewLines" EnableResize="false" 
                                                        ContentFilters="None" OnClientPasteHtml="OnClientPlainTextsubmit" Height="550px">
                                                        <tools>
                                                            <telerik:EditorToolGroup>
                                                                <telerik:EditorTool Name="convertToTEXT" Text="Convert HTML to TEXT" ShowText="true"
                                                                    ShowIcon="false" />
                                                                <telerik:EditorSeparator />
                                                                <telerik:EditorTool Name="InsertEditorLinks" ShowIcon="false" ShowText="true" Text="Insert Link" />
                                                            </telerik:EditorToolGroup>
                                                        </tools>
                                                        <cssfiles>
                                                            <telerik:EditorCssFile Value="~/Editor/RadEditorTools/EditorContentArea.css" />
                                                        </cssfiles>
                                                    </telerik:RadEditor>  

Any idea to solve this design issue.
Thank you in Advance.







Ianko
Telerik team
 answered on 12 Aug 2014
2 answers
129 views
Hi!

I'm setting the default text in the radsearchbox serverside. how can I perform a automatic dropdown with search results of the radsearchbox?

is it possible to trigger the ondatarequest event with javascipt?

Thank you!

Bernie
Top achievements
Rank 1
 answered on 12 Aug 2014
1 answer
140 views
Hi,

I am unable to do filtering on the GridTemplateColumn. 

<telerik:GridTemplateColumn HeaderText="<%$ Resources:UI, EmployeeNotesTab_HeaderText_coContact_Contact %>" UniqueName="Contact" DataField="coContact.ExtFormattedFullName">
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemTemplate>
<asp:Literal ID="lblContact" runat="server" Text='<%# Eval("coContact.ExtFormattedFullName") %>' />
<div>
<small><asp:Label ID="lblFormattedPhone" runat="server" CssClass="darkBlueFont" Text='<%# GetFormattedPhone(Eval("coContact")) %>' /></small></div>
<div><small><asp:Label ID="lblContactType" runat="server" CssClass="darkBlueFont" Text='<%# Eval("coContact.coContactType.typeName") %>' /></small></div>
</ItemTemplate>
</telerik:GridTemplateColumn>

coContact.ExtFormattedFullName is throwing "Object reference not set to an instance of an object" NullReferenceException. 

The <asp:Literal> is displaying the data properly in the column. (Attached is the screenshot).

Please share your thoughts as to how this can be fixed.

Regards,
Sriram
Radoslav
Telerik team
 answered on 12 Aug 2014
2 answers
125 views
Hai All,

consider that , i am having one radcombo and one radgrid. if i will change the item in combo means, the appropriate data will load in radgrid.
 
In my radgrid , i have used inline EditItemTemplate.  if i will click (2nd row) edit column means,that row become edit mode. Now i am going to change the comboitem. so that the data in grid will change in comboselectedIndexchange even. But still the 2nd row in edit mode . i have used grid.rebind() too.


how to refresh the row mode when i will reload the grid?
Prabha
Top achievements
Rank 1
 answered on 12 Aug 2014
5 answers
134 views
Hi,
I would like to create a recurring appointment  for rad scheduler, these  master and child appointments should have unique appointment Id in database.
Master and child appointments should be physically present in database table.
I should also be able to edit/delete individual appointment or the series in one shot. Can someone point me to a working sample?

Thanks,
Prava
Boyan Dimitrov
Telerik team
 answered on 12 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?