Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
93 views
Hello every one ,

When i click the add new button radlist box come empty ,
But here come with last record of radgrid
In Modify i assign the value for RadGrid1_ItemCreated,
That's assign in add mode also
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
       {
           if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
           {
               GridEditFormItem item = (GridEditFormItem)e.Item;
               RadListBox listbox = (RadListBox)item.FindControl("RadListBoxDestinationGroup");
               RadListBox listbox1 = (RadListBox)item.FindControl("RadListBoxSourceGroup");
               RadComboBox sortcolumn = (RadComboBox)item.FindControl("ComboBox_SortColumn");
               RadComboBox groupcolumn = (RadComboBox)item.FindControl("ComboBox_GroupByColumn");
 
               listbox.DataSource = DbClient.GetList<ListField>("LayoutId =" + LayoutId);
               listbox.DataValueField = "FieldName";
               listbox.DataTextField = "FieldName";
 
               sortcolumn.DataSource = DbClient.GetList<ListField>("LayoutId =" + LayoutId);
               sortcolumn.DataValueField = "FieldName";
               sortcolumn.DataTextField = "FieldName";
 
               groupcolumn.DataSource = DbClient.GetList<ListField>("LayoutId =" + LayoutId);
               groupcolumn.DataValueField = "FieldName";
               groupcolumn.DataTextField = "FieldName";
           }
       }




Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 asked on 08 Jun 2011
4 answers
87 views
Is there a way to highlight the destination row on the drag/drop (mouseover)?

Right now it's a dotted line and the users feel that that's not enough of a visual cue.

Thanks
Alex
Top achievements
Rank 2
 answered on 08 Jun 2011
1 answer
126 views
when I do my schedulername.AutoPostBack it seems AutoPostBack is not supported.
How do we do AutoPostBack with the RadScheduler. I do not see such a property.

Thank you.
Dan Lehmann
Top achievements
Rank 1
 answered on 07 Jun 2011
8 answers
202 views
When i use the OnPopupClosing event handler it fires only when some date is selected in the popup, but not when popup is closed due to the clicking outside it. How can i process the popup closing if no date was selected in it?
Sean
Top achievements
Rank 2
 answered on 07 Jun 2011
1 answer
116 views
Hi all.

I am having some issues with CreateNewDirectory. I wanted to create a Web Gallery using FileExplorer based on your demo. Because of using possible big files (4,5 MB and maybe more) I created a thumb directory and when uploading images I resize as well and them upload (resized and original) into 2 different directories (Images and ImagesThumb). In FileExplorer I show only the thumb directory. The DeletePath is defined to both Images and ImagesThumb directory. The images load OK and the memory usage is good. Deleting 2 directories at once or 2 files at once works great. But i have difficulties to create 2 directories.

The ASPX:
<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="1000px" Height="690px"
                Skin="Black" EnableOpenFile="True" OnClientFolderChange="OnClientFolderChange"
                OnClientCreateNewFolder="onCreateNewDir"  OnClientLoad="OnFileExplorerLoad">               
 </telerik:RadFileExplorer>
 
CS:
string[] paths = new string[] { "~/ImagesThumb/", "~/Images/" };
RadFileExplorer1.Configuration.ViewPaths = new string[] { "~/ImagesThumb/" };
RadFileExplorer1.Configuration.UploadPaths = paths;
RadFileExplorer1.Configuration.DeletePaths = paths;

I have created the OnClientCreateNewFolder:
function onCreateNewDir(sender, eventArgs) {
    var oExplorer = getRadFileExplorer1();
    var dirPath = oExplorer.get_currentDirectory().replace('ImagesThumb', 'Images');
    oExplorer.remove_createNewFolder(onCreateNewDir);
    oExplorer.createNewDirectory(dirPath,eventAgs.get_newPath());
    oExplorer.add_createNewFolder(onCreateNewDir);
}

With no luck at all, in ImagesThumb it creates desired folder but in Images not. Then I tried create a second 
FileExplorer to handle the Image folder for me like this:

<telerik:RadFileExplorer runat="server" ID="RadFileExplorer2"Skin="Black" style="display:none">
<Configutation DeletePaths="~/Images" UploadPaths="~/Images" />               
            </telerik:RadFileExplorer>

OnCreate event:
function onCreateNewDir(sender, eventArgs) {
    var oExplorer = getRadFileExplorer1();
    var dirPath = oExplorer.get_currentDirectory().replace('ImagesThumb', 'Images');   
    getRadFileExplorer2().createNewDirectory(dirPath,eventAgs.get_newPath());   
}

Doesnt work either until the createNewDirectory has only 1 parameter and propmts a popup window to provide a name
but that is not desired. I dont want to use ActiveX object to create a directory.

Am I doing something wrong?? Is there a better way to achieve what I need???

Thx

Dobromir
Telerik team
 answered on 07 Jun 2011
5 answers
124 views
I'm trying to access data from a radgrid from a sharepoint webpart on the same page as the radgrid.  When I execute the GridDataItem Item line, it throws a null reference exception and says "Object is not set to instance of an object".  Why isn't it finding the control?


  
using (SPSite external = new SPSite(SPContext.Current.Web.Url))
    {
        using(SPWeb web = external.OpenWeb())
        {
              
            RadGrid ProjectGrid = (RadGrid)FindControl("rgViewPDS");
            GridDataItem item = ProjectGrid.Items[0];
            this.PP = item["PP"].Text;
            this.PED = item["PED"].Text;
        }
    }
});
Nate
Top achievements
Rank 1
 answered on 07 Jun 2011
1 answer
115 views
Hi All,

I have created a file explorer dynamically and I am trying to customise the default context menu provided in it.
I would like to hide the default menu options and add my own set of context menu items to it and add functionality on click on each item.

Could any one please tell me how to achieve this dynamically.

Many thanks in advance.

Regards
Rajeev
Dobromir
Telerik team
 answered on 07 Jun 2011
1 answer
124 views
Hi

How to decrese the height of the uploadcontainer if i click on upload button in RAD File explorer.

My scenario is  if i click on upload button i am hiding the some block in upload container window. i.e

-------------------------------------------------------------------------------------------------------------------
Max file size allowed:
25.00 MB
File extensions allowed:
*.au, *.css, *.doc, *.docm, *.docx, *.dotm, *.dotx, *.flv, *.gif, *.htm, *.html, *.jar, *.jpe, *.jpeg, *.jpg, *.js, *.mov, *.mp2, *.mp3, *.mpa, *.mpv2, *.pdf, *.png, *.potm, *.potx, *.ppam, *.ppsm, *.ppsx, *.ppt, *.pptx, *.pptm, *.pptx, *.swf, *.txt, *.vsd, *.vss, *.xhtml, *.xlam, *.xls, *.xlsx, *.xlsb, *.xlsm, *.xlsx, *.xltm, *.xltx, *.xsd, *.zip

-------------------------------------------------------------------------------------------------------------------
But after hiding of this blcok desgin prob is coming.there is big space between upload button and upload window.

Thats the reason i want to descrese height of that upload container.Please find the attached image for prob.
I have done like this.but its nt effecting.

 

 

var objUploadWidnow = "RadWindowWrapper_"+ objUploadContainer +"_windowManagerfileExplorerUpload";

 

 

 

 

var stylePanel = $telerik.$(".RadWindow RadWindow_Default rwNormalWindow rwTransparentWindow", objUploadWidnow);

 

 

alert(stylePanel);

 

stylePanel.css(

 

"height", "200px");

please correct me where i have done wrng.Please reply me as soon as posible.

Thanks
Sandhya

Dobromir
Telerik team
 answered on 07 Jun 2011
2 answers
53 views
I do believe this bug has been introduced in recent releases as I have not changed anything that would affect this, when you do 2 back to back radajaxmanager requests the scheduler drops all visible appointments
Jody Harbour
Top achievements
Rank 1
 answered on 07 Jun 2011
2 answers
48 views

Hello Everyone,

I posted this question yesteday in telerik forums, but i could not seem to find that question anywhere. below is the question again

I have a gridview. There is a linkbutton in the gridview. If I click on that linkbutton, I am redirected to another web page, each Link button redirects to the same web page, but the data is different based on the querystring that i am passing from Gridview Link Button.
There are 500 records in the gridview for now, but they can increase later. There is a button at the top of the gridview that says "Export to MS word". If the user clicks on that button, then I want all the web pages that Link button is redirecting to be saved and opened in MS word document. How can I acheive this. Someone suggested me to do it in XMl because office 2007 saves everything in xml format. I am not sure how can I do this.

can someone give me any approach on how to accomplish this?

Any help will be greatly appreciated.

Anjali
Top achievements
Rank 1
 answered on 07 Jun 2011
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?