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

In our Org, we are using our internal Test management tool for all manual test cases and run it manually. But we are using telerik for automated scripts for testing.

I would like to know if we could integrate our in house test management application with telerik and invoke automated scripts of telerik from our application and store the Run results  corresponding to each test case present in telerik or not ?

Is there any service / configuration available for this currently in Telerik by which we can integrate with this tool . If yes what are the steps and if not how to achieve it ? :)
Ivaylo
Telerik team
 answered on 12 Nov 2013
3 answers
69 views
I've used this code to toggle a grid's expand-collapse state, but since installing the recent 2013 Q3 update the grid expands ok but then remains expanded when the expand/collapse command is triggered again. How do I collapse an expanded grid now?
if (e.CommandName == "ExpandCollapseAll")
{
    grid.MasterTableView.HierarchyDefaultExpanded = !grid.MasterTableView.HierarchyDefaultExpanded;
    grid.Rebind();
}
Kostadin
Telerik team
 answered on 12 Nov 2013
1 answer
45 views
When I export an asp.net grid to pdf, I want to display the total number of pdf pages in the footer section. Can someone help me with this.
Kostadin
Telerik team
 answered on 12 Nov 2013
4 answers
187 views

Hi All

I am using master detail grid and it is working fine . In detail table I have telerik:GridTableView with CommandItemSettings-AddNewRecordText enabled , I want to show/hide this option dynamically in item data bound , I am able to hide it when I use below code but my condition could only be checked when (e.Item is GridDataItem) , I tried to get commanditems using GridItem cmdItem = tableView.GetItems(GridItemType.CommandItem)[0]  but only Null values returned , can anybody suggest how go about the same

if (e.Item is GridCommandItem) 
    { 
        Button addButton = e.Item.FindControl("AddNewRecordButton") as Button; 
        addButton.Visible = false; 
        LinkButton lnkButton = (LinkButton)e.Item.FindControl("InitInsertButton"); 
        lnkButton.Visible = false; 
    }     

 
Thanks
Srujan.N

Princy
Top achievements
Rank 2
 answered on 12 Nov 2013
1 answer
57 views
Hi,

I have this UI dilemma:  When a user filters or sorts from the column header of a grid, the only indication that the grid is loading is the spinner down at the bottom of the grid.  It's possible, however, that the bottom of the grid is not visible on the screen, so the user might get clicky, thinking nothing is happening.  Is it possible to move the spinner or provide some other indication that work is happening, using off-the-shelf functionality?

Thanks,
JD
Princy
Top achievements
Rank 2
 answered on 12 Nov 2013
1 answer
74 views
I've been banging my head against the wall for the past few hours trying to get the text to show next to a toggled image. The images toggle fine, but I cannot seem to get the text to display no matte what. Anyone know what I'm doing wrong?

<telerik:RadButton ID="RadButton2" runat="server" Text="Walk in" AutoPostBack="false" ButtonType="ToggleButton" GroupName="HowFound" ToggleType="Radio" Style="top: 34px; left: 12px; position: absolute;" >
    <ToggleStates>
        <telerik:RadButtonToggleState ImageUrl="../Images/bad_mark.png" Height="22px" Width="22px" Text="Walk in" />
        <telerik:RadButtonToggleState ImageUrl="../Images/good_mark.png" Selected="true"  Height="22px" Width="22px" Text="Walk in"/>
    </ToggleStates>
</telerik:RadButton>
<telerik:RadButton ID="RadButton1" runat="server" AutoPostBack="false" Text="Ad" ButtonType="ToggleButton" GroupName="HowFound" ToggleType="Radio" Style="top: 34px; left: 62px; position: absolute;" >
    <ToggleStates>
        <telerik:RadButtonToggleState ImageUrl="../Images/bad_mark.png"  Height="22px" Width="22px" Text="Ad" />
        <telerik:RadButtonToggleState ImageUrl="../Images/good_mark.png" Selected="true"  Height="22px" Width="22px" Text="Ad"/>
    </ToggleStates>
</telerik:RadButton>
Steve
Top achievements
Rank 1
 answered on 12 Nov 2013
2 answers
105 views
i tried to use the radDatepicker in a fancybox but the calendar popup didn't show. I have try everythings but it won't work. So is radDatepicker work in a fancybox ? and if it does how to make it work.
p/s sorry for my poor english.
Robert
Top achievements
Rank 1
 answered on 11 Nov 2013
1 answer
232 views
I need to bind a UserControl in the ItemCreated Event of Telerik RadGrid.
In order to bind it,I need the primary key value that is DataKeyValue and also in DataItem.
But,when using NestedViewTemplate,I am not able to access the value.
Also,when the Hierarchy Button(left side of Grid) is clicked,the ItemCreated Event is fired first and after that NeedDataSource event is fired,sue to which the DataItem and DataKeyValue are not avaiable.

I have provide the code.Kindly let me know if the scenario which I am trying to achieve is possbile or what is the probelm with the code.?

or do I need to use FormTemplate-EditMode to achieve it?

<telerik:RadGrid ID="radGridQuestionnaire" runat="server" <br>
                    Width="100%"   <br>
                    PageSize="20"    <br>
<font class="Apple-tab-span" style="white-space: pre;"> </font>                AutoGenerateColumns="False" <br>
                    GridLines="None" <br>
                    AllowSorting="True" <br>
<font class="Apple-tab-span" style="white-space: pre;"> </font>                AllowPaging="True" <br>
                    OnNeedDataSource="radGridQuestionnaire_NeedDataSource"<br>
                    OnItemCreated="radGridQuestionnaire_ItemCreated"<br>
                    OnItemDataBound="radGridQuestionnaire_ItemDataBound"<br>
                    OnItemCommand="radGridQuestionnaire_ItemCommand"><br>
        <PagerStyle Mode="NextPrevNumericAndAdvanced"/><br>
<font class="Apple-tab-span" style="white-space: pre;"> </font>    <MasterTableView EnableViewState="true" DataKeyNames="Form.DisplayFormName,Question.QuestionNumber,Question.QuestionId,ReviewId" Width="100%"><br>
            <RowIndicatorColumn><br>
                <HeaderStyle Width="20px"></HeaderStyle><br>
            </RowIndicatorColumn><br>
<font class="Apple-tab-span" style="white-space: pre;">     </font>    <ExpandCollapseColumn><br>
<font class="Apple-tab-span" style="white-space: pre;">         </font>    <HeaderStyle Width="20px"></HeaderStyle><br>
<font class="Apple-tab-span" style="white-space: pre;">     </font>    </ExpandCollapseColumn><br>
            <Columns><br>
                <telerik:GridBoundColumn HeaderText="Form" UniqueName="FormName" DataField="Form.DisplayFormName" HeaderStyle-Width="40%" /><br>
                <telerik:GridBoundColumn HeaderText="Question #" UniqueName="QuestionNumber" DataField="Question.QuestionNumber" HeaderStyle-Width="15%" /><br>
                <telerik:GridBoundColumn HeaderText="Status" UniqueName="QuestionnaireStatusName" DataField="QuestionnaireStatus.QuestionnaireStatusName" HeaderStyle-Width="15%" /><br>
                <telerik:GridBoundColumn HeaderText="Submitted By" UniqueName="SubmittedBy" DataField="Questionnaire.SubmittedBy" HeaderStyle-Width="15%" /><br>
                <telerik:GridBoundColumn HeaderText="Submitted On" UniqueName="SubmittedOn" DataField="Questionnaire.SubmittedOn" HeaderStyle-Width="15%" /><br>
            </Columns><br>
            <NestedViewTemplate><br>
                <div id="divChoiceMain" class="pad10"><br>
                    <div class="divChoiceTextSection"><br>
                        <div class="divChoiceTextLeftSection">Form:</div><br>
                        <div class="divFloatLeft"><br>
                            <asp:Label ID="lblFormName" runat="server" Text='<%# Eval("Form.DisplayFormName")%>'/><br>
                        </div><br>
                    </div><br>
                    <div class="divChoiceTextSection"><br>
                        <div class="divChoiceTextLeftSection">Question #:</div><br>
                        <div class="divFloatLeft"><br>
                            <div><br>
                                <asp:Label ID="lblQuestionNumber" runat="server" Text='<%#Eval("Question.QuestionNumber")%>'/><br>
                            </div><br>
                        </div><br>
                    </div><br>
                    <div class="divChoiceTextCorrectiveActionSection"><br>
                        <div class="divFloatLeft padtop5" style="margin-left:100px;"><br>
                            <ar:ReviewConfigurationToolTipUC ID="reviewConfigurationToolTipUC" runat="server" /><br>
                        </div><br>
                    </div><br>
                </div><br>
                <div class="clearfix pad10"><br>
                    <div class="divChoiceTextSection"><br>
                        <div class="divFloatLeft padRight10"><br>
                            <asp:LinkButton ID="lnkBtnSave" runat="server" Text="Save" CommandName="Save"></asp:LinkButton><br>
                        </div><br>
                        <div class="divFloatLeft padRight10"><br>
                            <asp:LinkButton ID="lnkSaveAndSubmit" runat="server" Text="Save & Submit" CommandName="Submit"></asp:LinkButton><br>
                        </div><br>
                        <div class="divFloatLeft"><br>
                            <asp:LinkButton ID="lnkBtnCancel" runat="server" Text="Cancel" CommandName="Cancel"></asp:LinkButton><br>
                        </div><br>
                    </div><br>
                </div><br>
            </NestedViewTemplate><br>
        </MasterTableView><br>
    </telerik:RadGrid>


protected void radGridQuestionnaire_ItemCreated(object sender, GridItemEventArgs e)<br>
        {<br>
            if (e.Item is GridNestedViewItem)<br>
            {<br>
                GridDataItem gridDataItemObj = (e.Item as GridNestedViewItem).ParentItem;<br>
                GridNestedViewItem gridNestedViewItemObj = e.Item as GridNestedViewItem;<br>
<br>
                if (gridDataItemObj == null || gridNestedViewItemObj == null)<br>
                    return;<br>
<br>
                //Form.DisplayFormName,Question.QuestionNumber,ReviewId<br>
                //string formName = gridDataItemObj.GetDataKeyValue("Form.DisplayFormName") as string;<br>
                //string questionNumaber = gridDataItemObj.GetDataKeyValue("Question.QuestionNumber") as string;<br>
                //string reviewId = gridDataItemObj.GetDataKeyValue("ReviewId") as string;<br>
                //string questionIdStr = gridDataItemObj.GetDataKeyValue("Question.QuestionId") as string;<br>
                if (e.Item.ItemIndex >= 0)<br>
                {<br>
                    string formName = radGridQuestionnaire.MasterTableView.DataKeyValues[e.Item.ItemIndex]["Form.DisplayFormName"] as string;<br>
                    string questionNumaber = radGridQuestionnaire.MasterTableView.DataKeyValues[e.Item.ItemIndex]["Question.QuestionNumber"] as string;<br>
                    string reviewId = radGridQuestionnaire.MasterTableView.DataKeyValues[e.Item.ItemIndex]["ReviewId"] as string;<br>
                    string questionIdStr = radGridQuestionnaire.MasterTableView.DataKeyValues[e.Item.ItemIndex]["Question.QuestionId"] as string;<br>
                }<br>
<br>
                //object dataKeyValue = ((sender as RadGrid).NamingContainer as DataItem).GetDataKeyValue("ID");<br>
                //use the dataKeyValue to fetch the correct Employee object <br>
                Questionnaire questionnaireObj = gridDataItemObj.DataItem as Questionnaire;<br>
                ReviewConfigurationToolTipUC reviewConfigurationToolTipUCObj = gridNestedViewItemObj.FindControl("reviewConfigurationToolTipUC") as ReviewConfigurationToolTipUC;<br>
<br>
                if (questionnaireObj!=null && questionnaireObj.Question!=null && questionnaireObj.Question.QuestionId.HasValue && reviewConfigurationToolTipUCObj != null)<br>
                {<br>
                    //Create FormQuestion Obj.<br>
                    FormQuestion formQuestionObj = new FormQuestion { QuestionId = questionnaireObj.Question.QuestionId };<br>
                    reviewConfigurationToolTipUCObj.BuildToolTip(questionnaireObj.Question.QuestionName, formQuestionObj, null);<br>
                    <br>
                }<br>
            }<br>
        }



Jignesh
Top achievements
Rank 1
 answered on 11 Nov 2013
3 answers
294 views
Im not sure whether its a bug or not. I hav a grid with a column as shown below.

<trk:GridBoundColumn DataField="SHORT_TERM_BOIL_OFF" DataFormatString="{0:F2}" SortExpression="SHORT_TERM_BOIL_OFF"
                                           HeaderText="ST He boil off (%/day)" UniqueName="SHORT_TERM_BOIL_OFF">
                                       </trk:GridBoundColumn>

I did export to excel using below code:
trkGridMRStatusOverview.MasterTableView.ExportToExcel();

I got output as attached in the screenshot.
Im getting a text called F2 displayed in excel.

Im using Telerik File version : 2013.1.417.40
Karl
Top achievements
Rank 1
 answered on 11 Nov 2013
1 answer
104 views
I'm seeking advice about my filter item for a date column of my radgrid.

The default display positions the datepicker box on the left, the calendar icon in the center and the filter menu icon on the right.

I would like to display the filter menu icon on the left followed by the datepicker's textbox.  I'd like the calendar icon to not show at all and for the calendar pop-up to be triggered by a mouse-click in the datepicker's textbox (something I know I can achieve in a plain datepicker, but have not been able to control when it is part of an automatically-generated column filter)

Is there a straightforward way to achive this display preference?  I've made some columns with FilterTemplates before, but I've not been able to include the filter icon and menu with them.

Please advise.  Thanks


Mike
Venelin
Telerik team
 answered on 11 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?