Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
My Month View seems to be failing on callback from the webservice...I think it's just getting too much sent into it and onClientRequestFailed is being called.

{"Message":"There was an error processing the request.","StackTrace":"","ExceptionType":""}


If I refine the search results it works fine, so I assume that has to be it?
Peter
Telerik team
 answered on 11 Aug 2010
3 answers
73 views
I am using MOSS 2007 and have the RAD controls installed for SharePoint.  With RAD enabled on my lists, I want to use the same functionality as the SharePoint "Insert Image" option. This is a simple dialog that allow you to enter the URL to the image (see attached file).  I don't have this button anymore.  Is there a RAD tool that I can use with similar functionality?  I need to be able to insert images from our internet site into our intranet announcements. (No need to upload these bio pics on SharePoint if they are already on the internet site.)

Thanks!
Stanimir
Telerik team
 answered on 11 Aug 2010
1 answer
114 views
Hi,

In my code behind, iam fetching some data from webservice and manupulating it as per need and storing
into hashtable.

Now i wanted to display that hashtable data inside RADListView in the form of rows, The RadListView is under NestedViewTemplate of RadGrid.
I tried it to display, but data is not showing when i try to view in browser.
In the Control page (ascx):
<NestedViewTemplate>
<asp:Panel ID="panel2" runat="server" >                           
         <telerik:RadListView ID="RadListView2" runat="server">
                        
 <td >
                                 Address:<%# Eval("ADDRESS")%>
                         </td>
  <td>
                                <!-- Need to display----->
                       <asp:Label ID="Label11" runat="server" Text='<%#keysLst3[0].ToString() %>'>
                       </asp:Label>                                                
                 </td>
         </telerik:RadListView> 
</asp:Panel>
</NestedViewTemplate>

in Code behind (cs.ascx):

 protected void PopulateServices()
        {
   public ArrayList keysLst3 = null;
            public ArrayList list = null;
            public ArrayList actuaList = null;
            public Hashtable table = null;      

        public static ArrayList GetKeys(Hashtable table)
        {
            return (new ArrayList(table.Keys));
        }

   string ID1="someID1";
            string ID2="someID1
";
            
            list = new ArrayList();
            actuaList = new ArrayList();
            table = new Hashtable();
            
            actuaList.Add("A");
            actuaList.Add("CB");
            actuaList.Add("Adv");                    
 
            ServicesWS.RecordSoap service= new ServicesWS.RecordSoap();
            service.Credentials = CPUtil.GetUserCredentials();        

            // Call web service, convert it to list and setting up datasource
           int x = service.GetServices(ID1, ID2).Count<ServicesWS.Service>();

           for (int i = 0; i < x;i++ )
           {
               list.Add(service.GetServices(ID1, ID2).ElementAt<ServicesWS.Services>(i).NAME);
           }

           if (list.Count > 0)
           {
               for (int j = 0; j < list.Count; j++)
               {
                  
                           table.Add(list[j], 1);                      

               }

           }
            
                   for (int i = 0; i < actuaList.Count; i++)
                   {
                      
                          if (!table.ContainsKey(actuaList[i]))
                           {
                              
                               table.Add(actuaList[i], 0);
                              
                           } 
                   }


           keysLst3 = GetKeys(table);       

           // Need these data to display along with other data which are coming from DB.
            keysLst3[0].ToString();
            table[keysLst3[0]].ToString();
        }







Veli
Telerik team
 answered on 11 Aug 2010
3 answers
428 views

# Problem 1

 

  Requirement:

Note: I am using Telerik 2008 version
                     
When I click the Radgird Row that time Check box checked. If I click the same row again that row check box is unchecked.

 

             Note: Now I can able to only check box checked process. But I am not able do it check box unchecked process.

 

Steps to Replicate: (note: Client side scripts)

                    1. Generate the RadGrid with check box

                    2. Click the RadGrid Row. The check box Checked fine. (Note: you want to click row and not directly checkbox ok...)

                        3. Again I click the same row Click. The Checkbox is unchecked. (I Want do it unchecked. I Mean I want to need reverse process.

 

Reference: See the Problem1.jpg image

 

# Problem 2

Requirement:

              I want to select multiple row checkbox through Radgrid row click.

              Note: But now, I am not able to click more then one row check box. I want to click more then one Row check box through row click.

 

Steps to Replicate: (note: Client side scripts)

                        1. Generate the RadGrid with check box

                        2. Click any row now the check box is checked. Now click another one row.  The current row checkbox only checked. As per requirement we want to check box  two row check box.  Which is going to smilar….

 

Reference: See the Problem2.jpg image



<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   
  <telerik:RadCodeBlock ID="dsafdsa" runat="server">
 
    <script language="javascript" type="text/javascript">
    
    
function RowClick(rowIndex)

 {

   // alert("Click on row with index: " + rowIndex);

    return false; //cancel the postback request set with ClientSettings -> EnablePostBackOnRowClick = true

 }


 function RowSelecting(sender, args) {
     
     var id = args.get_id();
     var inputCheckBox = $get(id).getElementsByTagName("input")[0];
     if (!inputCheckBox || inputCheckBox.disabled) {
         //cancel selection for disabled rows
         args.set_cancel(true);
     }
     if (inputCheckBox.checked == true) {
         inputCheckBox.checked = false;
     }
     else
     {
         inputCheckBox.checked =true;
     }
    
 }
 function RowDeselecting(sender, args) {
     alert("Deselect");
     var id = args.get_id();
     var inputCheckBox = $get(id).getElementsByTagName("input")[2];
     if (!inputCheckBox || inputCheckBox.disabled) {
         //cancel selection for disabled rows
         args.set_cancel(true);
     }
     inputCheckBox.checked = false;
 }

    </script>
    </telerik:RadCodeBlock>
    
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
    <div>
    
        <telerik:RadComboBox ID="RadComboBox1" Runat="server">
        </telerik:RadComboBox>
    <asp:HiddenField ID="HiddenField2" runat="server" />    
        
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadGrid ID="RadGrid1" runat="server"
            AllowPaging="True" PageSize="10" Width="97%"   AllowMultiRowSelection="True"
            GridLines="None">
            <PagerStyle Mode="NumericPages" />
             <ClientSettings EnableRowHoverStyle="true">
                <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true"   EnableDragToSelectRows="true"/>
                <ClientEvents OnRowClick="RowSelecting" />
                
            </ClientSettings>
            <MasterTableView>
                <Columns>
                    <telerik:GridClientSelectColumn>
                    </telerik:GridClientSelectColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    
    </div>
    </form>
</body>
</html>

Please provide me solutions for this problem. if you have any source code please send to me......

Thanks & Regards
G. Manikandan
Pavlina
Telerik team
 answered on 11 Aug 2010
1 answer
115 views
Hi guys,

I know the answer is going to be simple, but I can't find it. <grin>

In DayView, I have many events that I want to show vertically, not horizontally.

I've attached images of what I have now, and what I'm trying to achieve (which is schedulervertical.png). The items don't need to be editable.

Not sure if there's a setting for this or if it is handled in a template but I'm stuck.

Thanks,

Ken
Peter
Telerik team
 answered on 11 Aug 2010
1 answer
119 views
I am currently having an issue using the RadPanelBar i would like it to change the visible of the corresponding div to true without refreshing the whole page. I have it working with a button doing a submit but i can't seem to get it to work correctly using the RadPanelBar. I am sure its just a minor setting but i can't seem to figure it out.

Example: i would like if a user who clicks an item in the radpanelbar to change the visibility of an item WITHOUT refreshing the whole page. 


Example:
I have configured it with three different groups.

Group A
  Click 1
  Click 2
  Click 3


<Div id="one" visible =false>
Test1
</div>

<Div id="two" visible =false>
Test1
</div>


etc...

in the code behind i have the following code:


        Dim item = RadPanelBar1.SelectedItem.Text

        If item = "Click 1" Then
            Me.one.Visible = True
            Me.two.Visible = False

        End If
        If item = "Click 2" Then
            Me.one.Visible = False
            Me.two.Visible = True

        End If

See screen shots to see how i configure the Ajax Manager. PLEASE HELP!!!


Gary

Nikolay Tsenkov
Telerik team
 answered on 11 Aug 2010
1 answer
78 views
I am currently working on an application which will open tabs dynamically by clicking items inside panelbars. I wish to ignore few items espeicially title/group elements when clicked. When getting ID or Tab Index, I am getting same values for multiple entries. For example inside panel "Admin" bar and its first child is returning same value (0).

Furthermore I wish to add click event to an image added to tab for closing reasons. I dont want to use Tab Template feature for this. Any suggestion. My code is in following shape at present.

protected void RadPanelBar1_ItemClick(object sender, RadPanelBarEventArgs e)
   {
       RadTab NewTab = new RadTab();
       NewTab.Text = e.Item.Text;
       NewTab.ImageUrl = "images/deletecross.gif";
         
       RadTabStrip1.Tabs.Add(NewTab);
       int sel;
       sel = RadTabStrip1.Tabs.Count();
       RadTabStrip1.SelectedIndex = sel - 1;
   }
Yana
Telerik team
 answered on 11 Aug 2010
1 answer
86 views
Hi Experts,

Scenario:
1) Create Self Referencing Hierarchy Grid using Sub Objects.
2) Structure of SubObjects
        ParentObject
                ChildDetailsObject
                RelationObject

        ChildDetailsObject    
                Name
                Details

        RelationObject
                Name
                ParentName
 3) We provide collection of ParentObject as datasource.

Clarification:
   1) Can we provide SubObjects are DataKeyNames in MasterTableView.
        ex: DataKeyNames = "ParentObject.RelationObject.Name, ParentObject.RelationObject.ParentName"
   2) Can we provide SubObjects in ParentKeyName and KeyName in SelfHierarchySettings.
        ex: ParentKeyName = "ParentObject.RelationObject.ParentName"
              KeyName = "ParentObject.RelationObject.Name"
  3) Code snippet or sample application would help to understand this better.

Regards,
Aayam Singh

Veli
Telerik team
 answered on 11 Aug 2010
2 answers
140 views
Hi,
I'm trying to load a treeView with about 2400 nodes.
I'm using treeView.LoadXML(myString) or treeView.LoadXMLString(myString), but in both cases it take more than 3 min.

My PC is quite strong with:
Pentium Dual-Core 2.0Ghz
4GMb RAM
64bit Operating System

Expanding nodes in this tree is also a bit slow for the user.

Is there any way to improve those performance, like Rendering On Demand the child nodes or so?

Thanks,
Niv.

Chris
Top achievements
Rank 1
 answered on 11 Aug 2010
9 answers
148 views
Hi,

I have a  grid with a master - detail hierachical structure using AutoGenerateHierarchy="true".

The grids display correctly, however, when trying to export to Excel I get the following error...

Column 'OriginalDataItem' does not belong to table Leads.


I have searched the forums but cannot find any reference to this error. 'OriginalDataItem' is not a field in either the master or detail DataTables and I cannot find it as a property of the grid.

-a-



Daniel
Telerik team
 answered on 11 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?