Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
100 views
I want to log user actions in FileExplorer , for example there when user delete a file, I insert a log record into my database but I can not see any server side event for this. Is there any trick for doing this?


Regards
Mazdak
Dobromir
Telerik team
 answered on 04 Nov 2011
2 answers
84 views
Hi, i have a master page
and in a placeolder an ascx with a grid, when i try to download the file return me an jscript error, how can i disable the ajax when i try to download?

thanks!

post some code:
<telerik:RadGrid runat="server" ID="rgrDocuments" Skin="Office2010Blue" Height="30%"
                    ShowStatusBar="True" AllowFilteringByColumn="True" AutoGenerateColumns="false"
                    CellSpacing="0" GridLines="None" ShowGroupPanel="True"
                oncolumncreated="rgrDocuments_ColumnCreated" 
                onitemcommand="rgrDocuments_ItemCommand">
                                     
                    <GroupingSettings  CaseSensitive="false"/>
                    <ClientSettings AllowDragToGroup="True">
                        <Selecting  AllowRowSelect="true" />
                    </ClientSettings>
 
                    <MasterTableView Width="100%" >
                        <Columns>
                            <telerik:GridTemplateColumn AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:ImageButton runat="server" ID="btnDownload" CommandName="cmdDownload" ImageUrl="~/Images/down.png" Height="24px" Width="24px" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:ImageButton runat="server" ID="btnDelete" CommandName="cmdDelete" ImageUrl="~/Images/elimina.png" Height="24px" Width="24px" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn Visible="false" DataField="N" UniqueName="N°" HeaderText="Anno" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith" ShowFilterIcon="false"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="MES" UniqueName="Tipo" HeaderText="<%$ Resources:Documenti, docu_GriTipo %>" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith" ShowFilterIcon="false"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="CIT" UniqueName="Nome" HeaderText="<%$ Resources:Documenti, docu_GriNome %>" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith" ShowFilterIcon="false"></telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
 
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Windows7">
                    </HeaderContextMenu>
</telerik:RadGrid>
protected void rgrDocuments_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == "cmdDownload")
            {
                GridDataItem item = e.Item as GridDataItem;
 
                byte[] array = RecuperaBlobDocumento(short.Parse(item["N°"].Text));
                string fileName = RecuperaNomeFile(short.Parse(item["N°"].Text));
 
                Response.Clear();
                Response.ContentType = "application/octet-stream";
                Response.AppendHeader("Content-Disposition", "attachment; filename=" + fileName);
                Response.BinaryWrite(array);
                Response.End();
            }
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
               </telerik:RadAjaxManager>
 
               <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2010Black"
               </telerik:RadAjaxLoadingPanel>
 
               <telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server" >
                   <asp:ContentPlaceHolder ID="Body" runat="server"/>
               </telerik:RadAjaxPanel>
Aldo
Top achievements
Rank 2
 answered on 04 Nov 2011
1 answer
133 views
In fileexplorer there is the abilty to upload files. Right now if I upload a file that has the same name as an existing file I get a prompt that tells me the file already exist. What I want to do is give the newfile a unique name and save it. For example I upload file named "Fred.txt" if "Fred.txt" already exist I will try "Fred-01.txt, Fred-02.txt, Fred-03.txt..." until I find one that doesnt exist then save the file with that name. How?

 

<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" OnClientItemSelected="OnImageSelected" EnableCopy="true" EnableAsyncUpload="true" >

<Configuration MaxUploadFileSize="20480000" />

</telerik:RadFileExplorer>

Dobromir
Telerik team
 answered on 04 Nov 2011
2 answers
246 views

Hi,

    I am using RadListBox in one of our page,  I can able to retrieve multiple selection info and save it to destination place, and when users open the form again, I need to get previous selections(multiple values) and set it to RadListBox, it only showing last value not other selection.   I am calling the following method for setting values.

 

private

 

void setRadListBoxSelection(Telerik.Web.UI.RadListBox ctl, string val)

 

{

 

string[] selArr = val.Split('@');

 

 

foreach (string word in selArr)

 

{

ctl.SelectedValue = word;

 

// ctl.SelectedItem.Value = word;

 

 

 

}

 

}

do you have any suggestions for fixing the above issue.

Satya

Velmurugan
Top achievements
Rank 1
 answered on 04 Nov 2011
1 answer
37 views
Hi All,

My client wants me to show Child grid inside Master Rad Grid when clicked on employee ID on Master Grid, Child Grid can be encapsulated in user control, also clients want to show a text box in user control in which we can add text and that text would be saved against the employee id.

i am in great trouble in making this functionality work. any help would be highly appreciated.

Regards,
tahir
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Nov 2011
3 answers
212 views
Hi friends,

in our application ,dataset contains more than 9 lakhs of records.we are displaying these records in RadGrid.Here we are getting performance issue to bind that data to grid and in case of paging also.I have seen telerik demo of Large data set binding.In that telerik people used list but i am having dataset.Can any body tell me any other solution to our issue.



Thanks
Anwar
Anwar
Top achievements
Rank 2
 answered on 04 Nov 2011
1 answer
153 views
I have a Telerik RadMenu which is aligned to the right of a div tag.

The top level menu have five items, however when I hover over one of the items the resulting drop down menu is always aligned to the left of the selected item.

I need the menu to align to the right of the selected item, with the full width of the drop down going to the left instead of the right.

Many thanks
Robert Ireland
Princy
Top achievements
Rank 2
 answered on 04 Nov 2011
1 answer
74 views
I have a treeview that is expanded but the second I do anything on the page the Treeview goes back to its unexpanded state. How do I prevent this from happening?
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2011
1 answer
268 views
I have a standard web form that i am thinking of converting to RadControls. I control the styling of my form through CSS, including widths of my controls.

How do i ensure that all skinning and styling of the RadInput controls are removed so that they utilize my CSS. i have tried:

EnableAjaxSkinRendering="False"
EnableEmbeddedBaseStylesheet="False"
EnableEmbeddedSkins="False"
EnableTheming="False"

Still the control seems to ignore my width setting in the CSS.

I would also like to do this from the web.config. Could someone explain to me how i can set this up to strip all skinds and styling from the radcontrols so i can use my own CSS.

Thanks,
Duncan
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2011
1 answer
97 views
I have a radgrid web usercontrol edit form.how can i access the radtextbox in usercontrol and make it readonly?
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?