Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
Hi
I want full client side functionality which dnt need to post back data to server because it is very expensive to post all rows of grid for adding just a new row
i have some text boxes on grid and i want to add a row in grid and set value of its column of what i have entered in text boxes by clicking a button and repeat this process no of times. 
What i see that i cant do this from client side, i can do by firing command event of grid but it fires on server while i dnt want to raise any server side event so that i can reduce client to server transfer.
how can i do this plz give example
i want something like this
function btnUpdateRow_Click()
        {
            masterTable.IsItemInserted = true;
            var masterTable = $find("<%= grdBody.ClientID %>").get_masterTableView();
   masterTable.IsItemInserted = true; //something like this to put grid in inserted mode but grid has no such property
            masterTable.InsertItem();
///After this access inserted row and assign value in that newly inserted row
If this functionality not available, can we expect any such functionality in next version of telerik
        } 
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2010
3 answers
134 views
Hello,
I have a hierarchial grid in which I would like to open the insert form template from an image button/link button in a grid row/cell but in all of the documentation it appears that it needs to open from the CommandItem Template.   Is there a way to do this?  The row that gets inserted would actually be a child record for the row on which the image button is selected, so I need it to have some context available in the insert command event to identify the parent record for which to tie the child record to.   Assuming the answer to my first question is "Yes", is there a way to obtain a key value from the correct row in the insert command event?
Radoslav
Telerik team
 answered on 15 Jun 2010
2 answers
119 views
Hi !!

I am working to create online Virtual Lab. In this lab we are providing access to Laboratory instruments to our users.

Since there is only one instrument therefore we want only one user to book a time slot. For this I had taken day view in RadShedular time slot is one hour from 10:00 A.M. to 5 P.M. that is total 7 slots. (10:00 A.M. to 11:00 A.M., 11:00 A.M. to 12:00 P.M,.....4:pm to 5 P.M.).

If some user books one slot for example 10:00 A.M to 11:00 P.M. then no other user is allowed to book same slot.

I am not able to implement the above mentioned problem.

Thanks & Regards,
Rehan Mohd
Rehan Mohd
Top achievements
Rank 1
 answered on 15 Jun 2010
1 answer
103 views
Hi Guys,
I have got a site in which I am using telerik controls.
But when I am compiling that it shows an error like
Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.309.20,Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies.The located assembly's manifest definition does not match the assemblyreference. (Exception from HRESULT: 0x80131040).

Can anyone help me out with this.

Thanks in Advance,
Victor.
Daniel
Telerik team
 answered on 15 Jun 2010
1 answer
403 views
I have a radgrid with a GridImageColumn. I display a thumbnail image in the image column form a data base.  I have set the Grid's onrowdblclick to instantiate some java to popup a radwindow with a larger version of the image.

Everything works great... EXCEPT, if the user double clicks the actual thumbnail image. Nothing happens. Is there a way to either make the GridImageColumn or the thumbnail image also call the java script like the onrowdblclick event?


 

                        <script type="text/javascript">  
                            function RowClick(sender, eventArgs) {  
                                var MasterTableView = eventArgs.get_tableView();  
                                var cell = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "IDImages");  
                                var oWnd = radopen("../../imagemanager/imagedisplay.aspx?IDImages=" + cell.innerHTML);  
                            }  
        </script>   
                  
                    <telerik:RadGrid ID="rg_VehicleImages" runat="server"   
                        AllowAutomaticDeletes="True" AutoGenerateDeleteColumn="True" CssClass="radgrid"   
                        DataSourceID="sds_ImagesVehicle" GridLines="None" Width="220px">  
                        <mastertableview autogeneratecolumns="False" datakeynames="IDImages"   
                        datasourceid="sds_ImagesVehicle">  
                            <rowindicatorcolumn> 
                                <HeaderStyle Width="20px" /> 
                            </rowindicatorcolumn> 
                            <expandcollapsecolumn> 
                                <HeaderStyle Width="20px" /> 
                            </expandcollapsecolumn> 
                            <Columns> 
                                <telerik:GridBoundColumn DataField="IDimages" DefaultInsertValue=""   
                                    HeaderText="" ItemStyle-ForeColor="White" ItemStyle-Width="2px"   
                                    SortExpression="True">  
                                    <HeaderStyle Width="2px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridImageColumn AlternateText="Thumbnail"   
                                    DataImageUrlFields="FilePath, ThumbnailName" DataImageUrlFormatString="{0}/{1}"   
                                    DataType="System.String" FooterText="ImageColumn footer" HeaderText=""   
                                    ImageAlign="Middle">  
                                    <HeaderStyle Width="75px" /> 
                                </telerik:GridImageColumn> 
                                <telerik:GridBoundColumn DataField="ThumbnailName" DefaultInsertValue=""   
                                    HeaderText="ThumbnailName" SortExpression="ThumbnailName"   
                                    UniqueName="ThumbnailName" Visible="False">  
                                </telerik:GridBoundColumn> 
                            </Columns> 
                        </mastertableview> 
                        <clientsettings> 
                            <clientevents onrowdblclick="RowClick"/>  
                        </clientsettings> 
                    </telerik:RadGrid> 



 

Tsvetina
Telerik team
 answered on 15 Jun 2010
1 answer
86 views
I am using RadControls for ASP.NET AJAX Q1 2010 SP2  v2010.1.519.35.

The aspx file includes:
[.aspx begin]
<telerik:RadTreeView ID="RadTreeView1" Runat="server" onnodecreated="RadTreeView1_NodeCreated">
</telerik:RadTreeView>

<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="AddNode" />
<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Other" />
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
         <telerik:AjaxSetting AjaxControlID="Button1">
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="RadTreeView1" />
             </UpdatedControls>
         </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server"></telerik:RadScriptManager>
[.aspx end]

the c# codes behind are:
[c# begin]
private static int i = 0;

protected void Page_Load(object sender, EventArgs e)
{
}

protected void Button1_Click(object sender, EventArgs e)
{
    RadTreeNode node = new RadTreeNode();
    node.Value = i.ToString();
    RadTreeView1.Nodes.Add(node);
}

protected void RadTreeView1_NodeCreated(object sender, RadTreeNodeEventArgs e)
{
    if( e.Node.Level == 0)
    {
        e.Node.Text = "No." + i.ToString();
        i++;
    }
}

protected void Button2_Click(object sender, EventArgs e)
{
    int j = 0;
    j++;
}
[c# end]

My intention is:
        add RadTreeView nodes by pressing button1 ,control the nods by NodeCreated event;
        do something else by pressing button2.

My problem is:
        when pressing the "Button2", the NodeCreated event for RadTreeView1 is also fired . We can see it from the changing of "i" variable.

Why? Or how to avoid it?

Thanks.
Simon
Telerik team
 answered on 15 Jun 2010
4 answers
225 views
Hi,
      I have a template column for ProductId which is of type "int". I defined it as  <telerik:GridTemplateColumn>  I have some limitation ths why i can not make it <telerik:GridNumericColumn>.How can i validate the data type(so that user can not enter any character in that) while user will type in Filter text box like its happening for <telerik:GridNumericColumn> columns.

Regards,
Dheeraj
Dheeraj
Top achievements
Rank 1
 answered on 15 Jun 2010
3 answers
272 views
Hi..

Is it possible to have multiple instances of RadWindowManager at one page? I know it was not possible in old radcontrols, but maybe in prometheus it is? .. I ask becouse I need to use radwindowmanager in my DNN skin, and in some modules with multiple instances at one page.

Regards
Petio Petkov
Telerik team
 answered on 15 Jun 2010
3 answers
55 views
Hi,
      I have a HeaderContextMenu in grid which is showing unexpected behaviour in IE6 and Safari browser. When I am seeing the columns in menu, even though they are in grid the  columns checkboxes are unchecked in HeaderContextMenu  and sometimes even the column is not in grid the also it showing as checked.

Note- I am saving the grid settings in database.

but in IE8 I am getting every thing fine means the columns which are in grid those are only comning as checked rest are unchecked in context menu.

Please suggest me regarding this problem.

Regards,
Dheeru
Radoslav
Telerik team
 answered on 15 Jun 2010
1 answer
62 views
Dear Telerik Team,

   How can I add an javascript function to set the max length to the radEidtor Version 2009?


thanks
Rumen
Telerik team
 answered on 15 Jun 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?