Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
183 views
i need to chage Add new record to another word. how do i change it.
Princy
Top achievements
Rank 2
 answered on 04 May 2011
2 answers
152 views
Following the help from http://www.telerik.com/help/aspnet-ajax/grdselfreferencinghierarchy.html, I cannot seem to find a FilterExpression that works with my data source.  I am using the NeedDataSource event to set the data source like this:

dcConnections dc = new dcConnections();
g.DataSource = dc.GetMetrics();

dcConnections is my DataContext, GetMetrics is a stored procedure that returns a list of Metrics.  The Metrics have an ID and ParentID, both of which are Guids.  ParentID can be null.  So, from the example, I tried to set the FilterExpression like this:

if (Assembly.GetAssembly(typeof(ScriptManager)).FullName.IndexOf("3.5") != -1 || Assembly.GetAssembly(typeof(ScriptManager)).FullName.IndexOf("4.0") != 1)
{
    g.MasterTableView.FilterExpression = @"it[""ParentID""] == null";
}
else
{
    g.MasterTableView.FilterExpression = "ParentID IS NULL";
     
}

This errors out with "No applicable indexer exists in type 'Metric'", which makes sense, since I need to use the it.ParentID format to get to the column in the Metric normally, so I change it to this:

g.MasterTableView.FilterExpression = @"it.ParentID == null";

That errors with "Operator '==' incompatible with operand types 'Guid?' and 'Object'".

So now, I can't figure out how to compare the values of a Guid? in a FilterExpression.  Normally, using == null would work for Nullable Guids.  Any suggestions?
Silvio Silva Junior
Top achievements
Rank 2
 answered on 03 May 2011
2 answers
196 views
I am using the grid view control and saving the grid rows to excel.
I was wondering if there is a way to specify the name of the file programatically and to not take it from the user.
The below function call always opens the Save As dialog -
                  RadGrid1.MasterTableView.ExportToExcel();

Any ideas would be greatly appreciated.
-Shilpa.
Shilpa
Top achievements
Rank 1
 answered on 03 May 2011
2 answers
80 views
Hi Everyone,

  Is it possible to put two rows of checkeboxes in a listbox. i can put one row like it is shown in a demo, but i want two rows. Is it possible to do that?

I was following this example, but I need two rows instaed of one.


http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/checkboxes/defaultcs.aspx
Anjali
Top achievements
Rank 1
 answered on 03 May 2011
2 answers
51 views
I have a tab strip that does autopostback.  I would like the user to be able to re-click the selected tab and have that scenario cause an autopostback too, so that I can refresh the data on the page.  Currently the selected tab turns the user's mousepointer to a finger, indicating it can be clicked, but it doesn't do anything when the user clicks it.  There is no postback.
Mike
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
122 views
Hello,

I have a tooltip inwhich radgrid is embaded. I observed image column width is too big. though the column width is fixed to 2% its not reducing. Is there any other way to reduce the column width ?

<telerik:RadGrid ID="rg_tt_CSMD_Backlog_By_Status_FL" runat="server" AllowSorting="false"
GridLines="None" AllowPaging="true" BorderStyle="NotSet" Height="99.9%"
Width="99.9%" OnNeedDataSource="rg_tt_CSMD_Backlog_By_Status_FL_NeedDataSource"
OnItemDataBound ="rg_tt_CSMD_Backlog_By_Status_ItemDataBound" AutoGenerateColumns="false" HeaderStyle-Wrap="false">
<MasterTableView DataKeyNames="CASES" CommandItemDisplay="None" TableLayout="Auto"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
<Columns>
<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="imageCol" HeaderStyle-Width="2%" >
<ItemTemplate>
<a href="../CustomerSupport/CaseViewer.aspx?ID=<%#Eval("CASES")%>">
<asp:Image ImageUrl="~/Images/case.png" ID="imgTest" runat="server" BorderWidth="0px" />
</a>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="CASES" HeaderText="CASE" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="10%"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="imageappSerial" HeaderStyle-Width="2%">
<ItemTemplate>
<a href="../AccountManagement/ProductViewer.aspx?ID=<%#Eval("SERIAL")%>">
<asp:Image ImageUrl="~/Images/server_database.png" ID="imgTest" runat="server" BorderWidth="0px" />
</a>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="appSERIAL" HeaderText="SERIAL" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="10%"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="SITE" HeaderText="SITE" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="35%"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="SUMMARY" HeaderText="SUMMARY" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="48%"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings>
</ClientSettings>
</telerik:RadGrid>

Tooltip code:
<telerik:RadToolTipManager ID="ttm_CSMD_Backlog_By_Status_FL" runat="server" EnableShadow="true"
Animation="Resize" HideEvent="ManualClose" Height="70" Width="75" OnAjaxUpdate="OnAjaxUpdate"
Position="BottomCenter" RelativeTo="Element" OffsetY="0" OnClientResponseEnd="OnClientResponseEnd">
</telerik:RadToolTipManager>

Pavlina
Telerik team
 answered on 03 May 2011
4 answers
150 views
Hi,

How would I hide DetailTables inside RadGrid when the datasource from database has no records?
Any help is much appreciated. We are using Q3 2009.
Thanks,
BC.
BC
Top achievements
Rank 1
 answered on 03 May 2011
2 answers
57 views
I have the newest version of Telerik ASP.Net Ajax controls, and when I enable the export to excel button, I get no button added to the control.  Do I have to do this manually? 
What is the process to add the export to excel function to the grid?
Andrew
Top achievements
Rank 1
 answered on 03 May 2011
2 answers
112 views
I've got a page that has two different type of UserControls on it.  Each UserControl has a RadToolTipManager, and each one can be used multiple times on the same page.  When that happens, the tooltips load the data, but they disappear as soon as the data is done loading, so the user never sees what is loading.  I think it's clear that I can't have multiple RadToolTipManagers with the same ID on the same page.  But I'm trying to figure out the best way to resolve this...?

Here's the structure of the page:
MasterPage 
    Page.aspx  
        UserControl1.ascx (ToolTipMgr1) 
        UserControl2.ascx (ToolTipMgr2) 
        UserControl2.ascx (ToolTipMgr2)
        UserControl2.ascx (ToolTipMgr2)

Is there a way for me to out the ToolTipMgr in the Page, or the MasterPage, and then add the target controls to it programmatically from the user controls?  That would allow me to have one ToolTipManager for the entire page...

Thanks for your help!
Eddie
Software
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
225 views
Hello,

We bind boolean values and it translates the value to True/False (via the ToString()) method.  We often write code to translate this to Yes/No.  Is there an easy way in markup to translate the True/False to Yes/No, or does this always have to be in code?  If via the GridCheckBoxColumn, maybe?

Thanks.
Sebastian
Telerik team
 answered on 03 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?