Hello Everyone,
I am binding the Grid inside a loadHeader method and inside that method, I need to call an event called raIseChangedEvent. Inside raiseChangedEvenet, I need to find the label control inside the gridview and get the value of it. I am not sure how to do this. I did this long time ago using asp grid, but here with radGrid, I don't know how to do this. below is my code
public loadHeader()
{
RadGrid_Header.DataSource = HeaderList;
RadGrid_Header.DataBind();
RaiseChangedEvent();
}
protected void RaiseChangedEvent()
{
// This is what i did with asp.net gridview
grd_view_tracking.SelectedIndex = 0;
GridViewRow selected_row = grd_view_tracking.SelectedRow;
string job_seq_text_val = ((Label)selected_row.FindControl("lbl_job_seq")).Text;
}
How can I get the value of job_seq_text_val in RadGrid.
Any help will be greatly appreciated
Hi
I Have the following DataSet structure:
Price__MakeID__SourceID__Day
100______1________1_______1
101______1________1_______2
101______1________1_______3
101______1________1_______4
101______1________1_______5
101______1________1_______6
102______1________1_______7
102______1________1_______8
102______1________1_______9
100______1________2_______1
102______1________2_______2
102______1________2_______3
102______1________2_______4
103______1________2_______5
103______1________2_______6
102______1________2_______7
101______1________2_______8
100______1________2_______9
100______2________1_______1
101______2________1_______2
101______2________1_______3
101______2________1_______4
101______2________1_______5
101______2________1_______6
102______2________1_______7
102______2________1_______8
102______2________1_______9
100______2________2_______1
102______2________2_______2
102______2________2_______3
102______2________2_______4
103______2________2_______5
103______2________2_______6
102______2________2_______7
101______2________2_______8
100______2________2_______9
Basically I am tracking the price of products from a number of sources over a number of days.
How would I bind this dataset to a Line Grid so that the y axis shows the price, the x axis shows the Day and lines on the grid show the variation in price by make (different color line for each source)
Any pointers would be great!
Thanks
I have a pretty simple grid that I want the users to be able to expand the row for more information. The issue I am having is that the default ExpandCollapseColumn the grid drops in is something like 100px wide (maybe wider) and shows images of both a right-pointing icon and a left-pointing icon (e.g. " > < ").
The following is my grid declaration:
<telerik:RadGrid runat="server" ID="grdResults" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" GridLines="None" OnNeedDataSource="grdResults_NeedDataSource" >
<MasterTableView DataKeyNames="ClaimId" CommandItemDisplay="None" PageSize="50" Width="100%" HierarchyLoadMode="ServerOnDemand">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Position="Bottom" />
<Columns>
<telerik:GridBoundColumn UniqueName="claimIdColumn" DataField="ClaimId" HeaderText="" Visible="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="policyIdColumn" DataField="PolicyId" HeaderText="" Visible="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="carrierIdColumn" DataField="CarrierId" HeaderText="" Visible="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="fileNumberColumn" DataField="FileNumber" HeaderText="File Number"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="carrierNameColumn" DataField="CarrierFormattedName" HeaderText="Carrier Name"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="carrierPolicyNumberColumn" DataField="PolicyNumber" HeaderText="Policy Number"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="carrierClaimNumberColumn" DataField="ClaimNumber" HeaderText="Claim Number"></telerik:GridBoundColumn>
<telerik:GridDateTimeColumn UniqueName="lossDateColumn" DataField="LossDate" HeaderText="Date of Loss" DataFormatString="{0:M/d/yyyy}"></telerik:GridDateTimeColumn>
<telerik:GridBoundColumn UniqueName="insuredNameColumn" DataField="PolicyHolderDisplayName" HeaderText="Insured Name"></telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="lossCityStateColumn" HeaderText="Loss Location" SortExpression="Location">
<ItemTemplate>
<%# Eval("LossCity") %>, <%# Eval("LossState") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn UniqueName="lossPostalColumn" DataField="LossPostal" HeaderText="Loss ZIP"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="lossCatNumber" DataField="CatNumber" HeaderText="CAT No."></telerik:GridBoundColumn>
</Columns>
<NestedViewSettings>
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="ClaimId" MasterKeyField="ClaimId" />
</ParentTableRelation>
</NestedViewSettings>
<NestedViewTemplate>
<asp:Panel runat="server" ID="pnlDetails" BackColor="Ivory" >
<fieldset style="padding:10px;">
Details will go here.
</fieldset>
</asp:Panel>
</NestedViewTemplate>
<NoRecordsTemplate>
No data found
</NoRecordsTemplate>
</MasterTableView>
</telerik:RadGrid>
Searched through the forum for answers and everything I have tried doesn't seem to work. There is one thread that suggests setting the MasterTableView-ExpandCollapseColumn-HeaderStyle-Width in the grid declaration but that was unsuccessful. In addition, there were various suggestions of changing the width on OnColumnCreated event but that too did not work.
I have the 2011 Q1 Release of the tools and am running IE8 (both compatibility mode on and off). Any kind of help would be greatly appreciated.
~ Jon
Hi,
I am having an issue getting the dialogs to work for the RadEditor. When I click one of the icons that use Dialogs I get the dialog but the "Insert" button does nothing. I added the path properties to the RadEditor and added images to those folders. The dialog that shows has the formatted columns and the "insert" button but nothing else.
<
telerik:RadEditor>
runat="server" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"
Skin="Default" AllowScripts="true" EditModes="All"
AutoResizeHeight="true" EnableResize="true" ImageManager-UploadPaths="~/Content/images/pages"
DocumentManager-UploadPaths="~/Content/images/pages" MediaManager-UploadPaths="~/Content/images/pages"
TemplateManager-UploadPaths="~/Content/images/pages">
<
Content
>
</
Content
>
<
ImageManager
UploadPaths
=
"~/Content/images/pages"
/>
<
DocumentManager
UploadPaths
=
"~/Content/images/pages"
ViewPaths
=
"~/Content/images/pages"
/>
<
MediaManager
UploadPaths
=
"~/Content/images/pages"
/>
<
TemplateManager
UploadPaths
=
"~/Content/images/pages"
/>
<
CssFiles
>
<
telerik:EditorCssFile
Value
=
"~/Content/css/EditorContentArea.css"
/>
</
CssFiles
>
</telerik:RadEditor>