Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
115 views
Hello,

I have a radgridview... inside that i have two dropdownlistsin the edititemtemplate. When i want to edit a row. the selected valeu should be the one which was there as a label.
And if i change any value from first dropdownlist. iwant to send its selected value to another dropdownlist...
please tell me how to do this.... reply soon.
<telerik:GridTemplateColumn> 
                                <ItemTemplate> 
                                    <asp:Label ID="Label1" runat="server" Text='<%#Bind("Equipment") %>'></asp:Label> 
                                </ItemTemplate> 
                                <EditItemTemplate> 
                                    <asp:DropDownList DataSourceID="SqlEquipmentSource" DataTextField="Equipment" DataValueField="ID" 
                                        ID="ddlEquipmentGrid" runat="server" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" 
                                        AutoPostBack="true" SelectedValue='<%#Bind("EquipmentID") %>'> 
                                    </asp:DropDownList> 
                                </EditItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn> 
                                <ItemTemplate> 
                                    <asp:Label ID="Label2" Text='<%#Bind("Brand") %>' runat="server"></asp:Label> 
                                </ItemTemplate> 
                                <EditItemTemplate> 
                                    <asp:DropDownList  DataSourceID="SqlBrandSource" 
                                        DataTextField="Brand" DataValueField="ID" ID="DropDownList3" runat="server" SelectedValue='<%#Bind("BrandID") %>' /> 
                                    <asp:SqlDataSource ID="SqlBrandSource" runat="server" ConnectionString="<%$ ConnectionStrings:mobily_alexmarConnectionString %>" 
                                        SelectCommand="SELECT ID, Brand FROM tbl_Sites_EquipmentBrands WHERE (EquipmentID = @EquipmentID)"> 
                                        <SelectParameters> 
                                            <asp:ControlParameter ControlID="ddlEquipmentGrid" DefaultValue="0" Name="EquipmentID" 
                                                PropertyName="SelectedValue" /> 
                                        </SelectParameters> 
                                    </asp:SqlDataSource> 
                                </EditItemTemplate> 
                            </telerik:GridTemplateColumn> 
. In edit mode
Princy
Top achievements
Rank 2
 answered on 05 Feb 2010
1 answer
147 views
Hello Everybody,
I want to change the icon of the directory in RadFileExplorer. I have tried all the procedure given in Icon Override thread. I have changed FileExplorer.css completely but unable to change icons.
I want to change icon programatically, Not through CSS.
Can anybody provide me some other code which is changing Icon of the directory...

Regards
Samee Javaid
Fiko
Telerik team
 answered on 05 Feb 2010
1 answer
104 views
Trying to develop my first serious app using Telerik. 

Ok so far, but I'd like to use the Ajax capabilities within the editform template so i can load controls based on the user selections made in other controls, and so on.  In most cases I need to go back to the server for data, and I would prefer to do this server-side in C#/Linq.

I've added a RadAjaxManagerProxy to the template (have a RadAjaxManager on the master page) and can see the components on the template from the ajax manager's config. window.  However, no events are fired until the whole form is submitted, which is not the behaviour I need.

Questions:
1.    is ajax available within a form template? 
2.    If so, how do I set it up?

Many thanks,
Peter

p.s. this is probably a real 101 question, but I'm used to Windows development.  ASP.Net is a real culture shock!
Tsvetoslav
Telerik team
 answered on 05 Feb 2010
0 answers
91 views
How to reproduce a video from nodoUrl, i can see image, pdf. but no a video format FLV. Thanks!!!!
Juan Carlos Carrasco
Top achievements
Rank 1
 asked on 05 Feb 2010
5 answers
213 views
I am putting together a prototype for a client and ran into the following issue.
Basically after lots of time hacking around the darn Subgurim google map control I manage to get the basics working.
However I just found out that under firefox, ajaxmanager (through proxy) is becoming null after the initial ajax postback
Attached is a zip of the prototype, and i tested this with your latest internal build (trail).
all you have to do is
1. download and http://depositfiles.com/files/4hncz4jn6 unzip, add the telerik ui.dll to bin
2. run the project (make sure make sure you actually have /default.aspx) in the url when running it in browser otherwise the stupid subgurim control doesn't even do a post back
3. once u have it running and /default.aspx is in the url, double click the map (to zoom), you will get 2 alert boxes (this is the initial ajax postback) which everything works fine because in the alert i am displaying the ajaxmanager object
4. after dismissing the 2 alerts fired from 3., double click the map again to zoom, this time you will get nulls and after that is all nulls

This is perfectly working under IE, however firefox just cant hack it.
I am running asp.net 3.5, and i also have tried 4
same results


On another note, how come i cannot attach small zip files to posts, if its under 2mb.
I tried renaming it to .gif but you guys still said its invalid (clever)


Zoinky
Top achievements
Rank 1
 answered on 05 Feb 2010
3 answers
421 views
I have a RadGrid tied to a SqlDataSource, and I'm attempting to do the automatic delete method. However, I'm receiving the error that you must declare the scalar variable @id. I've looked over the code, and compared to the examples, and I just don't see where the error is.

This is for .NET FrameWork 3.5 and with Telerik 2009Q3 release, VS2010 B2. It's also maybe relevant that I'm using the RadAjaxManager to update the grid. 

The error from FireBug console: 41|error|500|Must declare the scalar variable "@id".|

SqlDataSource
<asp:SqlDataSource runat="server" ID="areanoticeds" ConnectionString="<%$ ConnectionStrings:RD %>" CancelSelectOnNullParameter="false" OldValuesParameterFormatString="original_{0}"   
      SelectCommand="SELECT * FROM [RCAreaNotices]" 
      UpdateCommand="UPDATE [RCAreaNotices] SET [area]=@area, [notice]=@notice WHERE [id]=@id" 
      InsertCommand="INSERT INTO [RCAreaNotices] ([area],[notice]) VALUES (@area,@notice)" 
      DeleteCommand="DELETE FROM [RCAreaNotices] WHERE [id]=@id"> 
      <UpdateParameters> 
        <asp:Parameter Name="id" DbType="Int16" /> 
        <asp:Parameter Name="area" DbType="String" Size="3" /> 
        <asp:Parameter Name="notice" DbType="String" Size="200" /> 
        <asp:Parameter Name="original_id" DbType="Int16" /> 
        <asp:Parameter Name="original_area" DbType="String" Size="3" /> 
        <asp:Parameter Name="original_notice" DbType="String" Size="200" /> 
      </UpdateParameters> 
      <InsertParameters> 
        <asp:Parameter Name="area" DbType="String" Size="3" /> 
        <asp:Parameter Name="description" DbType="String" Size="200" /> 
      </InsertParameters> 
      <DeleteParameters> 
        <asp:Parameter Name="id" DbType="Int16" /> 
      </DeleteParameters> 
      </asp:SqlDataSource> 

RadGrid control
<telerik:RadGrid runat="server" ID="areanoticegrid" DataSourceID="areanoticeds" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" 
       BorderStyle="None" AllowPaging="true" AllowSorting="true"> 
       <MasterTableView AutoGenerateColumns="false" Width="100%" Caption="Area Notices" CommandItemDisplay="TopAndBottom" DataKeyNames="id" DataSourceID="areanoticeds"> 
       <NoRecordsTemplate>No area notices in database.</NoRecordsTemplate> 
       <Columns> 
        <telerik:GridBoundColumn UniqueName="id" DataField="id"  /> 
        <telerik:GridBoundColumn UniqueName="area" HeaderText="Area" DataField="area" /> 
        <telerik:GridBoundColumn UniqueName="notice" HeaderText="Notice" DataField="notice" /> 
        <telerik:GridEditCommandColumn UniqueName="AreaNoticeEdit" HeaderText="Edit Item" ButtonType="ImageButton" EditImageUrl="img/edit.png" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70px" /> 
        <telerik:GridButtonColumn UniqueName="AreaNoticeDelete" CommandName="Delete" Text="Delete" HeaderText="Delete?" ButtonType="ImageButton" ImageUrl="img/trash.png" /> 
       </Columns> 
       </MasterTableView> 
       <ClientSettings> 
            <ClientEvents OnRowDblClick="RowDblClick" /> 
        </ClientSettings> 
       </telerik:RadGrid> 

Any thoughts?

Cheers.
Princy
Top achievements
Rank 2
 answered on 05 Feb 2010
2 answers
164 views
I use client-side programmatic binding, like the demo in Grid\Populating with Data\Client-side binding\Programmatic Binding .

The grid can show the checkbox if the pagesize less then 10.  But if the pagesize greater then 10, the checkbox can not show.

How can i show the checkbox.

another question, can I use the export to excel function if using client-side programmatic binding?
Gu Paranoia
Top achievements
Rank 1
 answered on 05 Feb 2010
4 answers
169 views
Hello,

is there a included functionality for the user to hide or show desired columns?
i couldn't find a demo where i can select columns that i'd like to see.

i'm not looking for the client-side api demo. i know that it is possible to hide and show columns. i'm looking for something like seen on extjs:

http://extjs.com/deploy/dev/examples/grid/array-grid.html

Move the mouse over the column and select in the apearing drop down button the desired columns. is there something like that in your grid? or how to implement sth. like that in your grid?

thx

Mark Galbreath
Top achievements
Rank 2
 answered on 04 Feb 2010
1 answer
139 views
Hi I am looking at making a simple faq system I want it to display faq info in some kind of table or pannel so a user can scroll through or possibly even search to find info when I say simple I am thiking of about 20 tables with a paragraph or two in each

any suggestions on what control would suit this purpose

thanks

m
Schlurk
Top achievements
Rank 2
 answered on 04 Feb 2010
2 answers
175 views
Hi i create a treeview like this:

 

RadTreeView tree = new RadTreeView();

 

tree.ID = e.PageView.ID +

"_tree";

so you see that, i have one treeview for each pageview but i want to create a node from this example:

 

 

 

                IRadTreeNodeContainer target = RadTreeView1;
                if (RadTreeView1.SelectedNode != null)
                {
                    RadTreeView1.SelectedNode.Expanded = true;
                    target = RadTreeView1.SelectedNode;
                }
                    

                RadTreeNode addedNode = new RadTreeNode(NodeTextBox.Text);
                addedNode.Selected = true;
                target.Nodes.Add(addedNode);

but how replace my dynamic treeview (1_tree for example) for RadTreeView1

Thx!

 

Juan Carlos Carrasco
Top achievements
Rank 1
 answered on 04 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?