Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
1.0K+ views
Hello Sir/Madam,

Currently i am using telerik rad grid in my project and my requirement is when i click on cell in telerik rad grid only that cell should be editable, no other cell should be in editable mode. here is my screen shot, in this screen shot i want to edit Vendordescription column in rad grid. so please help me asap..


Thanx in advance...

and here is my code:
<telerik:RadGrid ID="Grid_PurchaseOrder_Lines" runat="server" AutoGenerateColumns="False"
                AllowSorting="True" CellSpacing="0" GridLines="None"
                oneditcommand="Grid_PurchaseOrder_Lines_EditCommand">
                <ClientSettings>
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="375px" />
                </ClientSettings>
                <MasterTableView AutoGenerateColumns="false" DataKeyNames="CompanyId, LineDesc,ID">
                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                    </ExpandCollapseColumn>
                    <Columns>
                       
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                                         UniqueName="Edit" HeaderStyle-HorizontalAlign="Center"
                                        HeaderStyle-VerticalAlign="Middle">
                                        <ItemTemplate>
                                            <asp:Button ID="edit" runat="server" CommandName="Edit" />
                                            <asp:Button ID="Cancel" runat="server" CommandName="Cancel" />
  
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            HeaderText="Company" UniqueName="TemplateColumn1" ReadOnly="true">
                            <ItemTemplate>
                                <%# Eval("CompanyName")%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="" HeaderText="Vendor Description"
                            UniqueName="TemplateColumn1" ReadOnly="false">
                            <HeaderStyle Width="70px" />
                            <ItemTemplate>
                                <%#Eval("vendordescription")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"
                                    Text='<%# Eval("vendordescription") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            HeaderText="Component" UniqueName="TemplateColumn1" ReadOnly="true">
                            <HeaderStyle Width="80px" />
                            <ItemTemplate>
                                <%# Eval("LineDesc")%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            HeaderText="Size" UniqueName="TemplateColumn1" ReadOnly="true">
                            <ItemTemplate>
                                <%# Eval("LineSize")%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            HeaderText="Material/ Caliper" UniqueName="TemplateColumn1" ReadOnly="true">
                            <ItemTemplate>
                                <%# Eval("LineMatl")%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            HeaderText="Deco" UniqueName="TemplateColumn1" ReadOnly="true">
                            <HeaderStyle Width="70px" />
                            <ItemTemplate>
                                <%# Eval("LineDeco")%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            HeaderText="Coating/ Finish" UniqueName="TemplateColumn1" ReadOnly="true">
                            <ItemTemplate>
                                <%# Eval("LineFinish")%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            HeaderText="Quantity" UniqueName="TemplateColumn1" ReadOnly="true">
                            <ItemTemplate>
                                <%# String.Format("{0:n0}", Eval("LineQty"))%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            HeaderText="Unit Price" UniqueName="TemplateColumn1" ReadOnly="true">
                            <ItemTemplate>
                                <%# String.Format("{0:C3}",Eval("UnitPrice"))%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            HeaderText="Line Total" UniqueName="TemplateColumn1" ReadOnly="true">
                            <ItemTemplate>
                                <%# String.Format("{0:C3}",Eval("LineTotal"))%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
                            UniqueName="TemplateColumn1" HeaderText="Sale Quantity" ReadOnly="true">
                            <ItemTemplate>
                                <%# String.Format("{0:n0}", Eval("SaleQty"))%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn6 column"
                            UniqueName="TemplateColumn6" HeaderText="Sale Price" ReadOnly="true">
                            <ItemTemplate>
                                <%# String.Format("{0:C}",Eval("SellPrice")) %>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn6 column"
                            UniqueName="TemplateColumn6" HeaderText="Sale Total" ReadOnly="true">
                            <ItemTemplate>
                                <%# String.Format("{0:C}", Eval("SaleTotal")) %>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                        </EditColumn>
                    </EditFormSettings>
                </MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
            </telerik:RadGrid>
Viktor Tachev
Telerik team
 answered on 18 Nov 2014
2 answers
121 views
Hi there,

I apologize in advance if there is already a solution to this problem, but I've been searching all morning.

I have a Hierarchical Rad Grid that uses a NestedViewTemplate.  I use an ObjectDataSource for the parent grid that provides the columns 'CreatedBy' and 'CreatedOn' (string and datetime, respectively).

I'd like to display these values in the child RadGrid without having to make a separate call to the database.

How do I access these values from a nested RadGrid?  Outside of the RadGrid, the standard Eval("CreatedBy") works.

Thanks,
Dustin
Dustin
Top achievements
Rank 1
 answered on 18 Nov 2014
3 answers
403 views
Hallo,
DNN (formerly Dot Net Nuke) come shipped with a special modified version of your dll, plus has its own wrappers around Telerik control.
What I would like is being able to buy the complete, full and up to date version of your Ajax suite and use it in my DNN modules.
Now the problem I'm facing is this... since the Telerik dlls are already in the DNN bin folder, but they are modified versions, and so the namespace is already there as well, how can I let live the "commercial full" dlls I will buy for my modules together with DNN ones?

Another commercial question is this. I will make those modules for some of my customers, so they are very customized and not intended for reselling BUT would I be allowed to resell modules built upon the commercial licensed Ajax Suite?

The most important point for me is the first, how to have the DNN custom and official Telerik dlls (+ Namespaces) live together... I looked around for some resurces like the "external" statement (only available in C# I guess but I'm coding in VB.NET at the moment) but I don't know if this is the way to follow.

Thanks in advance
Marin Bratanov
Telerik team
 answered on 18 Nov 2014
9 answers
864 views
Hi,

I am trying to use RadAsyncUpload control in SharePoint but so far I am having no luck.

First of all, I have to say that I have found very little documentation to help me on this. I am currently stuck at a point where I keep getting the following error when I select a file:

Error: Unhandled Error in Silverlight Application Failed to Invoke: _onSilverlightError.   at System.Windows.Browser.ScriptObject.Invoke(String name, Object[] args)
   at UploadPrototype.EventManager.SilverlightError(String message, Int32 index)
   at UploadPrototype.MainPage.<>c__DisplayClass1f.<ProcessResponse>b__18()

I have uploaded a screenshot that shows where exactly the error is thrown in ure JS. I have also uploaded a screen shot that shows the UI.

Can you please clarify what I need to do to get this to work in SharePoint 2010? What changes do I need to make to the Web.Config?

Thanks
Hristo Valyavicharski
Telerik team
 answered on 18 Nov 2014
1 answer
47 views
Hi Team,

I want to give a option to add comment section on scheduler context menu, the appointment section will remain same. So this will show one comment for entire Day. For example we are booking appointment but doctor say I am not available or leave any message so while booking appointment user can read and work  accordingly.

Please help me how we can achieve this.


Thanks
Dheeraj Swami
Bozhidar
Telerik team
 answered on 18 Nov 2014
1 answer
187 views
I am attempting to make a page that creates a form using Rad controls.  This involves creating the html in code and then updating the innerhtml of a div to display the form.  This is not seem to work with rad controls.

In my asp page there is a div
<div id="JoinFormTable" runat="server"></div>

The div is updated to two ways,
one in the asp page called by on a ajax return call with some html
function GroupFromRowColumnResponse(response) {
   var data = response.d;
   $('#<%= JoinFormTable.ClientID%>').html(data.formHtml);
}
The other in the page load of the asp
protected void Page_Load(object sender, EventArgs e)
{
....
JoinFormTable.InnerHtml = group.GetJoinFormDesignHtml();
....
}

And the form html with one textbox look likes this
<table  class='FTable'><tbody><tr><td class='FColLbl'><label class='FColLblLbl'>Hours</label></td><td class='FColCtrl'><telerik:RadTextBox InputType ='Text' ID='Hours'  EmptyMessage='Hours' Runat='server'></telerik:RadTextBox></td></tr></tbody></table>

If I put this html in the asp it works fine, inserting it fails on the RadTextBox, only the Hours label shows.

When updating real time from javascript using the html function only the Hours label shows up, no errors.

When the Page_Load creates the form table on div.innerHtml, this error occurs in Chrome
Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: RadTextBox 

Can Rad controls be added in an html string in real time?

Thanks,
George
Konstantin Dikov
Telerik team
 answered on 18 Nov 2014
2 answers
142 views
I have a High quality image but when i upload it on Image editor and save it on the machine ,then open the saved image its quality gets very low ..also i see some small dots around the items on the image i am giving you the image.I have also checked it in your demo. I am using your latest 2014 release.
Vessy
Telerik team
 answered on 18 Nov 2014
3 answers
128 views
Hi!

It seems that the Q3 version is not rendering any IDs for the SVG child elements. Is there any reason for that?
The disadvantage is that I cannot get SVG elements via jQuery, i.e.
$('#<shapeId>')
Maybe there is some other possibility to manipulate the SVG children?

Best regards,
Hans
Slav
Telerik team
 answered on 18 Nov 2014
1 answer
576 views
When I expand a node all other expanded nodes should be collapse except for the parent node of the expanded node. How can this be accomplished?
Aneliya Petkova
Telerik team
 answered on 18 Nov 2014
0 answers
125 views
Hello,

Recently you guys released the new version of controls. After upgrading to the lastest version we  are facing prblem in UI. Please find the screen shots as below. But when we revert back to older version everything is working fine.
sharath
Top achievements
Rank 1
 asked on 18 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?