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

I tried everything, but the Grid does not show a Link to Insert a new item.
I got a SqlDataSource with automatic generated Select, Insert, Delete and Update statements.
With the Grid i can do Update and Delete without any probs, but it does not show the Insert link.

Somebody knows what i have to change manually to show the Insert Link?
This is the code of the Grid "gvUser"

    <telerik:RadGrid ID="gvUser" runat="server" AllowSorting="True" AutoGenerateColumns="False"
        AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" DataSourceID="srcGv"
        GridLines="None" Skin="Windows7" onitemcreated="gvUser_ItemCreated"
        AllowPaging="True" onupdatecommand="gvUser_UpdateCommand" AllowAutomaticInserts="true">
        <MasterTableView DataSourceID="srcGv" EditMode="InPlace" ClientDataKeyNames="pk" DataKeyNames="pk" PageSize="10" InsertItemDisplay="Top" AllowAutomaticInserts="true">
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            </ExpandCollapseColumn>
            <Columns>
... Colums ...
            </Columns>
            <EditFormSettings InsertCaption="Neuer Benutzer">
                <EditColumn FilterControlAltText="Filter EditCommandColumn column" UpdateText="Anwenden" InsertText="Hinzufügen" CancelText="Abbrechen">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>

and this is the SqlDataSource

    <asp:SqlDataSource ID="srcGv" runat="server" ConnectionString="<%$ ConnectionStrings:cn%>"
        DeleteCommand= ... here is the Delete Command
        InsertCommand= ... here is the Insert Command ....
        SelectCommand= ... here is the Select Command ...
        UpdateCommand=... here is the Update Command ...
        <DeleteParameters>
... Delete Param ...
        </DeleteParameters>
        <InsertParameters>
... Insert Params ....
        </InsertParameters>
        <SelectParameters>
            <asp:ControlParameter ControlID="cboR" Name="R" PropertyName="SelectedValue"
                Type="Int32" />
        </SelectParameters>
        <UpdateParameters>
... Update Params ...
        </UpdateParameters>
    </asp:SqlDataSource>
Raimund
Top achievements
Rank 1
 answered on 03 Jan 2011
3 answers
136 views
Hello is it possible to change the name of tabs "Day", "Week" and "Mounth"  in the radscheduler?
Veronica
Telerik team
 answered on 03 Jan 2011
1 answer
87 views
We have a page with a RadUpload (an instance of our own descendant of RadUpload).  Someone has reported that it is choking on a 50 megabyte file.  I have been tasked to investigate this.  It appears that we have a RadUpload in a user control with Localization.Select =Browse.  There does not appear to be any RadProgressManager or RadProgressArea.

According to "http://www.telerik.com/products/aspnet-ajax/upload.aspx":

"The Telerik ASP.NET Upload control now features a new HttpHandler specially designed for monitoring the process and updating its progress. As a result upon a request for progress update the server is not hit as the page does not go through the complete page lifecycle as this is not needed. This significantly reduces the server load and data transfer. "

How do I determine if this HttpHandler is being used?
Genady Sergeev
Telerik team
 answered on 03 Jan 2011
8 answers
366 views
Hello,

I have a problem with displaying a specific website (www.oritajewellery.com) using the radwindow. All other websites are displayed well.

Please open the following web page in order to view the problem: http://www.israel-jewelry-center.com/Pages/Categories/Rings.aspx.
By hovering over the image which is displayed in the attached image (1.jpg), a radtooltip will be displayed, and then click the displayed big image in order to view the website in a radwindow control. Here is the problem, the above website is not displayed (view attached image 2.jpg).

My code:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">   
        <Windows>   
            <telerik:RadWindow runat="server" Width="600px" Height="550px" VisibleStatusbar="false" style="z-index:10000;"
                ID="ExplorerWindow" Modal="true" Behaviors="Default">
            </telerik:RadWindow>
        </Windows>   
    </telerik:RadWindowManager>

I want to indicate again that just the above website is not displayed using the radwindow control.

Regards,
Bader
Georgi Tunev
Telerik team
 answered on 03 Jan 2011
1 answer
117 views
I have a RadListView inside an item template of RadPanelBar, the RadPanelBar is being managed by the ajaxmanager. I can successfully rebind the listview but new items don't display until a full postback.

How can I rebind the listview and have the items display without a full postback  when cannot reference the nested control directly in the ajaxmanager settings?

Shinu
Top achievements
Rank 2
 answered on 03 Jan 2011
0 answers
71 views
Hello Team,

I am using Rad Upload control and Rad Progress area for file upload functionality.I need to perform a custom functionally when i cancel the uploading of the files. From the telerik forums, i found that OnClientProgressUpdating event cant be used. My custom functionality exist in the corresponding cs file of the page where my Rad Upload controls are present.I want to know how can i get the cancel event of the cancel button click. If OnClientProgressUpdating is the method to achieve it, i found that it is invoked each time when the progress updates. I need to invoke it only when the cancel button is clicked. Also how can i call my custom function present in the cs code frm the javascript function OnClientProgressUpdating(). Please let me  know how can i achieve the same. How can i invoke a custom functionality in the cancel button of the RadProgressArea.

Thanks,
Divya

Divya
Top achievements
Rank 1
 asked on 03 Jan 2011
1 answer
60 views
I want to implement this functionality:
  1. Select multiple rows in radgrid.
  2. Click in a command item.
  3. Show a popup window to let the user enter additional common data.
  4. Make the post with selected rows and additional common data.
  5. In the server, process selected rows with additional common data.
Thanks in advance
Jaume Aguiló
Pavlina
Telerik team
 answered on 03 Jan 2011
7 answers
168 views
Thanks Telerik team for replying on my previous thread. Somehow I lost it so opening a new one. Thanks for sending me the exact solution to my problem. I have started working towards the example you send me. http://www.telerik.com/help/aspnet-ajax/grdcustomoptionforfiltering.html 

It's throwing an error "Object reference not set to an instance of an object." on "string[] values = tbPattern.Text.Split(' ');". Don't know why ??

if (e.CommandName == RadGrid.FilterCommandName)
            {
                Pair filterPair = (Pair)e.CommandArgument;
                if (filterPair.Second.ToString() == "DateCreated")
                {
                    string colName = filterPair.Second.ToString();
                    TextBox tbPattern = (e.Item as GridFilteringItem)[colName].Controls[0] as TextBox;
                    string[] values = tbPattern.Text.Split(' ');
                    if (values.Length == 2)
                    {
                        e.Canceled = true;
                        string newFilter = "(([" + filterPair.Second + "] >='" + values[0] + "') AND ([" + filterPair.Second + "] <='" + values[1] + "'))";
                        if (taskGrid.MasterTableView.FilterExpression == "")
                        {
                            taskGrid.MasterTableView.FilterExpression = "('" + startDate1.Value.ToString("MM/dd/yyyy HH:mm:ss") + "' <= [DateCreated] AND [DateCreated] <= '" + endDate1.Value.ToString("MM/dd/yyyy HH:mm:ss") + "')" + newFilter;
                        }
                        else
                        {
                            taskGrid.MasterTableView.FilterExpression += " AND ('" + startDate1.Value.ToString("MM/dd/yyyy HH:mm:ss") + "' <= [DateCreated] AND [DateCreated] <= '" + endDate1.Value.ToString("MM/dd/yyyy HH:mm:ss") + "'  )";
                        }
  
                    }
                }
  
            }
Please help
Marin
Telerik team
 answered on 03 Jan 2011
3 answers
96 views
I am looking for an example on using 'set_eventArgument()' in OnRequestStart event. I see no documentation on how to use it,
When I tried to use it in following manner, I get an error. So some documentation would help.
function OnRequestStart(sender, args) {
                //get a reference to the current RadWindow
                var oWnd = GetRadWindow();
                args.set_eventArgument(oWnd["EmailAddress"]);
            }

Thanks
Sunil
Iana Tsolova
Telerik team
 answered on 03 Jan 2011
3 answers
158 views
I want to cancel edit-, insert-form in my needdatasource when I bind a new table when the previous table had an a form opened up! (otherwhise this will cause problems!

//h
Pavlina
Telerik team
 answered on 03 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?