Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
Hi ..

I'm Facing a problem in my RadGrid which is :

SessionDataSource used in all Edit forms in all demos ... and it is using primarykeyfields and a ( ? ) symbol which gets the selected index DataKeyValue ...

Unfortunately this property ( primarykeyfields  ) does not exist in SqlDataSource .

I'm working on SqlDataSource on my project and I want to use the insert/update/delete commands which use CommandName and SqlDataSource

so..

any help for this problem .... I will be thankful
Shinu
Top achievements
Rank 2
 answered on 04 May 2011
1 answer
81 views
Hello guys.

I'm trying to use self hierarchy, but, I'm having problems. My grid is showing a regristry 2 times in the grid, like:

file1.jpg
file2,jpg
file3.jpg
file3.jpg
file4.jpg
file5.jpg
file6.jpg
file5.jpg
file6.jpg

I'm using this example:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx

What can be wrong?

Regards.
Shinu
Top achievements
Rank 2
 answered on 04 May 2011
4 answers
195 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
187 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
213 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
108 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
70 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
141 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
162 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
69 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?