Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
206 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
404 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
157 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
149 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
129 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
167 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
4 answers
555 views
Hello,

I've been trying to find documentation about the Radmenu1.FindItem property and how to use conditions.
Could someone provide any examples or documentation links?
The problem is that I need to disable all items from a root and show those itens disabled.

Thanks for any help.

Marcio Nascimento
KSBA Techie
Top achievements
Rank 1
 answered on 04 Feb 2010
2 answers
125 views
I have a routine to handle enter key as save. However if the user enters an invalid date and hits enter i do not want the save functionality to be implemented. My Page.IsValid is returned true if the date entered is an invalid date.

is there a workaround for this?
below is the code for my enter key routine:

function

 

HandleEnterAsSave(sender, eventArgs) {

 

 

if (eventArgs.get_domEvent().keyCode == 13) {

 

 

//__doPostBack("btnSave", "Save");

 

 

var saveButton = document.getElementById('<%= btnSave.ClientID %>');

 

saveButton.click();

}

}

newbie
Top achievements
Rank 1
 answered on 04 Feb 2010
3 answers
83 views
I have a RadGrid and am using a customer usercontrol for the insert/edit forms.  I have an edit column in the grid, and have sized it down to a very small column, 15px.

<telerik:RadGrid ID="_cloudGrid" runat="server" DataSourceID="_dsClouds"    
      AllowAutomaticUpdates="True"   
      AllowAutomaticDeletes="True"   
      AllowAutomaticInserts="True" 
      AutoGenerateColumns="False" > 
      <MasterTableView Width="100%"  CommandItemDisplay="Top" DataKeyNames="Id" InsertItemDisplay="Top" EditMode="EditForms">  
         <CommandItemSettings AddNewRecordText="Create Cloud Account" /> 
         <Columns> 
            <telerik:GridEditCommandColumn HeaderText="Edit" Resizable="false" ButtonType="ImageButton">  
               <HeaderStyle Width="15" /> 
            </telerik:GridEditCommandColumn> 
            <telerik:GridBoundColumn DataField="Id" HeaderText="Id" ReadOnly="true" Visible="false" /> 
            <telerik:GridBoundColumn DataField="Alias" HeaderText="Name" ReadOnly="false" Visible="true" /> 
            <telerik:GridDropDownColumn DataField="Provider" HeaderText="Provider" ReadOnly="false" Visible="true" ListTextField="Name" ListValueField="Value" DataSourceID="_dsProviders" /> 
            <telerik:GridBoundColumn DataField="Login" HeaderText="Access Key" ReadOnly="false" Visible="true" /> 
         </Columns> 
         <EditFormSettings UserControlName="CloudEditForm.ascx" EditFormType="WebUserControl">  
            <PopUpSettings Modal="true" /> 
         </EditFormSettings> 
      </MasterTableView> 
      <ClientSettings> 
         <Resizing  AllowColumnResize="false" AllowRowResize="false" EnableRealTimeResize="false" ClipCellContentOnResize="true" /> 
      </ClientSettings> 
   </telerik:RadGrid> 


When the grid is initally displayed the edit column looks fine.  When you clicke the edit button, the columns resize and the edit column is now much larger.  The resizing only seems to occur when the EditMode is "EditForms", if the EditMode is "PopUp" the resizing doesn't occur.

Has anyone seen this, and possibly have a workaround?

Thanks,
Steve
Steve Wolfe
Top achievements
Rank 1
 answered on 04 Feb 2010
2 answers
170 views
I got a treeview, where its importante to me to get the full path of id's, from the first parent, to the last child checked, but the user dont need to get in the full depth of each tree.

I tried:

 

string message = string.Empty;

 

foreach (RadTreeNode node in trvCategorization.CheckedNodes)

 

 

{
    if (node.Nodes.Count == 0)

        message += node.FullPath +

 

 

 

 

"<br/>";

 }

Label1.Text = message;

 

 


It doesnt work. Besides certain nodes have no checked nodes, these uncheked nodes are retuned by the Count. And I can get the ID path using that, theres no FullValuePath method. I cant do a node.CheckedNodes.Count too. Is there a built in method that I still dont look at, or do I need to code a recursive method to get these paths, since i can have different depths in diferente cenarios?

How do I use the format code block?
André Freitas
Top achievements
Rank 1
 answered on 04 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?