Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
314 views
I have nested grids. in child table I have this: 
<telerik:GridDropDownColumn AllowFiltering="true" DataField="Customer_Id" 
DataSourceID="entityDataSource1" DropDownControlType="RadComboBox"
HeaderText="Customer Name" ListTextField="Name" ListValueField="Customer_Id"
UniqueName="CustomerNameDropDown" AllowAutomaticLoadOnDemand="true">  </telerik:GridDropDownColumn>

when I try to select it says: Object reference not set to an instance of an object
So, automatic load on demand does not work with nested grids? Or I have to use edit template?
Nencho
Telerik team
 answered on 12 Dec 2013
1 answer
79 views
Version : I am using the latest Telerik ASP.Net suite - Q3 2013.
Control : Telerik RadGrid
Environment: SharePoint 2013, using  Telerik Radgrid for custom development.
Issue:
I have 2 rad grids on the page. I am using Popup Edit Form with custom template. The grid has 20 columns, hence the edit form has got lot of input fields. The problem I have is, in IE 10, the pop up is showing only half of the screen until the grid boundaries, the rest are all hidden. I am attaching the bad screenshot from IE. It is rendering fine in FF, you will see that in the attachment. I did set popup z-index to very high number "100001", but it did not fix the issue. Any direction is helpful as I have very tight deadline.

Thanks
Ramya
Galin
Telerik team
 answered on 12 Dec 2013
2 answers
248 views
Hello,

Can anyone show me how to bind time from database field?

I tried
RadTimePicker1.SelectedTime = Convert.ToDateTime(dataRow["TimeDeparted"].ToString());

Complied error:
Error   2   Cannot implicitly convert type 'System.DateTime' to 'System.TimeSpan?'

Thank you,
Sam
Sam
Top achievements
Rank 1
 answered on 12 Dec 2013
7 answers
189 views

Hello ,

I am  using  the Telerik Radeditor  in are application[Visual Studio 2012(C#)] but we are facing following  issue  while using the  document manager features of it .

Case:

#If we Upload  more than one document and click on uploaded document then it's name get display on the right screen  but when we click on the other uploaded  document, then the name that is coming on that screen is not getting updated. Reference screen shot is attached .

Telerik version:2013.1.4.3.40

.

 Please help me out to fix it.

Thanks!  in Advance.

Bharat
Top achievements
Rank 1
 answered on 12 Dec 2013
3 answers
442 views
Just checking if this would be doable:

We have a need to transpose the content of the RadGrid, i.e. make columns in the source data become rows in the RadGrid, and vice-versa.
I know I could do this "manually" be transposing the source datatable, but I wonder if there's any support for this built-in.

Thanks!
/Fredrik
Konstantin Dikov
Telerik team
 answered on 12 Dec 2013
3 answers
397 views
Hi Good morning,

I have a RadGrid on edit mode, I need change the color when a cell is modified, Could you please confirm me if would be possible implement that functionality and How?

Thanks in advance,
Angel Petrov
Telerik team
 answered on 12 Dec 2013
1 answer
226 views

How to pass additional data to context from RadAutoCompleteBox

This is on my markup, the retrieval of data is working but passing the data to context from the RadAutoCompleteBox has a problem.

<
telerik:RadAutoCompleteBox
   ID="racbTest"
   runat="server"
   DataTextField="Text"
   AutoPostBack="False"
   TextSettings-SelectionMode="Single"
   OnClientItemsRequesting="TestRequesting"
   InputType="Text"
   AllowCustomEntry="True">
   <WebServiceSettings
       Path="../DataSources/DataLoader.asmx"
       Method="SearchTest">
   </WebServiceSettings>
</telerik:RadAutoCompleteBox>
 
<telerik:RadCodeBlock runat="server">
   <script>
      function TestRequesting(sender, args) {
         args.get_context()["Foo"] = "Bar";
      }
   </script>
</telerik:RadCodeBlock>


and this is the code in the web service

[WebMethod]
public AutoCompleteBoxData SearchTest(RadAutoCompleteContext context)
{
   string searchString = context.Text;
   string foo = context["Foo"].ToString();
}

the problem is in the WebMethod, the context["Foo"] throws an error that

The given key was not present in the dictionary.

Any help would be appreciated.. Thanks in advance.


Bozhidar
Telerik team
 answered on 12 Dec 2013
2 answers
953 views
Hello all,

I have been looking for a while now, and have not been able to find a solution for my problem, which could possible be very easy to fix.

I have a grid in which when the user selects a row I want it to stay highlighted. Simple enough, I can make it work, as long as there is no postback. 

I have looked at numerous posts, including Telerik's demos (http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/selecting/row-selection/defaultvb.aspx?#qsf-demo-sourcehttp://www.telerik.com/help/aspnet-ajax/grid-selecting-row-with-click-client-side.html) and yet, I cannot find a solution.

This is the style on my page:
<style type="text/css">
    .rgSelectedRow, .rgSelectedRow > td
    {
        padding:4px;
        border-right: solid 1px #CBD2DA;
        background:gray !important;
    }
</style>

This is the Grid's client settings:
<ClientSettings>
    <Selecting AllowRowSelect="True"></Selecting>
    <ClientEvents OnRowClick="namespace.rowClick" />
</ClientSettings>

Now, the rowClick JS:
rowClick: function (sender, eventArgs) {
    var masterTable = $find('<%=grdSpam.RadGrid.ClientID%>').get_masterTableView();
    var rowindex = eventArgs.get_itemIndexHierarchical();
    var dataItem = masterTable.get_dataItems()[rowindex].get_element();
    var spamFilterID = dataItem.attributes["SpamFilterID"].value;
    $find('<%=pnlSpamQuarantine.ClientID%>').ajaxRequest('ViewFile' + '|' + spamFilterID + '|' + rowindex);
}

Now, when the user clicks on a row, it stays highlighted as long as I remove the ajaxRequest. 
I have also tried to set the EnablePostBackOnRowClick and using it instead of the Javascript, but the problem remains.

In an effort to force the row to be selected coming back, I have also added code to the AjaxRequest that sets the row.Selected = True. And I verified that it is still True during the Grid PreRender event.

BTW, I am not using the GridClientSelectColumn.

Can anyone shed a light as to what I am missing here?

Thanks,
Alex



Alex
Top achievements
Rank 1
 answered on 12 Dec 2013
1 answer
181 views

I am looking at RadHtmlChart. At the moment, I don’t know how to make the data points clickable easily.

In our scenario, the URL values for each data point will be constructed during the process of binding the data to the chart on the server side.

Can anybody advise?

Thanks!

Danail Vasilev
Telerik team
 answered on 12 Dec 2013
1 answer
92 views
Is there anything in the RadGrid that would cause the GroupBy rendering to behave differently on IE7 vs IE8?

I have this grid defined:
<telerik:RadGrid ID="grdWorkflow" Skin="Outlook" AutoGenerateColumns="False" GridLines="None"
    Width="900px" OnNeedDataSource="grdWorkflow_NeedDataSource" OnItemDataBound="grdWorkflow_ItemDataBound"
    OnItemCreated="grdWorkflow_ItemCreated" OnColumnCreated="grdWorkflow_ColumnCreated"
    runat="server">
    <ClientSettings AllowColumnsReorder="false">
        <Resizing AllowColumnResize="true" />
    </ClientSettings>
    <MasterTableView Caption="List of workflows" DataKeyNames="GroupID" ClientDataKeyNames="GroupID,StepID"
        GroupsDefaultExpanded="true" TableLayout="Fixed" Style="float: left;" Summary="View Workflow">
        <NoRecordsTemplate>
            <div class="bold">
                There are no approvers set up to approve this ITPR. You must either select a manager
                to approve or contact your Customer Service Representative (CSR) for further assistance.
            </div>
        </NoRecordsTemplate>
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectFields>
                    <telerik:GridGroupByField HeaderValueSeparator=" " FieldName="StepName" />
                </SelectFields>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="ArtificialSortingField" />
                </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <Columns>
            <telerik:GridBoundColumn UniqueName="StepID" DataField="StepID" Display="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="StepName" HeaderText="Step Name" DataField="StepName"
                Display="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="GroupID" HeaderText="GroupID" DataField="GroupID"
                Display="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="GroupName" HeaderText="Approval Group Name"
                DataField="GroupName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="RoleID" HeaderText="Role ID" DataField="RoleID"
                Display="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="RoleName" HeaderText="Role" DataField="RoleName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="SectionName" HeaderText="Section" DataField="SectionName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Approvers" HeaderText="Potential Approvers"
                DataField="Approvers">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

The output rendering on IE7 looks like:

<tr class="rgGroupHeader">
    <td class="rgGroupCol">
        <td colSpan="1">
            <p>
                ...

On IE8 & IE9 it renders to:

<tr class="rgGroupHeader">
     <td class="rgGroupCol">
         <td colSpan="4">
             <p>
                 ...

I could understand if different versions of IE do things differently, or if we had some rogue CSS changing things, but why is the RadGrid rendering differently by browser? This causes the grouping to look not look correct on the IE7.



Venelin
Telerik team
 answered on 12 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?