Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
415 views
hello,

I have a radgrid that contains a MasterTable and a DetailTable. The problem is that I can’t set the orders of the columns in the Mastertable and the DetalTable.
Is it possible to set and save the orders myself instead having the default orders?

Regards, 
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 16 Jan 2013
2 answers
122 views
Hi there,

I know there is another thread asking a similar question, however, i am wondering if it is possible to increase the width/heigh of a single linear RadGauge range.  I've attached a picture of the current width/height.

John
John
Top achievements
Rank 1
 answered on 16 Jan 2013
1 answer
88 views
hi, i learned that there is error in export to PDF when the subject or description of the appointment created in the scheduler have the character "&" within it. anyone facing same issue & how can this be resolved?
Boyan Dimitrov
Telerik team
 answered on 16 Jan 2013
3 answers
222 views
Hello.
How can I show loading Panel, when I click the Update button(EditMode) and hide it after DataBind().
Pavlina
Telerik team
 answered on 16 Jan 2013
1 answer
180 views
When there are none records in the results set . RadGrid last column filter does not show up on the screen (see screenshot attached). It happens only when compatibility view of IE8 is off. However we can NOT set it off in IE8 to continue display other controls in correct fashion (without layout disturbance).

The last column is not getting displayed with filter button (just right of filter text box). When we enter 10-12 characters , only then it appears. Scrolling to rightmost  point is not working.

However , if there are any records exists in grid results then it displays as any other column (except last one) filter as displayed in grid.

Any idea ?

Telerik : 2012.2.815.35
Pavlina
Telerik team
 answered on 16 Jan 2013
1 answer
106 views
Hi,  I'm experiencing a problem with large labels on pie charts where the text is being clipped and can't be seen.  Is there a workaround for this?
Danail Vasilev
Telerik team
 answered on 16 Jan 2013
1 answer
83 views
Hi,

I have a form where I will be uploading a file and filling more details about that file in the form and then saving it to the database. When I open up the form again, it shows all the fields saved, except the attachement of the file I had previously saved. I want to have the image button where in the initial form, the file is saved on and can be retrieved from before closing the form. I am working in vb.net. Any help with this?
Plamen
Telerik team
 answered on 16 Jan 2013
2 answers
127 views
Hi,

Trying to format the information when exported to excel.  Treid following examples online but nothing is working.  What it does now is export but nothing is alligned.  Need all columns centered on export and the gridlines created.  What command do I do this on and what Css works becuase what i am doing is not.

Protected Sub myIssueGrid_ExportCellFormatting(sender As Object, e As ExportCellFormattingEventArgs) Handles myIssueGrid.ExportCellFormatting
       Dim item As GridDataItem = DirectCast(e.Cell.Parent, GridDataItem)
       If item.ItemType = GridItemType.AlternatingItem Then
           item.Style("horizontal-align") = "middle"
       Else
           item.Style("horizontal-align") = "middle"
       End If
   End Sub
 
 
 If e.CommandName = "ExportToExcel" Then
           IsExport = True
           myIssueGrid.Columns(0).Visible = False
       End If
 
 
<CommandItemTemplate>
                                                   <table width="100%">
                                                       <tr>
                                                           <td style="width:50%"><asp:LinkButton ID="lnkTransfer" runat="server" CommandName="Trans" Text="Click to Transfer Items" Font-Underline="true"></asp:LinkButton></td>
                                                           <td  style="width:50%" align="right"><asp:Button ID="btnExport" runat="server" CommandName="ExportToExcel" Text="Export Excel" /></td>
                                                       </tr>
                                                   </table>
                                               </CommandItemTemplate>
Kevin
Top achievements
Rank 1
 answered on 16 Jan 2013
2 answers
139 views
In order to replace all broken image links in my RagGrid, I'm using the following code in my ItemDataBound() event to add the "onError" attribute to my GridImageColumn. The code works great until a Grouping is performed on the RadGrid, which throws an exception of "Specified argument was out of the range of valid values.". Is there any workaround for this? I tried checking if Controls.Count > 0 but then the attribute is never added. 


void uxDirectoryGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        //set the onError attribute to handle images which do not exist
        var imageColumnIndex = e.Item.OwnerTableView.Columns.FindByUniqueName("AccountName").OrderIndex;
        var imageCell = e.Item.Cells[imageColumnIndex];
        var image = imageCell.Controls[0] as Image; //<--- BOMBS OUT HERE: Specified argument was out of the range of valid values
 

 
        if (image != null)
        {
            image.Attributes["onError"] = "this.src='EmployeePhotos/404.jpg'";
        }
    }
}
Debora
Top achievements
Rank 1
 answered on 16 Jan 2013
2 answers
212 views
 I can't figure out how to bind the selected value of an autocompletebox in a radgrid edittemplate.  I suspect it needs to be added to the autoboxes entries collection, possibly server-side, but can't find examples.  Would be great if it was as easy as SelectedValue='<%# Bind("xSemester_ID") %>'


Thanks 



        <telerik:RadGrid ID="rgGuestLecture" runat="server" AutoGenerateColumns="False" CellSpacing="0" DataSourceID="ldsGuestLecture" GridLines="None" ondeletecommand="rgGuestLecture_DeleteCommand" oninsertcommand="rgGuestLecture_InsertCommand" onitemcreated="rgGuestLecture_ItemCreated" onupdatecommand="rgGuestLecture_UpdateCommand">
                <MasterTableView DataSourceID="ldsGuestLecture" CommandItemDisplay="Bottom" DataKeyNames="ID">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="GridEditCommandColumn"></telerik:GridEditCommandColumn>
                        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True" SortExpression="ID" UniqueName="ID" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="FacultyYear_ID" DataType="System.Int32" FilterControlAltText="Filter FacultyYear_ID column" HeaderText="FacultyYear_ID" ReadOnly="True" SortExpression="FacultyYear_ID" UniqueName="FacultyYear_ID" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="xlsRDS_Course_ID" FilterControlAltText="Filter xlsRDS_Course_ID column" HeaderText="xlsRDS_Course_ID" ReadOnly="True" SortExpression="xlsRDS_Course_ID" UniqueName="xlsRDS_Course_ID" DataType="System.Int32" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="xSemester_ID" FilterControlAltText="Filter xSemester_ID column" HeaderText="xSemester_ID" ReadOnly="True" SortExpression="xSemester_ID" UniqueName="xSemester_ID" DataType="System.Int32" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Course_Other" FilterControlAltText="Filter Course_Other column" HeaderText="Course_Other" ReadOnly="True" SortExpression="Course_Other" UniqueName="Course_Other" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ACAD_CAREER" FilterControlAltText="Filter ACAD_CAREER column" HeaderText="ACAD_CAREER" ReadOnly="True" SortExpression="ACAD_CAREER" UniqueName="ACAD_CAREER" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SUBJECT_CD" FilterControlAltText="Filter SUBJECT_CD column" HeaderText="SUBJECT_CD" ReadOnly="True" SortExpression="SUBJECT_CD" UniqueName="SUBJECT_CD" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CATALOG_NBR" FilterControlAltText="Filter CATALOG_NBR column" HeaderText="CATALOG_NBR" ReadOnly="True" SortExpression="CATALOG_NBR" UniqueName="CATALOG_NBR" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="DESCR" FilterControlAltText="Filter DESCR column" HeaderText="DESCR" ReadOnly="True" SortExpression="DESCR" UniqueName="DESCR" Visible="false"></telerik:GridBoundColumn>                
                        <telerik:GridBoundColumn DataField="CourseCode" FilterControlAltText="Filter CourseCode column" HeaderText="Course Code" ReadOnly="True" SortExpression="CourseCode" UniqueName="CourseCode"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Semester" FilterControlAltText="Filter Semester column" HeaderText="Semester" ReadOnly="True" SortExpression="Semester" UniqueName="Semester"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Hours_Count" DataType="System.Decimal" FilterControlAltText="Filter Hours_Count column" HeaderText="Hours Count" ReadOnly="True" SortExpression="Hours_Count" UniqueName="Hours_Count"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Notes" FilterControlAltText="Filter Notes column" HeaderText="Notes" ReadOnly="True" SortExpression="Notes" UniqueName="Notes" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ConfirmText="Are you sure you want to delete this record?"></telerik:GridButtonColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template">
                        <EditColumn UniqueName="eccGuestLecture"></EditColumn>
                        <FormTemplate>
                            <table width="100%" border="0" cellspacing="2" cellpadding="2">
                                <tr>
                                    <td width="25%">Course: </td>
                                    <td width="75%"><telerik:RadAutoCompleteBox ID="racbCourse" runat="server" DataSourceID="ldsRDSCourses" DataTextField="CourseCode" DataValueField="ID" InputType="Text">
                                        <TextSettings SelectionMode="Single"  />
                                        </telerik:RadAutoCompleteBox></td>
                                </tr>
                                <tr>
                                    <td width="25%"><asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="ddlSemester" Display="Dynamic">*</asp:RequiredFieldValidator>Semester: <asp:RequiredFieldValidator ID="RequiredFieldValidator31" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="ddlSemester" Display="Dynamic">*</asp:RequiredFieldValidator></td>
                                    <td width="75%"><asp:DropDownList ID="ddlSemester" Width="50%" runat="server" DataSourceID="ldsSemester" DataTextField="Semester" DataValueField="ID" SelectedValue='<%# Bind("xSemester_ID") %>' AppendDataBoundItems="True"><asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem></asp:DropDownList></td>
                                </tr>
                                <tr>
                                    <td width="25%"><asp:RequiredFieldValidator ID="RequiredFieldValidator32" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="tbHoursCount" Display="Dynamic">*</asp:RequiredFieldValidator>Hours Count: <asp:RequiredFieldValidator ID="RequiredFieldValidator33" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="tbHoursCount" Display="Dynamic">*</asp:RequiredFieldValidator></td>
                                    <td width="75%"><telerik:RadNumericTextBox ID="tbHoursCount" runat="server" Text='<%# Bind("Hours_Count") %>' Skin="Vista" DataType="System.Int32"></telerik:RadNumericTextBox></td>
                                </tr>
                            </table>
                            <table style="width: 100%">
                                <tr><td align="left"><asp:Button ID="btnRptdEvnt" runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'></asp:Button> <asp:Button ID="btnEvntPrsnsCncl" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button></td></tr>
                            </table>
                        </FormTemplate>
                        </EditFormSettings>
                </MasterTableView>
                <FilterMenu EnableImageSprites="False"></FilterMenu>
            </telerik:RadGrid>
Erin Manuel
Top achievements
Rank 1
 answered on 16 Jan 2013
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?