Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
311 views
I have a requirement that I need to dispay an image if the flag is false and should not display anything (the cell must be empty) if the flag is true. How to achieve this using GridImageColumn?

Thanks in advance..
Shinu
Top achievements
Rank 2
 answered on 03 Mar 2011
1 answer
68 views
Hi, I am trying to use RadToolTipManager to create on demand tooltip content which is dependant on the value of a particular column on mouse over.... as a starting point I am attempting to recreate as much of the example project - (http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx) in my own as possible. However I'm getting a ' Type 'ProductDetails' is not defined ' error in the following line of the code behind:

Dim details As ProductDetails = DirectCast(ctrl, ProductDetails)

I have tried putting the ascx file in my app_folder, the root, I'm pretty sure I've got all the relevant imports right and registrations at the top of the aspx file... am probably missing something obvious but can't figure out what...

Thanks in advance,

Rudie
Svetlina Anati
Telerik team
 answered on 03 Mar 2011
1 answer
134 views
Is there a way I can capture the click of the 'X' close button from within the RadWindow, so I can set a specific argument value to be passed back to the parent window? From what I've seen, the suggested solutions have been to check for a null argument on the parent side which would indicate the X close was used. I want to pass an argument back (such as 'updated' or 'notUpdated') so I know whether to refresh a main grid control based on the actions performed within the window. Thanks.
Shinu
Top achievements
Rank 2
 answered on 03 Mar 2011
1 answer
95 views
Hi Telerik,
I tried to integrate the latest assemblies to SharePoint 2010. I follows the steps by adding safe control in web.config,
<SafeControl Assembly="Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Charting" TypeName="*" Safe="True" SafeAgainstScript="False" />


I also add the httphandlers in web.config
<httpHandlers><br>      <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /><br>    </httpHandlers><br>


In my C# code, i also disabled the Session and set the temporary files where the web application have full permission to writes to that file(local administrator right).

After all done, when i tried to generate my chart, it throw exception as attached.

Kindly advise.

Regards.
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 03 Mar 2011
6 answers
132 views
i have used raddatepicker in one of my page which should load on page-load. but when i open that page it take a lot of time for the open, in fact it does not open. i dont face this issue in any other browser (IE 7/8 or firefox). plz help on that.. 
ritu ritu
Top achievements
Rank 1
 answered on 03 Mar 2011
3 answers
61 views

 I have requirement for hierarchal data grid. I'm binding the grid's datasource with a collection.
 Each of the item within that collection has another collection as a Property.

Is there a way to bind the grid in such a way that , it automatically takes the inner collection as datasource for DetailsTable,
whereas the outercollection as datasource for MasterTableView ?

The telerik eg., i have seen, have datasource provided exclusively for both MasterTableview as well as Detailtable and the relation between them specifed using ParentTableRelation.

In my case, i have the relation between master & detail maintained in my collection. So binding the grid in NeedDatasource event and specifying the DataMember property declaritively should work.
let me know if you think i'm missing something ,
I donot wish to maintain two different datasource , as i have lot of grid operations.

 

 

 

Pavlina
Telerik team
 answered on 03 Mar 2011
3 answers
227 views

I'm using a hierarchical grid. My Radgrid contain NestedViewTemplate which contain Another Radgrid .Inner Radgrid contain some GridBoundColumn and  GridButtonColumn called EDIT.This Inner Grid use <EditFormSettings EditFormType="Template">.
Now when we click on Edit,it is not able to open Edit form template.Instead of this, All the rows inside the inner grid get disappear.

Please help me out here...Thanks in advance.

<telerik:RadGrid ID="Radgrid1"  Visible="true"  runat="server" EnableViewState="true" AllowPaging="false" AllowSorting="true"     AutoGenerateColumns="false" Skin="Vista" OnItemCommand="Radgrid1_ItemCommand" OnSortCommand="Radgrid1_SortCommand"    AllowAutomaticDeletes="true" AllowAutomaticInserts="false" AllowAutomaticUpdates="false">
    <MasterTableView Width="100%" Name="mastertableview" DataKeyNames="custemerid" >
        <NestedViewTemplate>                                  
           <telerik:RadGrid ID="Radgrid2" AllowAutomaticDeletes="true"" AllowAutomaticInserts="false"
                    AllowAutomaticUpdates="true" AllowSorting="true"   OnItemCommand="Radgrid2_ItemCommand">
                       <MasterTableView CommandItemDisplay="Top" DataKeyNames="orderID"    AutoGenerateColumns="false" EditMode="EditForms" InsertItemDisplay="Top">                                                                                                                                                                                                   <Columns>
                               <telerik:GridBoundColumn HeaderText=""                                                                                      </telerik:GridBoundColumn>
                       <telerik:GridTemplateColumn HeaderText="Order Name"  UniqueName="Order Name"
                               <ItemTemplate>   <asp:Label runat="server" ID="lblOrderName" Text='<%# AntiXss.HtmlEncode(Eval("OrederName").ToString())%>'></asp:Label>  </ItemTemplate>
   </telerik:GridTemplateColumn>
    <telerik:GridTemplateColumn HeaderText=""     
       </telerik:GridTemplateColumn>
        <telerik:GridButtonColumn HeaderText="Edit" CommandName="Edit" Text="Edit" ItemStyle-HorizontalAlign="Center"
                 ButtonType="ImageButton" UniqueName="EditCommandColumn" ImageUrl="~/OneViewImages/edit.png">
              </telerik:GridButtonColumn>
                <telerik:GridButtonColumn HeaderText="Delete" ButtonType="ImageButton" ConfirmText="Are you sure you want to delete this User?"      ConfirmDialogType="RadWindow" ConfirmTitle="Delete" CommandName="Delete" Text="Delete User"  UniqueName="DeleteColumn" >
     </telerik:GridButtonColumn>
   </Columns>
           <CommandItemSettings AddNewRecordText="Add New User" />
                                                                        <EditFormSettings EditFormType="Template">
                                                                            <FormStyle Font-Size="11px" />
                                                                            <FormTemplate>    Edit form is here   Along with two Image button as Save and Calcel mention below
<asp:ImageButton ID="btnUpdate" runat="server" ToolTip="Save" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'    />  
   <asp:ImageButton ID="btnCancel" runat="server" ToolTip="cancel" CausesValidation="False"              CommandName="Cancel" />
        </FormTemplate>
                </EditFormSettings>
        </MasterTableView>
           <ValidationSettings CommandsToValidate="PerformInsert,Update" ValidationGroup="ValidationGrp1" />
                                                                </telerik:RadGrid>                                                                                                   </NestedViewTemplate>
                                                <Columns>
                                                    <telerik:GridBoundColumn UniqueName="CustomerID" DataField="CustomerId" Visible="false"    ReadOnly="true">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="CustomerName" UniqueName="CustomerName"  >
                                                       </telerik:GridBoundColumn>
                                                </Columns>
                                                <ExpandCollapseColumn Visible="True">
                                                </ExpandCollapseColumn>
                                    </MasterTableView>
                                        </telerik:RadGrid>
  
  
  
  
  
Code Behind:
  
 protected void Radgrid1_ItemCommand(object source, GridCommandEventArgs e)
        {
                RadGrid grid = (source as RadGrid);
    if ((e.CommandName == RadGrid.InitInsertCommandName ||
    e.CommandName == RadGrid.EditCommandName ||
    e.CommandName == RadGrid.EditAllCommandName ||
    e.CommandName == RadGrid.EditSelectedCommandName)
    && insertMode )
    {
    grid.MasterTableView.ClearEditItems();
    e.Item.OwnerTableView.IsItemInserted = false;
    }
                if ((e.CommandName == "ExpandCollapse") && (!e.Item.Expanded))
                {
               // populate innergrid
                }
            }
  
  
  
protected void Radgrid2_ItemCommand(object source, GridCommandEventArgs e)
        {
              
    //Code for During Add,Edit can no happen and vice-versa
    bool editMode = e.Item.OwnerTableView.OwnerGrid.EditIndexes.Count > 0;
    bool insertMode = e.Item.OwnerTableView.IsItemInserted;
                RadGrid Radgrid2 = (source as RadGrid);
    if ((e.CommandName == RadGrid.InitInsertCommandName ||
    e.CommandName == RadGrid.EditCommandName ||
    e.CommandName == RadGrid.EditAllCommandName ||
    e.CommandName == RadGrid.EditSelectedCommandName)
    && (insertMode || editMode))    {
                    Radgrid2.MasterTableView.ClearEditItems();
    e.Item.OwnerTableView.IsItemInserted = false;   }
  
if (e.CommandName == "Delete")
    {if (e.Item is GridDataItem)
{   
                  //Delete the selected OrderId then bind the inner grid using 
      Radgrid2.Rebind();
    }
 if (e.CommandName == "Edit")
                 {
                    Radgrid2.MasterTableView.EditFormSettings.UserControlName = null;
                     Radgrid2.MasterTableView.EditFormSettings.EditFormType = GridEditFormType.Template;
                     if (e.Item is GridDataItem)
                     {
                         GridDataItem item = (GridDataItem)e.Item;
                      //Some field to be loaded in edit mode                                                                        
                     }
            Radgrid2.Rebind();  
   }
  
if (e.CommandName == "Cancel")
{
      Radgrid2.Rebind();
         BindGrid(); // use to bind Outer grid
}
      if (e.CommandName == "Update")
         {
//some code
         }
  
if (e.CommandName == "InitInsert")
{   //Some code                           
                   Radgrid2.MasterTableView.ClearEditItems();
                   Radgrid2.MasterTableView.IsItemInserted = true;
                   Radgrid2.Rebind();
                    Radgrid1.Rebind();
}           }
                if (e.CommandName == "PerformInsert")
                {
//some code
               }
}
  
                  
            
Shinu
Top achievements
Rank 2
 answered on 03 Mar 2011
7 answers
586 views
I have the following multi-line textbox.
<telerik:RadTextBox ID="txtComment" runat="server"  
ValidationGroup="CommentValidation" CausesValidation="True" MaxLength="4096"  
Skin="Black" Width="450px" TextMode="MultiLine" Height="150px" AcceptReturn="True" /> 
I want to be able to start typing and when pressing the ENTER key I want to go to the next line. This won't work because now it will trigger the validation of the form.

I tried the solution from this (winforms) thread but that doesn't seem to work here.
How can I fix this?

(I am using the radEditorProvider (2008.2723) in DotNetNuke 4.8.4)




Pavel
Telerik team
 answered on 03 Mar 2011
1 answer
157 views

I'm migrating repeater control in my code to telerik grid control.
In my repeater control i'm using the following piece of code as my URL

<

 

a href="<%# Globals.GetSiteUrls().Post( (int) DataBinder.Eval(Container.DataItem, "PostID") ) %> ">

 

 

 

I have to use the same in GridHyperLinkColumn.
How to give value in DataNavigateUrlFormatString??

Pavlina
Telerik team
 answered on 03 Mar 2011
2 answers
132 views
Hi Sir/Ma'm
 
We have developed a web application , how can run application without address bar, location, toolbar etc.
I 'm able to do with script as window.open.. but this will open a new window.
But i want my login page to load without address bar, location, toolbar ...
Is there any tool by Telerik ?

Please help me to achieve this

Thanks
Sunil
Top achievements
Rank 1
 answered on 03 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?